Home  >  Article  >  Operation and Maintenance  >  phpstudy database cannot be started

phpstudy database cannot be started

尚
Original
2019-10-29 17:07:0511812browse

phpstudy database cannot be started

apache or mysql cannot be started in phpstudy

The obvious port is occupied, if we need to determine who occupies our 80 port, 3306 port

For the website, the default network apatche server is 80, and the database mysql is 3306

Port occupation solution:

End the occupied process (if you have not installed iis, also That is, you close all the software that can be shut down, especially Thunder and the like)

The details are as follows:

Method 1. How to check who is occupying a certain port and end the occupied process

When we start an application, we often find that the port we need to use is occupied by other programs, but we don't know who is occupied. At this time, we need to find out the "real culprit". How to do it?

Method/Step

Step 1: Start---->Run---->cmd, or use the window R key combination to bring up the command window

Step 2: Enter the command: netstat -ano to list the status of all ports. In the list, we observe the occupied port, such as 49157, and find it first.

(For the website, the network apatch server is the default 80, the database mysql is 3306)

Step 3: Check the PID corresponding to the occupied port, enter the command: netstat -aon|findstr "49157", press Enter, write down the last digit, which is PID, here is 2720

Step 4: There are two methods

1. Continue to enter tasklist|findstr "2720" , press Enter, check which process or program occupies port 2720, the result is: svchost.exe

2, or we open the task manager, switch to the process tab, and check the PID column corresponding to 2720 Who is the process? If you cannot see the PID column, as shown below:

Then we click [View]--->[Select Column], check the box in front of PID (Process Identifier), and click Sure.

In this way, we can see the PID column and see who the process corresponding to 2720 is. If not, we can check the box in front of the display process of all users below, and then we can see it. The image name is The description of svchost.exe is that it is the main process of Windows, which is exactly the same as what is viewed by the above command.

Step 5: End the process: Select the process in the task manager and click the "End Process" button, or enter: taskkill /f /t /im Tencentdl.exe in the cmd command window.

Recommended: php server

The above is the detailed content of phpstudy database cannot be started. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn