Hi everybody!
I've install a mysql server on my computer. The operating system is Redhat
fedora core 4. The version of the mysql server is 4.1.3 Beta. I wanna connect
to the server using the following statement:
$db_connection=mysql_pconnect("localhost","root","");
The server returned the error 2002:
2002 Can't connect to local MySQL server through socket
'/var/mysql/lib/mysql.sock(13)'
I was suggested that the server may not running, or the sockect is wrong. But
when I run the following statement, there was no error occured:
localhost#/usr/local/mysql/bin/mysql -uroot& -S/var/mysql/lib/mysql.sock
Can anyone help me?
Fang