解决方法如下:

首先需要安装mariadb-server

  ~]# yum install -y mariadb-server

  启动服务

  ~]# systemctl start mariadb.service

  添加到开机启动

  ~]# systemctl enable mariadb.service

安装:

yum install -y mariadb-server

centos7 安装mysql 解决:Failed to restart mysqld.service: Unit not found_解决方法


成功!

centos7 安装mysql 解决:Failed to restart mysqld.service: Unit not found_centos7 _02