phpMyAdmin to change the root password cannot be logged in _php tutorial

Source: Internet
Author: User
Previous tests with Ampserv are done directly with the default empty password root account. Today to install an environment does not allow the password is empty, helpless to add a password to root. But found that most of the online tutorials are only to say what method can be modified. But it is seldom described in detail. It took half an hour to find a way. Write here, lest the next forget again. There is only one way: phpMyAdmin

First login to the phpMyAdmin with the root account, then click on the left to enter the MySQL database, click on the top of "MySQL" to enter the SQL input interface. Enter the following command:

Update user set Password=password (' 123456′) where user= ' root '

123456 is the password you wish to change, so remember not to manually change the password in the database directly.

Modify the MySQL database root password

Then click "Execute" in the lower right corner to see the following interface, indicating that the modification was successful.

phpMyAdmin Modify the MySQL database root password successfully.

Don't walk away, it's not over. Then go to the Libraries directory under phpMyAdmin and modify the config.default.php file. Find $cfg[' Servers ' [$i] [' password '] = ',

Modified to $cfg[' Servers ' [$i] [' password '] = ' 123456′; 123456 is the password you want. Now get on the landing and try it.

http://www.bkjia.com/PHPjc/364617.html www.bkjia.com true http://www.bkjia.com/PHPjc/364617.html techarticle previous tests with Ampserv are done directly with the default empty password root account. Today to install an environment does not allow the password is empty, helpless to add a password to root. But found that most of the online teaching ...

  • Related Article

    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.