绿色资源网:您身边最放心的安全下载站! 最新软件|热门排行|软件分类|软件专题|厂商大全

绿色资源网

技术教程
您的位置:首页数据库类MySQL → service mysql start出错,mysql不能启动,解决mysql: unrecognized service错误

service mysql start出错,mysql不能启动,解决mysql: unrecognized service错误

我要评论 2012/11/22 17:58:19 来源:绿色资源网 编辑:www.downcc.com [ ] 评论:0 点击:4162次

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...

关键词:mysql

阅读本文后您有什么感想? 已有 人给出评价!

  • 1 欢迎喜欢
  • 5 白痴
  • 2 拜托
  • 3 哇
  • 1 加油
  • 60 鄙视