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
解决方法如下:
首先需要安装mysql-server
1 ~]# yum install -y mysql-server
启动服务
1 ~]# systemctl start mysqld.service
添加到开机启动
1 ~]# systemctl enable mysqld.service
之后连接数据库 mysql 命令
相关推荐
CoderToy 2020-11-16
emmm00 2020-11-17
王艺强 2020-11-17
ribavnu 2020-11-16
bianruifeng 2020-11-16
wangshuangbao 2020-11-13
苏康申 2020-11-13
vivenwan 2020-11-13
moyekongling 2020-11-13
云中舞步 2020-11-12
要啥自行车一把梭 2020-11-12
aydh 2020-11-12
kuwoyinlehe 2020-11-12
minerk 2020-11-12
vitasfly 2020-11-12
jazywoo在路上 2020-11-11
敏敏张 2020-11-11
世樹 2020-11-11