我想更改我的 mysql.sock 文件的位置,因为我试图停止 mysql,然后编辑 my.cnf
文件,但我收到一条消息
abdul@OSS-240:~$ 服务 mysql 停止
stop: Rejected send message, 1 matched rules; type="method_call", sender=":1.62" (uid=1001 pid=3159 comm="stop) 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"))
问题是什么。
最佳答案
听起来好像用户“abdul”没有停止和启动 MySQL 服务器所需的权限。要么授予这些权限(出于安全考虑可能不建议这样做),要么以 root 身份执行停止和启动命令。
关于mysql服务问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7657237/