Question Locked

MySQL Socket Connect Problem

0 helpful
4 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I'm having trouble with our database. I keep getting the error "can't connect to MySql database: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)" in Firefox whenever I try browsing to that section of the website (which is connected to the DB) I changed the parameter in /etc/my.cnf socket=/var/lib/mysql/mysql.sock to socket=/var/tmp/mysql.sock and then restarted MySQL, but still no luck. Can anyone help me with this? Thanks in advance.

4 replies

by evildaemon

So was the path incorrectly defined, or did you just opt to use TCP?

This discussion is closed to new replies.