How to modify the default password of mysql in WAMP bitsCN.com first, open the mysql console through WAMP.
Prompt to enter the password. because it is empty, press enter.
Then enter"Use mysql", Which means to use the mysql Database and prompt" Database changed.
Then enter the SQL statement"Update user set password = PASSWORD ('Hooray') where user = 'root ';", Note that the semicolon at the end of the SQL statement should not be less, and the prompt is OK.
Enter"Flush privileges;", If you do not enter this, the password change operation will not take effect.
Then enter"Quit.
In addition, many people say that you can directly modify the password in the mysql table through phpmyadmin. The principle should be correct, but I found that the entire mysql database was lost after the modification, which caused me to reinstall WAMP, finally, it was modified through the command line.
As you can find out, the operation is not difficult, because I found that mysql on my colleagues' computers are all empty passwords. in the future, if I had to configure a server, I would not be able to get a blank password.
BitsCN.com