教程集 www.jiaochengji.com
教程集 >  数据库  >  mysql  >  正文 mysql: unrecognized service错误的解决方法

mysql: unrecognized service错误的解决方法

发布时间:2015-09-21   编辑:jiaochengji.com
mysql: unrecognized service错误的解决方法

mysql启动时,出现如下所示的错误。
[root@ctohome.com ~]# service mysql start
mysql: unrecognized service

尝试以下方法解决此问题:
[root@ctohome.com ~]# rpm -q mysql 查询发现mysql已经正常安装
mysql-5.1.52-jason.1

[root@ctohome.com ~]# /etc/rc.d/init.d/mysqld start  直接启动没问题
Starting mysqld:  [  OK  ]

[root@ctohome.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@ctohome.com ~]# chkconfig mysqld on 设置mysql开机启动

[root@ctohome.com ~]# chmod 755 /etc/rc.d/init.d/mysqld  修改mysqld执行权限

[root@ctohome.com ~]# service mysqld start  搞定
Starting mysqld:  [  OK  ]
[root@ctohome.com ~]# service mysqld start
Starting mysqld:  [  OK  ]
[root@ctohome.com ~]# service mysqld status
mysqld (pid 9487) is running...

您可能感兴趣的文章:
mysql: unrecognized service错误的解决方法
ERROR 2002 (HY000): Can't connect to local MySQL
phpmyadmin设置密码(phpmyadmin密码修改)
mysql启动错误报1067错误怎么解决
解决office2013安装错误1921/1920的问题
MySQL启动错误Starting MySQL.Manager of pid-file quit without updating file.[FAILED]
Mysql启动中InnoDB: Error: log file ./ib_logfile0 is of different size 0错误的解决办法
无法启动mysql服务,进程意外终止,1067错误的解决方法
解决服务器应用程序不可用,错误:0x80070005拒绝访问的错误
Can't connect to local MySQL server through socket 问题的解决方法

[关闭]
~ ~