By Ned
I’m trying to follow these instructions to install phpMyAdmin: https://www.digitalocean.com/community/tutorials/how-to-install-and-secure-phpmyadmin-on-ubuntu-18-04
But I get this error after trying to install phpMyAdmin using this command (second step from above):
sudo apt install phpmyadmin php-mbstring php-gettext
This is the error I get:
ERROR 1045 (28000): Access denied for user 'debian-sys-maint'@'localhost' (using password: YES)
Any one know how to fix this? I have tried a few things that came up in Google, but no luck so far.
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!
Hi there @neddytek,
I tried following the article 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, Bobby
This is happening every single time I use the marketplace image for WordPress with Ubuntu 20, tried tons of suggested solutions on internet and the one that did the trick was this:
Start mysql with root user and then:
mysql> GRANT ALL PRIVILEGES ON *.* TO 'debian-sys-maint'@'localhost' WITH GRANT OPTION;
mysql> FLUSH PRIVILEGES;
mysql> EXIT
The part I was missing and didn’t see in other places was the WITH GRANT OPTION.
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.