gpt4 book ai didi

mysql - 无法停止 Mysql

转载 作者:可可西里 更新时间:2023-11-01 07:53:34 24 4
gpt4 key购买 nike

我想停止 mysql 以便在救援模式下启动它以检索我的 mysql 密码,但它向我显示一条错误消息并且不会停止。

service mysql stop

输出:

stop: Rejected send message, 1 matched rules; type="method_call", sender=":1.131" (uid=1000 pid=7640 comm="stop mysql ") interface="com.ubuntu.Upstart0_6.Job" member="Stop" error name="(unset)" requested_reply="0" destination="com.ubuntu.Upstart" (uid=0 pid=1 comm="/sbin/init")

输出

etc/init.d/mysql停止

Rather than invoking init scripts through /etc/init.d, use the service(8) utility, e.g. service mysql stop

Since the script you are attempting to invoke has been converted to an Upstart job, you may also use the stop(8) utility, e.g. stop mysql stop: Rejected send message, 1 matched rules; type="method_call", sender=":1.129" (uid=1000 pid=7246 comm="stop mysql ") interface="com.ubuntu.Upstart0_6.Job" member="Stop" error name="(unset)" requested_reply="0" destination="com.ubuntu.Upstart" (uid=0 pid=1 comm="/sbin/init") subhransu@subhransu-Inspiron-1545:~$ service mysql stop stop: Rejected send message, 1 matched rules; type="method_call", sender=":1.130" (uid=1000 pid=7400 comm="stop mysql ") interface="com.ubuntu.Upstart0_6.Job" member="Stop" error name="(unset)" requested_reply="0" destination="com.ubuntu.Upstart" (uid=0 pid=1 comm="/sbin/init")

最佳答案

尝试:

sudo service mysql stop

您必须是 root 才能启动和停止 mysql 服务器。

如果您不是 root,则您必须是可以使用 sudo 的用户,您必须使用命令 sudo 并且您必须知道您的 sudo 密码。

关于mysql - 无法停止 Mysql,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12196873/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com