1. service mysql start出错,mysql启动不了,解决mysql: unrecognized service错误的方法如下: 
  2. [root@linux ~]# service mysql start 
  3. mysql: unrecognized service 
  4. [root@linux ~]# service mysql restart 
  5. mysql: unrecognized service 
  6.   
  7. [root@linux ~]# rpm -q mysql   查询发现mysql已经正常安装 
  8. mysql-5.1.52-jason.1 
  9.  
  10. [root@linux ~]# /etc/rc.d/init.d/mysqld start  直接启动没问题 
  11. Starting mysqld:  [  OK  ] 
  12.  
  13.   
  14. [root@linux ~]# ls  /etc/rc.d/init.d/mysqld  -l 
  15. -rwxr-xr-x 1 root root 5509 Dec 18 02:31 /etc/rc.d/init.d/mysqld 
  16.  
  17. [root@linux ~]# chkconfig mysqld on 设置mysql开机启动 
  18.  
  19. [root@linux ~]# chmod 755 /etc/rc.d/init.d/mysqld  修改mysqld执行权限 
  20.  
  21. [root@linux ~]# service mysqld start  搞定 
  22. Starting mysqld:  [  OK  ] 
  23. [root@linux ~]# service mysqld start 
  24. Starting mysqld:  [  OK  ] 
  25. [root@linux ~]# service mysqld status 
  26. mysqld (pid 9487) is running...