CentOS7安装mysql报错:Failed to start mysqld.service: Unit not found

报错:

[root@hecs-357186 tomcat]# systemctl start mysql.service
Failed to start mysql.service: Unit not found.

解决:

yum install mariadb-embedded mariadb-libs mariadb-bench mariadb mariadb-sever

安装完再启动试试,当时还是没成功一直报错,又安装了一遍mariadb-server就莫名其妙成功了

yum install -y mariadb-server

你可能感兴趣的:(linux,mysql,数据库,linux,服务器)