So for the past hour I\'ve been trying to figure out how to reset my \'root\' password for MySQL as I cannot log into PHPMyAdmin. I\'ve tried changing the password in the co
Open the XAMPP control panel and click on the shell and open the shell.
In the shell run the following :
mysql -h localhost -u root -p
and press enter. It will as for a password, by default the password is blank so just
press enter
Then just run the following query
SET PASSWORD FOR 'root'@'localhost' = PASSWORD('newpassword');
and press enter and your password is updated for root user on localhost