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