我只是尝试通过将'squeeze'替换为'unstable'从debian squeeze升级为unstable /etc/apt/sources.list
。升级进行得很顺利,除了MySQL失败,因为它无法停止MySQL。
/etc/init.d/mysql stop
只是返回失败,但是如果我尝试获取/etc/init.d/mysql status
它的状态,则会出现此错误:
me@debian:~$ sudo /etc/init.d/mysql status
/usr/bin/mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user 'debian-sys-maint'@'localhost' (using password: YES)'
MySQL运行正常,我在phpmyadmin中检查了debian-sys-maint的权限,可以执行所有操作,但只能从连接localhost
。
GRANT ALL PRIVILEGES ON *.*