MySQL does not start on boot

iLinux85

Well-Known Member
Mar 28, 2010
52
2
58
hello

when i restart the server , all services running well , except mysql not start , i should start it manually , so how could mysql start by it self like httpd

thanks
 

JaredR.

Well-Known Member
Feb 25, 2010
1,834
27
143
Houston, TX
cPanel Access Level
Root Administrator
What is the output of this command?

Code:
# chkconfig --list mysql
mysql          	0:off	1:off	2:on	3:on	4:on	5:on	6:off
If it does not say "on" for levels 3 and 5, run this command:

Code:
# chkconfig --level 35 mysql on
That will make the MySQL service start on boot.
 

iLinux85

Well-Known Member
Mar 28, 2010
52
2
58
Code:
root@sawa4 [/]# chkconfig --list mysql
service mysql supports chkconfig, but is not referenced in any runlevel (run 'chkconfig --add mysql')
Code:
root@sawa4 [/]# chkconfig --level 35 mysql on
root@sawa4 [/]#
Code:
root@sawa4 [/]# chkconfig --list mysql
mysql           0:off   1:off   2:on    3:on    4:on    5:on    6:off
this should be automaticly running now ?
 

CitizenK

Well-Known Member
Jun 5, 2012
64
1
58
On The Road
cPanel Access Level
Root Administrator
That is correct. MySQL should now start on boot. Additionally if the mysql server is down you can start it without rebooting with this command.
Code:
/scripts/restartsrv_mysql