Can't access phpmyadmin

Posted November 7, 2013 10.8k views
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.

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.

Submit an Answer
4 answers
Are you able to SSH into the server? If so, execute:

sudo apt-get update && sudo apt-get -y upgrade && sudo apt-get -y dist-upgrade && sudo apt-get -y autoremove
@matt: Let's break it down to pieces:
sudo apt-get update && sudo apt-get -y upgrade && sudo apt-get -y dist-upgrade && sudo apt-get -y autoremove

  1. sudo apt-get update

  2. sudo apt-get -y upgrade

  3. sudo apt-get -y dist-upgrade

  4. sudo apt-get -y autoremove

You can read on what each command does in the manual:
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.

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.

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.

The /etc/apt/sources.list(5) file contains a list of locations from
which to retrieve desired package files. See also apt_preferences(5) for a mechanism for over-riding the general settings for individual packages.

autoremove is used to remove packages that were automatically installed to satisfy dependencies for other packages and are now no longer needed.
Wow - Pablo you just saved my life. Could you explain in a little more detail what the above command does please?

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