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

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM