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
     
     
  • 相关阅读:
    Android模拟器操作快捷键
    【从零之三(更)】自定义类中调用讯飞语音包错误解决办法
    解决Please ensure that adb is correctly located at 'D:javasdkplatform-toolsadb.exe' and can be executed.
    辛星浅析同源策略
    Java读源代码学设计模式:适配器Adapter
    iOS 隐藏NavigationBar的方法
    Odoo(OpenERP)开发实践:数据模型学习
    Android软键盘状态的切换及其强制隐藏
    用python阐释工作量证明(proof of work)
    基于spark1.4的Spark-Sql
  • 原文地址:https://www.cnblogs.com/yzg-14/p/14221208.html
Copyright © 2011-2022 走看看