zoukankan      html  css  js  c++  java
  • 【mysql】service mysql start出错,mysql启动不了,解决mysql: unrecognized service错误

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

    [root@ctohome.com ~]# service mysql start
    mysql: unrecognized service
    [root@ctohome.com ~]# service mysql restart
    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...

  • 相关阅读:
    重新格式化部门表
    从不订购的客户
    回文数
    shell中的双括号表达式
    shell中的if语句
    shell
    view的生命周期
    shell中的数学运算
    shell中的expr命令
    shell中的退出状态码
  • 原文地址:https://www.cnblogs.com/chinaifae/p/10342234.html
Copyright © 2011-2022 走看看