service mysql start出错,mysql不能启动,解决mysql: unrecognized service错误
service mysql start出错,mysql启动不了,解决mysql: unrecognized service错误的方法如下:
[root@downcc.com ~]# service mysql start
mysql: unrecognized service
[root@downcc.com ~]# service mysql restart
mysql: unrecognized service
[root@downcc.com ~]# rpm -q mysql 查询发现mysql已经正常安装
mysql-5.1.52-jason.1
[root@downcc.com ~]# /etc/rc.d/init.d/mysqld start 直接启动没问题
Starting mysqld: [ OK ]
[root@downcc.com ~]# ls /etc/rc.d/init.d/mysqld -l
-rwxr-xr-x 1 root root 5509 Dec 18 02:31 /etc/rc.d/init.d/mysqld
[root@downcc.com ~]# chkconfig mysqld on 设置mysql开机启动
[root@downcc.com ~]# chmod 755 /etc/rc.d/init.d/mysqld 修改mysqld执行权限
[root@downcc.com ~]# service mysqld start 搞定
Starting mysqld: [ OK ]
[root@downcc.com ~]# service mysqld start
Starting mysqld: [ OK ]
[root@downcc.com ~]# service mysqld status
mysqld (pid 9487) is running...
声明:优质手游攻略创作不易,来源:爱钻网。转载务必注明出处:http://www.aizuanapp.com/article/16031.html
① 扫二维码或添加微信号:sjyou_com 关注"爱钻网"
② 领取游戏礼包、手游攻略、新游推荐、游戏陪玩、原创测评
③ 赶紧扫一扫添加吧,Get手游技巧~