在安装 mtop的时候报了这个错误
Setting up mtop (0.6.6-1.1) ...
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
dpkg: error processing mtop (--configure):
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
在网上找了很多方法,最后用下面的方法解决。
$ mysql -u root -p 输入你的密码
>SET PASSWORD FOR root@localhost=PASSWORD('');QUIT;把密码设置为空
* install mtop 然后安装mtop
apt-get install mtop
$ mysql -u root -p 再把密码设置回来!
>SET PASSWORD FOR root@localhost=PASSWORD('YOURROOTPASSWORD');QUIT;
Setting up mtop (0.6.6-1.1) ...
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
dpkg: error processing mtop (--configure):
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
在网上找了很多方法,最后用下面的方法解决。
$ mysql -u root -p 输入你的密码
>SET PASSWORD FOR root@localhost=PASSWORD('');QUIT;把密码设置为空
* install mtop 然后安装mtop
apt-get install mtop
$ mysql -u root -p 再把密码设置回来!
>SET PASSWORD FOR root@localhost=PASSWORD('YOURROOTPASSWORD');QUIT;