Centos restart mysql service stoped automatically | automatically start mysql after server restart

We will use chkconfig utility which is available default on Linux or CentOS

Solution:
Add Terminal script to start mysql service on boot..
# chkconfig --level 345 mysqld on
Additional information:
Add script to start on boot using chkconfig with --add
# chkconfig --add httpd
# chkconfig httpd on
Confirm script is added successfully, use list command
# chkconfig --list httpd
Disable or delete auto start service you can use following commands
# chkconfig httpd off
# chkconfig --del httpd

Post a Comment

0 Comments