linux设置mysql开机启动

1.确认/etc/init.d/mysqld 存在

2.chkconfig --add mysql        添加服务

3.chkconfig --level 345 mysql on

4.chkconfig --list             显示服务列表

5.shutdown -r now 重启

6、netstat -na | grep 3306,如果看到有监听说明服务启动了

posted @ 2017-12-05 14:26  什么,基地没了?  阅读(603)  评论(0编辑  收藏  举报