Did you forgot your phpmyadmin password? Struggling to reset?
Okay, let’s see how to reset our phpmyadmin password.
- First stop your MySQL server.
sudo service mysql stop
- Start mysqld
sudo mysqld --skip-grant-tables &
- Login to MySQL as root
mysql -u root mysql
- Change with your new root password
UPDATE user SET Password=PASSWORD('MY_PASS') WHERE User='root'; FLUSH PRIVILEGES; exit;
- Kill mysqld
sudo pkill mysqld
- Start mysql
sudo service mysql start
- Login to phpmyadmin as root with your new password
That’s all… 🙂