By default most MySQL RPM packages do not set the MySQL server to start automatically on boot so this needs to be done manually. On RedHat/CentOS the chkconfig command should be used as follows:
1 2 3 4 5 6 7 |
[root@localhost]# /sbin/chkconfig --list mysqld mysqld 0:off 1:off 2:off 3:off 4:off 5:off 6:off [root@localhost]# /sbin/chkconfig --level 345 mysqld on [root@localhost]# /sbin/chkconfig --list mysqld mysqld 0:off 1:off 2:off 3:on 4:on 5:on 6:off |