After the install of phpMyAdmin, you need to alter the root password slightly, go to cd /usr/local/mysql, then

sudo bin/mysql -u root -p

ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password';