CentOS7安装MySQL报错,解决Failed to start mysqld.service: Unit not found CentOS7安装MySQL,解决Failed to start m

当输入命令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

相关文章
相关标签/搜索