MySQL connection port is accounted for introducing file path error

Source: Internet
Author: User

This morning, I intend to use Wampserver to build PHP environment on the local Win7 machine, to configure my own applet. Download the latest Wampserver 3.0.6 installation, found that MySQL has been unable to run, thought to be the Wampserver version issue, Then download the related 2.4,2.5 and other related versions of the installation, still no solution, the main phenomenon is the MySQL command entered after the password enter no response, then the command automatically disappears, the other is in the phpMyAdmin input password direct connection timeout, such as three error prompts, or the prompt can not connect. Later I uninstalled directly wampserver, switch to phpstudy build environment, after installation start, Apache boot normal, but MySQL boot prompt port is occupied, the problem finally found, MySQL can not connect the real reason is that the local port is occupied, Then I open the Phpstudy settings in the port general settings, the MySQL port to 3305, and then save the restart, the problem is resolved, in addition to the local phpstudy set the binding domain name and path and then modify the host file, its own program configuration success.

In the afternoon to modify a PHP program put the program into the Phpstudy, the configuration of the path domain name and the host file, modify the database connection file, in the run program when the path error, because the program is taken down from the Linux server, contains the file path needs to be modified correctly, include _once "" In the modified path after the run again, registered a member, to write to the Database page white screen, long time did not respond, after a period of hint connection timeout, this matter think about the connection port problem, then modified the database connection code $DB = new ezSQL_mysql (' Root ', The issue of ' root ', ' sd ', ' localhost:3305 ') has been resolved.

MySQL connection port was accounted for by introducing a file path error

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.