时间:2021-07-01 10:21:17 帮助过:3人阅读
当输入命令
~]# 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
标签:centos7.2 server star 安装 l数据库 解决 serve bsp mysq