this happened because the new configuration of mysql-server and phpmyadmin, for security reason, do not allow root user to access remotely by default.
try this steps:
- configure the mysql-server, add a new user "pma" (phpMyAdmin) or "pmauser"
- login to your mysql console using terminal:
mysql -u root -p - insert your root password
- execute this commmand, change the 'yourpassword' to preferred one:
Create user 'pmauser'@'%' identified by 'yourpassword'; - make sure that your new user had been created:
select host, user, authentication_string from mysql.user; - grant privilege to your new user, be aware that this command grants pmauser as superuser as root have: GRANT ALL PRIVILEGES ON *.* TO 'pmauser'@'%';
- configure the phpmyadmin config to use the created user
- go to /etc/phpmyadmin
- cd /etc/phpmyadmin
- edit the config-db.php file
- sudo gedit config-db.php
- edit the user (pma/pmauser) and password as we created before
- save the file
- refresh the page and login