Problem in Mysql

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

Problem in Mysql

Postby piyush » Sat Sep 09, 2006 8:14 am

Hi,
When iam using the head command after Mysql then No version detect there but I didnt have any problem in installation of Mysql.
piyush
 
Posts: 25
Joined: Sat Sep 09, 2006 8:04 am

Re: Problem in Mysql

Postby piyush » Sat Sep 09, 2006 8:50 am

Iam using the subphase 6.1 and I have given /usr/local/mysql/bin/mysql command. then i have detected exactly this error.
ERROR 2002: Can't connect to local MySQL server through socket '/tmp/mysql.sock'

piyush wrote:Hi,
When iam using the head command after Mysql then No version detect there but I didnt have any problem in installation of Mysql.
piyush
 
Posts: 25
Joined: Sat Sep 09, 2006 8:04 am

Postby SuPrSluG » Sat Sep 09, 2006 12:42 pm

Mysql is not running. You need to start it before you can connect to it. First run
/usr/local/mysql/bin/mysqld_safe --user=mysql &
then /usr/local/mysql/bin/mysql
SuPrSluG
 
Posts: 71
Joined: Thu Aug 24, 2006 8:01 pm

Postby mflorell » Sat Sep 09, 2006 3:05 pm

If mysql is started and you still get that error try this command:

ln -s /tmp/mysql.sock /var/run/mysql/mysql.sock
mflorell
Site Admin
 
Posts: 18339
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida


Return to Support

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 273 guests