Sudden problem with MySQL

aouchie

New member
Joined
Sep 9, 2005
Messages
1
When I go to the admin page of a program that has been working on my website for a few months, it suddenly says:

Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /disk2/home/sites/aouchie/eonlinebiz.com/web/specialdd/MyDD/functions.php on line 4
Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)Please make sure you entered the right information in your conn.php file

I checked the conn.php file and it is setup correctly. I then went to my File Manager and clicked on the MySql icon and received this message:


HTTP/1.0 500 Perl execution failed Server: MiniServ/0.01 Date: Sat, 10 Sep 2005 01:55:56 GMT Content-type: text/html Connection: close
Error - Perl execution failed
DBI connect('mysql:localhost','root',...) failed: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) at /usr/libexec/webmin2/cpmysql/index.cgi line 12

I am not a programmer at all - and I'm not sure where to go to fix this problem. Can anyone help?

Thanks,
Annette
 
Either mysql isn't running...

or some firewalling system has somehow blocked it.

Jeff
 
I have also been experiencing sudden MySQL problems for the past two days. My MySQL service just stops responding. I have to kill the process and restart it to get it functioning again, but I keep doing it every hour. Reading the boards, I'm no the only one with this problem it seems.
 
Hi!
did you solve the problem?

I have found a file called my.conf.rpmsave
in /etc/ instead of my.conf

renamed the file, restarted and everything is fine again.

Now the question is what happened?
 
Last edited:
When an RPM updates a program and the config file is for some reason not compatible; it will install a new generic config file and save the old config file with the .rpmsave extension.

Jeff
 
Back
Top