MySQL root can’t login to phpMyAdmin

On Debian/Ubuntu MySQL root user can only login using socket. This is done with Plugin.

To fix this, run following commands in MySQL command prompt as user root.

MySQL
phpMyAdmin