I recently installed LAMP on Ubuntu 13.04(32-bit) but forgot my phpMyAdmin password. How can I reset its password without re-installing it?
I recently installed LAMP on Ubuntu 13.04(32-bit) but forgot my phpMyAdmin password. How can I reset its password without re-installing it?
Simply change or reset your MySQL root password by doing the following:
Stop the MySQL server
Start mysqld
Login to MySQL as root
Change MYSECRET with your new root password
Kill mysqld
Start mysql
Login to phpmyadmin as root with your new password
You don't actually need to reset your username and password, if you can see them.
In your terminal window, type:
This will open your phpmyadmin configurations.
There, you will see your username under
dbc_dbuser='your_username'
and password underdbc_dbpass='your_password'
.There is a workaround on Debian (Ubuntu, Mint, etc.) where there is a second admin account automatically generated by the system called
You can see (and should not change) its password via
It is possible (sure on Ubuntu 16.04) to use that account both in phpMyAdmin as well as in the command line
The account has exactly the same privileges as phpMyAdmin's / MySQL's root.
I was wondering why my login was failing even though I never changed the password.
It was failing because I rebootet the server and the mysql server was not startet automatically. So I startet the server and it worked again.