The answer is copied from " " which I have tried and it works always, try it out. Save the file and restart the XAMPP server.įor me much better way is to do it using terminal rather then PhpMyAdmin UI. $cfg = false // set to false for password required $cfg\\ = 'password' Here the ‘password’ is what we set to the root user using the SQL query. Search for the string: $cfg\\ = '' and change it to like this, Open the file C:\xampp\phpMyAdmin\ in your favorite text editor. To do this we have to modify the phpMyAdmin config file. This is because the phpMyAdmin configuration file is not aware of our newly set root passoword. If you refresh the page, you will be getting a error message. Now you will see a message saying that the query has been executed successfully. "UPDATE er SET Password=PASSWORD('password') WHERE User='root' " Now type the following query in the textarea and click Go This will open the SQL tab where we can run the SQL queries. In the phpMyAdmin window, select SQL tab from the right panel. Using this interface we can manager the MySQL server from the web browser.
Start the Apache Server and MySQL instances from the XAMPP control panel.Īfter the server started, open any web browser and go to This will open the phpMyAdmin interface.
RESETTING PHPMYADMIN ROOT PASSWORD UPDATE
Reset XAMPP MySQL root password through SQL update phpmyadmin to work with it: