Separate deployment and remote access to MySQL database in WAMP integrated environment

Source: Internet
Author: User

Today, a small problem, is clearly correct PHP code when accessing the database Always prompt db ERROR. Later found to fill in the database name, wrote the database's IP address (in fact, it is also the native IP but this machine is still inaccessible), not localhost.

In the final analysis, the root of the problem is that MySQL does not open remote access, the specific way to open:

D:\wamp\Apache2\conf\alias\phpmyadmin.conf

Found it

Deny from all

Allow from all

Delete these two lines to allow from all

In addition, the MySQL database does not have to be deployed on this machine, and the method of deployment separately is:

In the MySQL database on the machine, through the phpMyAdmin access to the local database, into the MySQL database user table, to find the root record, the host field from localhost to%, in fact, the permission to set any host is the same effect.

Separate deployment and remote access to MySQL database in WAMP integrated environment

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.