Unable to start MySQL on CentOS 6.2

Status
Not open for further replies.

moviezzworld

Active Member
95
2012
12
10
Today I got this error " Error establishing a database connection "

My server in online only my host told database problem, so i planned restart mysql

I have tried the following to start it

/etc/init.d/mysql restart

but I get the following message

/etc/init.d/mysql: No such file or directory

I tried with mysqld

/etc/init.d/mysqld restart

but again i get

# /etc/init.d/mysqld restart
Stopping mysqld: [ OK ]
Timeout error occurred trying to start MySQL Daemon.
Starting mysqld: [FAILED]


Please Any one help me
 
3 comments
check your logs in
/var/log/
there should be a mysql.error file
it will tell you what errors it encounters.

the last command is at least the right one ^^
 
Can you try running?:

/etc/init.d/mysql stop
mv /etc/my.cnf /etc/my2.cnf
/etc/init.d/mysql start

If it does not work please give the errors + the error log wedge1001 mentioned above ^^
 
check your logs in
/var/log/
there should be a mysql.error file
it will tell you what errors it encounters.

the last command is at least the right one ^^

Can you try running?:

/etc/init.d/mysql stop
mv /etc/my.cnf /etc/my2.cnf
/etc/init.d/mysql start

If it does not work please give the errors + the error log wedge1001 mentioned above ^^


Thanks a lot for your reply friends.

Now my site back in online with help of Serverpolice
 
Status
Not open for further replies.
Back
Top