MYSQL & PHP

Hi,
I am also having a problem a problem with php & mysql

error message by sql connect:
Can’t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock’ (13)

But it seems it should be running as
>>*tail /var/log/mysqld.log

091112 15:18:16 [Note] /usr/sbin/mysqld: ready for connections.
Version: ‘5.0.67’ socket: ‘/var/lib/mysql/mysql.sock’ port: 3306 SUSE MySQL RPM
*

I already disabled SELinux, tried to shutdown firwall but no effect…

Any help on this one?

Are you experimenting with PhpMyAdmin or you wrote your own php pages?
I had the same problem and resolved it pointing config.inc.php (for PhpMyAdmin) or whatever you use for your pages to my MySql Server IP instead of localhost.

bind mysql to listen locally on UNIX sockets - disable network binding by enabling the skip-networking option in /etc/my.cnf

Try YaST>System>System Services (Runlevel) and see if the mysql daemon is running.

Are you experimenting with PhpMyAdmin or you wrote your own php pages?
I had the same problem and resolved it pointing config.inc.php (for PhpMyAdmin) or whatever you use for your pages to my MySql Server IP instead of localhost.

Thanks that did the trick even though I had my own php script, still very strange…