If you try to install mtop on Debian or Ubuntu you will be presented with an error preventing you from using the tool in the first place. The solution to the problem has been posted online for quite some time. If you want to avoid this problem consider replacing mtop for mytop. Otherwise try this.
For those who are facing this issue and until a package dealing with it is released, a workaround is reset MySQL root password during install then re-enable it:
$ mysql -u root -p
* Enter the following MySQL command: >SET PASSWORD FOR root@localhost=PASSWORD('');QUIT;
* install mtop apt-get install mtop
* Set MySQL root password to irs previous value: $ mysql -u root -p >SET PASSWORD FOR root@localhost=PASSWORD('YOURROOTPASSWORD');QUIT;
Again, I recommend you replace mtop for mytop
All credit goes to.