phpMyAdmin #1045-access denied for user ' root ' @ ' localhost ' (using password:no, how to resolve

Source: Internet
Author: User
Tags php mysql phpmyadmin
phpMyAdmin #1045-access denied for user ' root ' @ ' localhost ' (using Password:no
PHP MySQL and phpMyAdmin installed under Windows
The following error occurred when entering http://127.0.0.1/phpMyAdmin/or http://127.0.0.1/phpMyAdmin/index.php in the address bar

"#1045-access denied for user ' root ' @ ' localhost ' (using Password:no)"
Version is phpMyAdmin 2.11.6
The following code has been modified in the config.inc.php and config.sample.inc.php files

$cfg [' Servers '] [$i] [' controluser '] = ' root ';
$cfg [' Servers '] [$i] [' controlpass '] = ' my password ';

But the problem still arises?

------Solution--------------------
I have also had this problem.
The problem is either the wrong password or the database host error that you connected to the database is the $db_host value error.
------Solution--------------------
Set a username and password for the database, and give this user permission to access it.
------Solution--------------------
Attempt to perform a connection at the command line to confirm the correctness of the password

Follow the prompts #1045-access denied for user ' root ' @ ' localhost ' (using Password:no)
Indicates that no password was entered when connecting
------Solution--------------------
Look at the Data DB table and user table settings
------Solution--------------------
It helps you to look at this address! ~ ~

Http://hi.baidu.com/panliangmei/blog/item/e36966fd5123f640d6887da9.html
  • 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.