【发布时间】:2012-08-30 12:30:15
【问题描述】:
我想停止 mysql 以便在救援模式下启动它以检索我的 mysql 密码,但它向我显示一条错误消息并且不会停止。
service mysql stop
输出:
stop:拒绝发送消息,1 个匹配规则; type="method_call", sender=":1.131" (uid=1000 pid=7640 comm="stop mysql") interface="com.ubuntu.Upstart0_6.Job" member="Stop" 错误 name="(未设置)" requested_reply="0" destination="com.ubuntu.Upstart" (uid=0 pid=1 comm="/sbin/init")
输出
etc/init.d/mysql 停止
不要通过 /etc/init.d 调用初始化脚本,而是使用 service(8) 实用程序,例如服务 mysql 停止
由于您尝试调用的脚本已转换为 新贵工作,您也可以使用 stop(8) 实用程序,例如停止mysql stop:拒绝发送消息,1 个匹配规则; type="method_call", sender=":1.129" (uid=1000 pid=7246 comm="stop mysql") interface="com.ubuntu.Upstart0_6.Job" member="Stop" 错误 名称=“(未设置)”请求回复=“0”目的地=“com.ubuntu.Upstart” (uid=0 pid=1 comm="/sbin/init") subhransu@subhransu-Inspiron-1545:~$ service mysql stop stop: 拒绝发送消息,1 个匹配规则; type="method_call", sender=":1.130" (uid=1000 pid=7400 comm="stop mysql") 接口="com.ubuntu.Upstart0_6.Job" 成员="停止" 错误 名称=“(未设置)”请求回复=“0”目的地=“com.ubuntu.Upstart” (uid=0 pid=1 comm="/sbin/init")
【问题讨论】:
-
您是否以 root 身份运行该命令?
标签: mysql