thinkphp error-phpmyadmin trying to connect to MySQL server, but the server refused to even

Source: Internet
Author: User
Tags phpmyadmin

PhpMyAdmin tries to connect to the MySQL server, but the server rejects the connection. You should check the host, user name, and password in the configuration file and confirm that the information is consistent with the information given by the MySQL server administrator.

This may be due to a change to the password for the MySQL database.

Workaround:

1) Modify the $cfg in the config.inc.php under wamp\apps\phpmyadmin4.1.14 [' Servers '] [$i] [' password '] = "; options

2) Modify $cfg[' Servers ' [$i] [' auth_type '] = ' http '; Modify to HTTP
Of course, there may still be a mistake, because this is caused by IE cache, choose IE Internet Options, general-"clear browsing history, clear the cache after resolving the problem

The following are configuration information about the database configuration in config.inc.php:

There is a config.inc.php in the phpMyAdmin directory, you can open it with Notepad, and then
/* Authentication type and Info * * This sentence below
$cfg [' Servers '] [$i] [' auth_type '] = ' config ';
$cfg [' Servers '] [$i] [' user '] = ' root ';
$cfg [' Servers '] [$i] [' password '] = ' ************* '; Database Password
$cfg [' Servers '] [$i] [' extension '] = ' mysql ';

Note: If you have a MySQL database installed before installing WAMP, fill in the password of the native MySQL database at password

thinkphp error-phpmyadmin trying to connect to MySQL server, but the server refused to even

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.