当前位置:Gxlcms > 数据库问题 > CentOS7安装mysql后无法启动服务,提示Unit not found

CentOS7安装mysql后无法启动服务,提示Unit not found

时间:2021-07-01 10:21:17 帮助过:17人阅读

[Unit]
Description=MySQL Server
After=network.target
 
[Service]
ExecStart=/usr/bin/mysqld --defaults-file=/etc/mysql/my.cnf --datadir=/var/lib/mysql --socket=/var/run/mysqld/mysqld.sock User=mysql
Group=mysql
WorkingDirectory=/usr
 
[Install]
WantedBy=multi-user.target
技术图片

然后运行

systemctl daemon-reload
使用重启命令:

systemctl start mysql.service

CentOS7安装mysql后无法启动服务,提示Unit not found

标签:blank   server   提示   错误提示   ystemd   post   red   https   lib   

人气教程排行