I have been trying to install phpmyadmin on my Debian 9 (stretch) system, I already have apache, php and mysql installed and working. When I run
sudo apt-get install phpmyadmin
it downloads but the installation throws this error:
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
even though I know I have a password for mysql. Is there a way I can force phpmyadmin to use a password when logging into mysql??