当前位置:Gxlcms >
数据库问题 >
Centos7安装mysql后无法启动,提示 Unit mysql.service failed to load:No such file or directory
Centos7安装mysql后无法启动,提示 Unit mysql.service failed to load:No such file or directory
时间:2021-07-01 10:21:17
帮助过:15人阅读
print?
- [root@localhost ~]# systemctl start mysql.service
- Failed to start mysql.service: Unit mysql.service not found.
查了半天资料,终于了解到
MariaDB代替了mysql数据库,MariaDB数据库管理系统是MySQL的一个分支,主要由开源社区在维护,采用GPL授权许可。开发这个分支的原因之一是:甲骨文公司收购了MySQL后,有将MySQL闭源的潜在风险,因此社区采用分支的方式来避开这个风险。因此用上述命令启动不起来,正确的方法如下
[java] view plain
copy print?
- # yum install mariadb-server -y
- # systemctl start mariadb.service
- # systemctl enable mariadb.service
- # mysql -u root -p
来源: http://blog.csdn.net/ezitai/article/details/52085141
Centos7安装mysql后无法启动,提示 Unit mysql.service failed to load:No such file or directory
标签:lin tools server order targe views host 数据 rda