1 环境:ubuntu 2 问题描述: 停止Mysql服务,输入命令: service mysqld stop 出现如下报错: root@iZ2ze8qk0tdrzqj7sd1kZ:/usr/bin# service mysqld sto
1 环境:ubuntu
2 问题描述:
停止Mysql服务,输入命令:
service mysqld stop
出现如下报错:
root@iZ2ze8qk0tdrzqj7sd1kZ:/usr/bin# service mysqld stopFailed to stop mysqld.service: Unit mysqld.service not loaded.
3 解决:
输入命令:
systemctl enable mysql.service
执行结果:
root@iZ2ze8qk0tdrzqj7sd1kZ:~# systemctl enable mysql.serviceSynchronizing state of mysql.service with SysV init with /lib/systemd/systemd-sysv-install...Executing /lib/systemd/systemd-sysv-install enable mysqlinsserv: can not symlink(../init.d/aeGIS, ../rc2.d/S02aegis): File existsinsserv: can not symlink(../init.d/aegis, ../rc3.d/S02aegis): File existsinsserv: can not symlink(../init.d/aegis, ../rc4.d/S02aegis): File existsinsserv: can not symlink(../init.d/aegis, ../rc5.d/S02aegis): File exists
停止mysql服务,再次输入命令:
systemctl stop mysql
4 验证:
查询mysql进程,输入命令:
ps -aux|grep mysql
执行结果:
root@iZ2ze8qk0tdrzqj7sd1kZ:~# ps -aux|grep mysqlroot 4765 0.0 0.0 14224 1088 pts/0 S+ 15:20 0:00 grep --color=auto mysql
没有mysql进程,说明mysql已经关闭。
来源地址:https://blog.csdn.net/afei8080/article/details/129405602
--结束END--
本文标题: Mysql问题:Failed to stop mysqld.service: Unit mysqld.service not loaded
本文链接: https://lsjlt.com/news/373005.html(转载时请注明来源链接)
有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341
2024-10-23
2024-10-22
2024-10-22
2024-10-22
2024-10-22
2024-10-22
2024-10-22
2024-10-22
2024-10-22
2024-10-22
回答
回答
回答
回答
回答
回答
回答
回答
回答
回答
0