Question Locked
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 acracker Accepted solution
Clarifications
by evildaemon Accepted solution
There are lots of things that could cause this error. My first instinct would be to check permissions on the directory containing the socket file (and making sure that file exists), and check the connection parameters used in the calling script.
Aside from that:
http://www.mysql.org/doc/refman/5.1/en/can-not-connect-to-server.html
by acracker Accepted solution
Thanks for the info, but I found a resolution here: http://forums.serverbeach.com/archive/index.php/t-147.html
It was a problem with my php.ini file.
by evildaemon Accepted solution
So was the path incorrectly defined, or did you just opt to use TCP?
This discussion is closed to new replies.
Trending Networks posts
Sort by Trending
Question Locked
Internet connection perfect on PC, not connecting anywhere else
0 helpful
4 replies
Question Locked
Using multi-NIC setup for NAS + router — better than VLAN?
0 helpful
4 replies
0 helpful
5 replies
Question Locked
Unknown device connected to my network
0 helpful
2 replies
Question Locked
How to change public IP without ISP?
0 helpful
2 replies