Youdon & #39; thavepermissiontoaccess/phpmyadmin/on

Source: Internet
Author: User
Phpmyadmin configuration fails for an hour, whether in 127.0.0.1 or localhost. and then it is sent to the wmap environment to configure phpmyadmin to modify the config under libraries. default. the correct steps for php are as follows: 1. Configure the config. default. php $ cfg [PmaAbso

Phpmyadmin configuration fails for an hour, whether in 127.0.0.1 or localhost. and then it is sent to the wmap environment to configure phpmyadmin to modify the config under libraries. default. the correct steps for php are as follows: 1. Configure the config. default. php $ cfg ['pmaabso

Phpmyadmin configuration fails for an hour, whether in 127.0.0.1 or localhost.

Later, it is found that in the wmap environment, it is impossible to configure phpmyadmin to modify the config. default. php under libraries.

The correct steps should be:

1. Configure config. default. php under libraries

$ Cfg ['pmaabsoluteuri '] = 'localhost/phpmyadmin'; // "Enter the phpmyadmin access URL in the middle.

$ Cfg ['servers'] [$ I] ['user'] = 'root'; // MySQL user used by phpmyadmin to access the mysql user name

Fg ['servers'] [$ I] ['Password'] = ''; // MySQL password (only needed corresponds to the password of the above mysql user name

$ Cfg ['servers'] [$ I] ['auth _ type'] = 'cooker ';

2. Configure the apps \ phpmyadim \ config. inc. php file

$ Cfg ['servers'] [$ I] ['Password'] = 'hooray'; // hooray is the password of your database.

Phpmyadmin can be opened in 127.0.0.1, but it cannot be opened in localhost.

3. Configure phpmyadmin. conf in alias

Deny from all

Allow from 127.0.0.1

Change

Allow from all

At this point, the phpmyadmin configuration in the wmap environment is complete.


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.