PhpMyAdmin cannot connect to mysql. how can this problem be solved?
Source: Internet
Author: User
PhpMyAdmin cannot connect to mysql error MySQL & nbsp; return: & nbsp; #1045 & nbsp;-& nbsp; Access & nbsp; denied & nbsp; for & nbsp; user & nbsp; 'root' @ 'localhost' & nbsp; (using & nbsp; phpMyAdmin cannot connect to mysql
Error
MySQL returns:
#1045-Access denied for user 'root' @ 'localhost' (using password: NO)
PhpMyAdmin tries to connect to the MySQL server, but the server rejects the connection. Check the host, user name, and password in the configuration file and confirm that the information is consistent with the information provided by the MySQL server administrator.
The software used is wampserver2.1. after installation, the above error occurs when phpAdmin is run. modifying the mysql password based on some methods on the Internet cannot solve the problem, and modifying the configuration file is also invalid. Who has a better method? could you please advise!
------ Solution --------------------
The configuration file does not set the default MySQL permission account (root has no password.
Modify the config. inc. php file and then upload it.
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