CentOS7.2安装mariadb-server,解决Failed to start mysqld.service: Unit not found
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了CentOS7.2安装mariadb-server,解决Failed to start mysqld.service: Unit not found相关的知识,希望对你有一定的参考价值。
当输入命令
~]# systemctl start mysql.service
要启动MySQL数据库是却是这样的提示
Failed to start mysqld.service: Unit not found
解决方法如下:
首先需要安装mariadb-server
~]# mariadb-server
启动服务
~]# systemctl start mariadb.service
添加到开机启动
~]# systemctl enable mariadb.service
至此完成!
可以测试一下
~]# mysql -u root -p
以上是关于CentOS7.2安装mariadb-server,解决Failed to start mysqld.service: Unit not found的主要内容,如果未能解决你的问题,请参考以下文章
mariadb-server安装问题(Error: MariaDB-common conflicts with 1:mariadb-libs-5.5.60-1.el7_5.x86_64)
为啥在虚拟机安装mysql命令报错yum install -y mariadb mariadb-server python2-PyMySQL?