Unable to log on after changing root password with phpMyAdmin

Source: Internet
Author: User
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.