service mysql start出错,mysql启动不了,解决mysql: unrecognized service错误
  • service mysql start出错,mysql启动不了,解决mysql: unrecognized service错误的方法如下:

    [root@654z.com ~]# service mysql start
    mysql: unrecognized service
    [root@654z.com ~]# service mysql restart
    mysql: unrecognized service
     
    [root@654z.com ~]# rpm -q mysql   查询发现mysql已经正常安装
    mysql-5.1.52-jason.1

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

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

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

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

  •  

  • 点这里复制本页地址发送给您QQ/MSN上的好友
  • 300*300广告