Red Hat Bugzilla – Bug 61401
php failed to connect to mysql from web site
Last modified: 2007-04-18 12:41:00 EDT
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; T312461; Q312461)
Description of problem:
I updated from php-mysql 4.0.6-7 to 4.0.6-12 from the up2date command. After
that I could not connect to the mysql database from my web site using php.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1.I forced the re-install of php & php-mysql 4.0.6-7.
Actual Results: Now it works!
Expected Results: Now it works
I think Red Hat should check out it's updates to see if they work, before they
tell us to install them.
if you look to PHP info page, there you find:
but in /etc/my.cnf is:
and in /etc/php.ini is default setting:
My "non correct" solution (because changing of mysql.default_socket in php.ini
doesn't have efect):
If you make a link:
ln -s /var/lib/mysql/mysql.sock /tmp/mysql.sock
connection to MySQL will established.
Current errata (-15)
*** This bug has been marked as a duplicate of 60515 ***