Mysql开机启动,CentOS6.5
时间:2016-05-04 20:46:13
收藏:0
阅读:1129
使用chkconfig命令,步骤如下:
- 将服务文件拷贝到init.d下,并重命名为mysql
cp /usr/local/mysql/support-files/mysql.server /etc/init.d/mysql
- 赋予可执行权
chmod +x /etc/init.d/mysql
- 添加服务
chkconfig --add mysql
- 显示服务列表
chkconfig --list
结果如下图:
可重启验证是否成功。
评论(0)