Can't access phpmyadmin

It’s been a while since I worked on my site. Now that I have a new version to upload, I can’t access phpmyadmin.

#2002 Cannot log in to the MySQL server Connection for controluser as defined in your configuration failed.

I am positive of the username/password I even check /home/snitz/.htpasswd there was “root” as username and the encrypted password. But it’s not working.

Anyway I can change the password or anything? Because I really don’t wanna restart the server configuration from the start.

Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Are you able to SSH into the server? If so, execute: <br> <br><pre>sudo apt-get update && sudo apt-get -y upgrade && sudo apt-get -y dist-upgrade && sudo apt-get -y autoremove</pre>

@matt: Let’s break it down to pieces: <br><pre>sudo apt-get update && sudo apt-get -y upgrade && sudo apt-get -y dist-upgrade && sudo apt-get -y autoremove</pre> <br><ol> <br><li>sudo apt-get update</li> <br><li>sudo apt-get -y upgrade</li> <br><li>sudo apt-get -y dist-upgrade</li> <br><li>sudo apt-get -y autoremove</li> <br></ol> <br> <br>You can read on what each command does in the manual: <a href=“”></a> <br><strong>update</strong> <br><pre>Used to re-synchronize the package index files from their sources. The indexes of available packages are fetched from the location(s) specified in /etc/apt/sources.list(5). An update should always be performed before an upgrade or dist-upgrade.</pre> <br><strong>upgrade</strong> <br><pre>Used to install the newest versions of all packages currently installed on the system from the sources enumerated in /etc/apt/sources.list(5). Packages currently installed with new versions available are retrieved and upgraded; under no circumstances are currently installed packages removed, nor are packages that are not already installed retrieved and installed. New versions of currently installed packages that cannot be upgraded without changing the install status of another package will be left at their current version. An update must be performed first so that apt-get knows that new versions of packages are available.</pre> <br><strong>dist-upgrade</strong> <br><pre>In addition to performing the function of upgrade, this option also intelligently handles changing dependencies with new versions of packages; apt-get has a “smart” conflict resolution system, and it will attempt to upgrade the most important packages at the expense of less important ones, if necessary. <br>The /etc/apt/sources.list(5) file contains a list of locations from <br>which to retrieve desired package files. See also apt_preferences(5) for a mechanism for over-riding the general settings for individual packages.</pre> <br><strong>autoremove</strong> <br><pre>autoremove is used to remove packages that were automatically installed to satisfy dependencies for other packages and are now no longer needed.</pre>

Tried your solution Pablo but it didn’t work. Any other solutions?