This should allow you to access MySQL if you don't know your password. Open C:\xampp\mysql\bin\my.ini (MySQL config file)įind the line and right below it add skip-grant-tables.
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.
#Change phpmyadmin root password xampp update
Save the file and restart the XAMPP server.Reset XAMPP MySQL root password through SQL update phpmyadmin to work with it: Search for the string $cfg = ‘ and change it to like this, $cfg = ‘˜password’ Here the ‘˜password’ is what we set to the ‘˜root’ user using the SQL query.Open the file / phpmyadmin / in your favorite text editor.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' FLUSH PRIVILEGES Now type the following query in the textarea and click Go.In the phpMyAdmin window, select SQL tab from the right panel.After the server started, open any web browser and give (if you are running XAMPP on 3306 port).Start the Apache Server and MySQL instances from the XAMPP control panel.Method 2: reset XAMPP MySQL root password through SQL update: This will update the phpMyAdmin config also.
Method 1: reset XAMPP MySQL root password through web interface:Īfter you started your XAMPP server, go to the browser and type the URL The security page will be shown where you can change the ‘˜root’ password for MySQL. To avoid this, a proper/secure password must be set to the user ‘˜ root‘˜. But this is not recommended, as the MySQL database without a password will be accessible to everyone.
#Change phpmyadmin root password xampp install
By default, when you install XAMPP in your windows machine, the ‘˜root’ password for the MySQL is set to empty.