zoukankan      html  css  js  c++  java
  • CentOS7安装MySQL报错,解决Failed to start mysqld.service: Unit not found

    当输入命令

    ~]# systemctl start mysql.service

    要启动MySQL数据库是却是这样的提示

    Failed to start mysqld.service: Unit not found

    解决方法如下:

      首先需要安装mariadb-server

      ~]# yum install -y mariadb-server

      启动服务

      ~]# systemctl start mariadb.service

      添加到开机启动

      ~]# systemctl enable mariadb.service

  • 相关阅读:
    POJ 1673
    POJ 1375
    POJ 1654
    POJ 1039
    POJ 1066
    UVA 10159
    POJ 1410
    POJ 2653
    POJ 2398
    POJ 1556
  • 原文地址:https://www.cnblogs.com/aimei/p/12193033.html
Copyright © 2011-2022 走看看