CentOS7安装MySQL报错Failed to start mysqld.service: Unit not found解决办法
当输入命令
1 ~]# systemctl start mysql.service
要启动MySQL数据库是却是这样的提示
1 ~]# Failed to start mysqld.service: Unit not found
解决方法如下:
首先需要安装mariadb-server
1 ~]# yum install -y mariadb-server
启动服务
1 ~]# systemctl start mariadb.service
添加到开机启动
1 ~]# systemctl enable mariadb.service