This morning I planned to use Wampserver to build a PHP environment on my local win7 machine and configure my own applet. After downloading the latest wampserver 3.0.6 version and installing it, I found that mysql could not run. I thought it was a problem with the wampserver version, so I downloaded related versions 2.4, 2.5, etc. and installed them, but the problem was still not solved. The main phenomenon was that there was no response after entering the password and pressing Enter in the mysql command prompt, and then the command prompt disappeared automatically. In addition, when I entered the password in PHPMyAdmin, three error prompts such as connection timeout appeared directly, or it prompted that the connection could not be connected. Later, I uninstalled wampserver directly and used phpStudy to build the environment. After installation, I started it. Apache started normally, but when mysql started, it prompted that the port was occupied. The problem was finally found. The real reason why mysql could not connect was that the local port was occupied. Then I opened the general port settings in phpStudy settings, changed the mysql port to 3305, and then saved and restarted. The problem was perfectly solved. In addition, I set the binding domain name and path in the local phpStudy and modified the host file. My own program configuration was successful. In the afternoon, when I modified a PHP program, I put the program into phpStudy, configured the path domain name and host file, and modified the database connection file. When running the program, a path error occurred because the program was downloaded from the LINUX server, and the file path contained in it needed to be modified correctly. After modifying the path in include_once "", I ran it again and registered a member. When I went to write to the database, the screen was white and there was no response for a long time. After a while, it prompted that the connection timed out. I thought it was probably a problem with the connection port, so I modified the database connection code $db = new ezSQL_mysql('root','root','sd','localhost:3305') and the problem was solved. The above article on how to solve the problem of MYSQL connection port being occupied and introducing file path errors is all the content that the editor shares with you. I hope it can give you a reference, and I also hope that you will support 123WORDPRESS.COM. You may also be interested in:
|
<<: Docker Stack deployment method steps for web cluster
>>: JavaScript implements color identification when the mouse passes over the table row
The <area> tag defines an area in an image ...
Preface When a Linux is fully set up, you can use...
Table of contents Variable type and storage space...
1. Two ways to define react components 1. Functio...
cause I once set up WordPress on Vultr, but for w...
Table of contents Common array methods Adding and...
I recently used the MySql database when developin...
Several common paging methods: 1. Escalator metho...
Understanding object.defineProperty to achieve re...
Preface Tomcat is a widely used Java web containe...
A few days ago, when I was adjusting a module of a...
Table of contents What is Flattening recursion to...
During the Olympic Games, IE 8 Beta 2 will be rele...
Table of contents 1. charAt grammar parameter ind...
As a front-end Web engineer, you must have encoun...