Questions about MySQL password Modification

Source: Internet
Author: User

Today, I tried to change the password for connecting to MySQL.PhpMyAdmin tries to connect to the MySQL server, but the server rejects the connection. Check the host, user name, and password in config. Inc. php and make sure the information is consistent with the information given by the administrator of the MySQL server"The problem occurs. After searching, you need to modify other places before you can connect to the database.There are two places to modify.

1. Find the root directory of phpMyAdmin.D: \ Wamp \ apps \ phpmyadmin3.3.9, FindConfig. Inc. phpOpen this file and find this one.CodeYou can modify it.

View code

1 $ Cfg['Servers'] [$ I] ['Auth _ type'] = 'http)
2 $ Cfg['Servers'] [$ I] ['User'] = 'root ';
3$ Cfg['Servers'] [$ I] ['Password'] = 'your password ';

II:The above password cannot be changed.D: \ Wamp \ apps \ phpmyadmin3.3.9 \ LibrariesDirectoryConfig. Default. phpFile, open it, and find

Show Code

1 $ Cfg['Servers'] [$ I] ['Password'] = 'your password ';

After the two steps are completed, the first time still does not work, you need to refresh the page and re-display the page to log on.


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: 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.