From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.8) Gecko/20020205 Description of problem: The new rpm php-4.0.6-12 (or php-mysql) sets mysql_socket /tmp/mysql.sock. The default mysql rpm put the socket into /var/lib/mysql/mysql.sock The previous php rpm set the socket to the /var/lib/mysql/mysql.sock Version-Release number of selected component (if applicable): How reproducible: Always Steps to Reproduce: 1.install the new php rpm 2.try to create a database connection from php without specifying the socket leads to an error ("cannot connect through socket /tmp/mysql.sock") 3.this leads particularily to problems with phplib ... Actual Results: error message, no database connection can be created Expected Results: database connection Additional info: everything can be patched by creating a symbolic link from /var/lib/mysql/mysql.sock to /tmp/sock
Just wanted to mention that I see this bug too and I came up with the same workaround. I hope a new php package is available soon since I imagine alot of people will not realize how to fix this..
Just ran into the same issue myself. a quick ln -s /var/lib/mysql/mysql.sock /tmp/mysql.sock fixed the problem temporarly for now. I think edit php.ini and edit it to mysql.default_socket = /tmp/mysql.sock should fix it to without having to recompile
*** This bug has been marked as a duplicate of 60515 ***