zoukankan      html  css  js  c++  java
  • [Linux]Service mysql start出错(mysql: unrecognized service)解决方法

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

    # service mysql start
    mysql: unrecognized service
    # service mysql restart
    mysql: unrecognized service

    # rpm -q mysql 查询发现mysql已经正常安装
    mysql-5.1.52-jason.1

    # /etc/rc.d/init.d/mysqld start 直接启动没问题
    Starting mysqld: [ OK ]


    # 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

    # chkconfig mysqld on 设置mysql开机启动

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

    # service mysqld start 搞定
    Starting mysqld: [ OK ]
    # service mysqld start
    Starting mysqld: [ OK ]
    # service mysqld status
    mysqld (pid 9487) is running...

  • 相关阅读:
    Task Schedule
    Number Game
    CDQ分治
    Friends and Subsequences
    HDU5266 pog loves szh III
    P1593 因子和
    求一个数的欧拉函数的优化
    Grandpa's Estate POJ
    LightOJ
    Paint The Wall HDU
  • 原文地址:https://www.cnblogs.com/guanzelin/p/10622319.html
Copyright © 2011-2022 走看看