【问题标题】:Start mysql in CentOS7, Failed to start mysql.service: Unit not foundCentOS7启动mysql,启动mysql.service失败:Unit not found
【发布时间】:2018-10-05 10:04:45
【问题描述】:

当我输入命令时:

systemctl start mysqlCentOS7 中,我收到以下消息:

Failed to start mysql.service: Unit not found

感谢您的帮助。

【问题讨论】:

  • 同样的错误,你有解决办法吗

标签: mysql hive centos7


【解决方案1】:

使用命令service mysqld start

可以在centos7 for mysql8.0下运行

【讨论】:

    【解决方案2】:

    使用这个线程。它对我有用。

    之后我遇到了同样的错误
    yum install mysql
    

    https://stackoverflow.com/a/34654662/7773802

    【讨论】:

      【解决方案3】:

      我使用

      解决了这个问题
      1. I uninstalled the mariadb maridb-server packages
      2. I removed the directory /var/lib/mysql. ( mv /var/lib/mysql /mysqlbak)
      3 Reinstalled the Mariadb, Mariadb-server packages.
      4. systemct start mariadb; systemctl enable mariadb (problem solved).
      

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2019-11-16
        • 2019-05-28
        • 2011-06-08
        • 2013-11-30
        • 2017-04-04
        • 2018-06-14
        相关资源
        最近更新 更多