Page 1 of 1

Problem in Mysql

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

Re: Problem in Mysql

PostPosted: Sat Sep 09, 2006 8:50 am
by piyush
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.

PostPosted: Sat Sep 09, 2006 12:42 pm
by SuPrSluG
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

PostPosted: Sat Sep 09, 2006 3:05 pm
by mflorell
If mysql is started and you still get that error try this command:

ln -s /tmp/mysql.sock /var/run/mysql/mysql.sock