phpMyAdmin attempt to connect to MySQL server is denied

Source: Internet
Author: User

Open the phpMyAdmin folder under theconfig.sample.inc.phpfile,find this sentence

$cfg [' Servers '] [$i] [' auth_type '] = ' config ';

This can be set to HTTP (http), config, cookies, signon.

Config: This is a simple way to write the password directly to the config.inc.php file and read the file directly when you log in.

Cookies: This is the normal version of the login method, is the basic fill in the user name and password, stored in the cookie and so on after you exit will be removed.

http (http): This is the HTTP authentication mode, when you log in to this page, the browser will pop up a dialog box prompts you to enter the user name and password.

signon: This mode can provide you with the ability to write a PHP script, log in when you read this script. For example, "signon/example.php".

If set to ' Config ', the following sentence is found

$cfg [' Servers '] [$i] [' password '] = ';

Change into

$cfg [' Servers '] [$i] [' password '] = ' your database password ';


phpMyAdmin attempt to connect to MySQL server is denied

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.