My phpmyadmin has been unavailable since wampserver2.0 was installed on Windows 7.

Source: Internet
Author: User
After wampserver2.0 is installed in my win7, phpmyadmin has never been used. I didn't use the integrated environment at first. php, apache, and phpmyadmin are installed separately, after changing to wamp, phpmyadmin always reports an error #1045-Access denied for user 'root' @ 'localhost' (using password: NO). I found config. inc. php, but I found a file named config. inc. php also has a config. sample. inc. the php file does not have a line of code to change the password and user name, but I cannot change its file name to config. inc. php
I suspect that it was not uninstalled.


Cainiao is here. thank you for your guidance !!!!!


Reply to discussion (solution)

Change localhost to 127.0.0.1.

Libraries/config. default. php
About 187 rows
/**
* MySQL user
*
* @ Global string $ cfg ['servers'] [$ I] ['user']
*/
$ Cfg ['servers'] [$ I] ['user'] = 'root'; // enter the user name

/**
* MySQL password (only needed with 'config' auth_type)
*
* @ Global string $ cfg ['servers'] [$ I] ['password']
*/
$ Cfg ['servers'] [$ I] ['password'] = ''; // enter the password

If no password exists, modify the password (near line 1)
$ Cfg ['servers'] [$ I] ['nopassword'] = true; // The default value is false.

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.