Every time i wanted to install phpmyadmin, i faced this problem. Tried everything but this problem haven’t solved. Migrating my sites here.
See this image : Image
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
I tried following thsi article - https://www.digitalocean.com/community/tutorials/how-to-install-and-secure-phpmyadmin-on-ubuntu-18-04 as described and it seems like it works as expected.
Note that you need to also follow the mentioned prerequisites otherwise you might hit unexpected errors.
In my case I had to do the following:
Follow the steps from the initial server setup guide: https://www.digitalocean.com/community/tutorials/initial-server-setup-with-ubuntu-18-04
Then follow the steps on how to install LAMP: https://www.digitalocean.com/community/tutorials/how-to-install-linux-apache-mysql-php-lamp-stack-ubuntu-18-04
And finally proceed with the phpMyAdmin tutorial
I think that you would get the error in case that you have not run the ```sudo mysql_secure_installation`` command from the How to install LAMP tutorial.
Hope that this helps! Regards, Alex