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

Source: Internet
Author: User
Tags phpmyadmin

You need to modify the phpMyAdmin configuration file to connect to the MySQL database and open the config.inc.php file with Notepad
1<?PHP2 3 /*Servers Configuration*/4 $i= 0;5 6 /*server:localhost [1]*/7 $i++;8 $cfg[' Servers '] [$i[' verbose '] = ' localhost ';9 $cfg[' Servers '] [$i[' host '] = ' localhost ';Ten $cfg[' Servers '] [$i[' port '] = ' 3306 '; One $cfg[' Servers '] [$i[' socket '] = '; A $cfg[' Servers '] [$i[' connect_type '] = ' TCP '; - $cfg[' Servers '] [$i[' extension '] = ' mysqli '; - $cfg[' Servers '] [$i[' auth_type '] = ' config '; the $cfg[' Servers '] [$i[' user '] = ' root '; - $cfg[' Servers '] [$i[' password '] = '; - $cfg[' Servers '] [$i[' allownopassword '] =true; -  + /*End of servers configuration*/ -  + $cfg[' defaultlang '] = ' en-utf-8 '; A $cfg[' serverdefault '] = 1; at $cfg[' uploaddir '] = '; - $cfg[' savedir '] = '; -  -  - /*rajk-for blobstreaming*/ - $cfg[' Servers '] [$i[' bs_garbage_threshold '] = 50; in $cfg[' Servers '] [$i[' bs_repository_threshold '] = ' 32M '; - $cfg[' Servers '] [$i[' bs_temp_blob_timeout '] = 600; to $cfg[' Servers '] [$i[' bs_temp_log_threshold '] = ' 32M '; +  -  the?>

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

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.