當輸入命令mysql
~]# systemctl start mysql.servicesql
要啓動MySQL數據庫是倒是這樣的提示數據庫
Failed to start mysqld.service: Unit not foundserver
解決方法以下:it
首先須要安裝mariadb-servermariadb
~]# yum install -y mariadb-serverservice
啓動服務方法
~]# systemctl start mariadb.serviceyum
添加到開機啓動數據
~]# systemctl enable mariadb.service