mysql: unrecognized service

1. 执行报错

[root@instance-s77y7hqr ~]# service mysql stop

mysql: unrecognized service

2.使用rpm -q mysql 出现 package mysql is not installed

rpm -qa| grep mysql rpm -q mysql-community-server-5.6.47-2.el6.x86_64

3.  /etc/rc.d/init.d/mysqld start  直接启动没问题

4. ls  /etc/rc.d/init.d/mysqld  -l

5. chkconfig mysqld on 设置mysql开机启动

6. chmod 755 /etc/rc.d/init.d/mysqld  修改mysqld执行权限

7. service mysqld start Starting mysqld: [ OK ]

 

你可能感兴趣的:(mysql: unrecognized service)