Entry
Where do I find the solution to the following problem: Warning: MySQL Connection Failed: Can't connect to local MySQL server
Oct 31st, 2001 14:51
delas raiford, Philip Olson, http://www.mysql.com/doc/C/a/Can_not_connect_to_server.html
: A work around for the default Redhat 7.1 MySQL installation is to
make a "virtual" /tmp/mysql.sock file.
By default it is installed to /var/lib/mysql/mysql.sock and the
permissions seem to get in the way of Apache.
Rather than play around with permissions:
Log in as superuser
cd /tmp
ln -s /var/lib/mysql/mysql.sock mysql.sock
double check permissions
You should now be ready to go.
I located this solution from the mysql.com link I list above. See it
for complete detail.