12 2009 in MySQL
Previously used Ampserv to do tests are directly using the default null password root account. Today to install an environment does not allow the password is empty, but to the root plus a password. But found that most of the online tutorials are just say what method can be modified. But there are few detailed descriptions. It took half an hour to find a way. Write here, lest the next time forget again. There's only one way: phpMyAdmin
First with the root account login phpMyAdmin, and then click on the left to enter the MySQL database, at the top of the click "MySQL" into the SQL input interface. Enter the following command:
Update user set Password=password (' 123456′) where user= ' root '
123456 for the password you want to modify, remember not to manually modify the password in the database directly.
Modify MySQL Database root password
Then click on the lower right corner of the "execution", see the following interface, it means that the modification succeeded.
phpMyAdmin modified MySQL database root password succeeded
Don't walk away, it's not over yet. Then you have to enter the phpMyAdmin under the Libraries directory, modify config.default.php file. Find $cfg[' Servers ' [$i] [' password '] = ',
Modified to $cfg[' Servers ' [$i] [' password '] = ' 123456′; 123456 is the password you want. Now log in and try it.