zoukankan      html  css  js  c++  java
  • Failed to start mysqld.service: Unit not found

    启动mysql时

     
     
     
     
     
     
     
     
    1
    systemctl start mysql.service
     
     

    提示

     
     
     
    xxxxxxxxxx
    1
     
     
     
     
    1
    Failed to start mysqld.service: Unit not found
     
     

    解决方法

     
     
     
    x
     
     
     
     
    1
    yum install -y mariadb-server
    2
    3
    systemctl start mariadb.service
    4
    5
    systemctl enable mariadb.service
     
     

    [root@iZf8z9gs5xht62gcoz8u81Z ~]# mysql

     
     
     
    xxxxxxxxxx
    9
     
     
     
     
    1
    [root@iZf8z9gs5xht62gcoz8u81Z ~]# mysql
    2
    Welcome to the MariaDB monitor.  Commands end with ; or g.
    3
    Your MariaDB connection id is 2
    4
    Server version: 5.5.68-MariaDB MariaDB Server
    5
    6
    Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
    7
    8
    Type 'help;' or 'h' for help. Type 'c' to clear the current input statement.
    9
     
     
  • 相关阅读:
    苹果mac shell 终端 命令行快捷键——行首行尾
    mac 编译ffmpeg真简单!
    (2)小彩灯接收数据解析
    JSON数据解析(自写)
    ESP-手机--双向通信模式
    史上最全脉搏心率传感器PulseSensor资料(电路图+中文说明书+最全源代码)
    OpenSCAD 大白
    用OpenSCAD設計特製的遊戲骰子
    如何使用openscad绘制一个简单的键帽.
    OpenSCAD(1)基础教程
  • 原文地址:https://www.cnblogs.com/yzg-14/p/14221208.html
Copyright © 2011-2022 走看看