Page 1 of 1

mysql is not connecting!

PostPosted: 12. October 2007 08:28
by asheesh
hi
I installed xampp on linux. after starting lampp when i try to connect mysql following error shown what should i do? copy of text from terminal is shown bellow:
//there is no password for accessing mysql

[root@cc20911 /]# mysql -uroot -p
Enter password:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib /mysql/mysql.sock' (2)
[root@cc20911 /]#

PostPosted: 12. October 2007 16:52
by Wiedmann
root@cc20911 /]# mysql -uroot -p

You must use the correct mysql command line client, which is in XAMPP:
Code: Select all
# /opt/lampp/bin/mysql -uroot -p