After installing phpMyAdmin, when login with root, you get following error
The root login was blocked by security reasons.
1698 - Access denied for user 'root'@'localhost'
mysqli_real_connect(): (HY000/1698): Access denied for user 'root'@'localhost'
We need to create an admin user by ourself.
1 Use Terminal to login to mysql as root, if you have created root password for mysql, if it is blank then use following command
sudo mysql -p -u root
2 Create a new user with new password, here we use testuser and testpassword as example
CREATE USER 'testuser'@'localhost' IDENTIFIED BY 'testpassword';
Grant superuer permission to the new user
GRANT ALL PRIVILEGES ON *.* TO 'testuer'@'localhost' WITH GRANT OPTION;
Now you can use the new login to login to phpMyAdmin