Resetting the ROOT password in a MySql server
If you haven't guessed, this blog contains things I need to remember because I make alot of stupid mistakes. This happens often when your brain is a sieve.
Anyhow, so with my last install of WAMP, I decided to be clever and give my 'root' privilege an actual password because I was tired of seeing that error is phpMyAdmin. LOL, well, so after I set it and tried to get into the phpMyAdmin ... I was locked out.
So, if that happens to you, try this:
- use the WAMP task bar manager and select the MySQL console or ...
- go to mysql prompt with
mysql -u root -p - then, use 'mysql' database
use mysql; - select, which user to change
select Host, User, Password from user ; - and change the desired user
update user set password = '' where user = 'root' and host = 'localhost';
and you should be good to go !
- johnvsc's blog
- Login to post comments
