Read-only & MySQL Failed

ccreighton

Active Member
Aug 28, 2001
27
0
301
Hello,

Merry Christmas to all!

My server is acting up...

MySQL is presenting the following error:
"Warning: mysql_pconnect(): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)"

Then when I attempted to apply fixes shown in the forums I ran into this problem: "Read-only file system"

I don't know if one caused the other. Your help is appreciated.
 

jphilipson

Well-Known Member
Jan 8, 2003
80
0
156
Sounds like you were owned,start over with a clean drive... then resore your data from the old
 

HSAdam

Member
Jan 3, 2003
18
0
151
That's totally not true, and a very stupid response.. you should get off these boards.
 

jphilipson

Well-Known Member
Jan 8, 2003
80
0
156
Well it does sound like he is owned.. while there are other ways to solve that problem, I do not think most dcs will allow it.. it is in the dcs best interest to make the server leasee get a fresh drive.. and if he was owned its easy enough to restore from the old drive, and its much safer than tring to clean up an owned server
 

Donna

BANNED
Feb 15, 2003
88
0
156
Toronto, Canada
assuming he was owned and somehow something didn't get mounted right (I've had that happen, and done by a DC tech no less).

First he needs to investigate a little, try a reboot, reset the mySQL root pass etc, check tmp and /var/tmp for odd things as well as running chkrootkit and so on and so forth.

Also, did he run the new securetmp script nick made, I have a mysql problem similar to this guys on one server when I use that script and have to disable it to keep it working.

Assuming he was owned right off the bat with no real information provided by the original poster is getting a little ahead of things. If apache fails should you reinstall too? Or maybe take a look at things first and see if you can get it going again?
 

denisdekat09

Well-Known Member
Mar 2, 2002
266
0
316
San Francisco
How do you disable this script (securetmp)? I am going batty, I took it out of the cron job thinking that would do it but mysql is dead :(

I should add that the server had no tmp partition as it was an older one, I hope this is reversible....



cPanel.net Support Ticket Number: 34570
 
Last edited:

guinea812

Member
Sep 27, 2003
11
0
151
hey-I have the same problem, how did you fix it? It killed sql and it won't allow it to work, please help. I also had no /tmp partition, please help!