Red Hat Bugzilla – Bug 22397
mysql.sock php apache
Last modified: 2005-10-31 17:00:50 EST
Dear support, I ran the bug fix rpm for mysql (mysql (RHBA-2000:067-03) ). That was suppose to fix the mysql packages shipped with Red Hat Linux 7.0 don't allow users to access the socket, causing the package to work for users "root" and "mysql" only. Well php and apache will not talk to the mysql.socket I tried to tell them where the socket was in my.cnf and mysqld restarting in and infinite loop. Do you have any ideas. Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)
What's the permissions on /var/lib/mysql?
ping?
Yes I ping mysql. That is how I knew it did not see the sock file. I do not know what the perms our any more becuase I wipe the install out but it is what ever perms you get from runing the rpm as root.
The permissions should be fixed by the errata RPMS, but to make absolutely sure I've now added an explicit chmod to the post script in 3.23.30-1