mysqlservice mysql start出错,mysql启动不了,解决mysql: unrecognized service错误
Posted 我是司
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了mysqlservice mysql start出错,mysql启动不了,解决mysql: unrecognized service错误相关的知识,希望对你有一定的参考价值。
service MySQL start出错,mysql启动不了,解决mysql: unrecognized service错误的方法如下:
[[email protected] ~]# service mysql start
mysql: unrecognized service
[[email protected] ~]# service mysql restart
mysql: unrecognized service
[[email protected] ~]# rpm -q mysql 查询发现mysql已经正常安装
mysql-5.1.52-jason.1
[[email protected] ~]# /etc/rc.d/init.d/mysqld start 直接启动没问题
Starting mysqld: [ OK ]
[[email protected] ~]# 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
[[email protected] ~]# chkconfig mysqld on 设置mysql开机启动
[[email protected] ~]# chmod 755 /etc/rc.d/init.d/mysqld 修改mysqld执行权限
[[email protected] ~]# service mysqld start 搞定
Starting mysqld: [ OK ]
[[email protected] ~]# service mysqld start
Starting mysqld: [ OK ]
[[email protected] ~]# service mysqld status
mysqld (pid 9487) is running...
以上是关于mysqlservice mysql start出错,mysql启动不了,解决mysql: unrecognized service错误的主要内容,如果未能解决你的问题,请参考以下文章
安装mysql时,配置到最后start service 出现:Could Not Connect To The Service Control Manager
com.abc.serive.MysqlService 中的字段 countRepo 需要找不到类型为“com.abc.repository.ClicksQuickReplyRepository”的