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!
Accepted Answer
Hello, @rogengupta6
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
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.