search
HomeOperation and Maintenancephpstudyphpstudy database cannot be started

phpstudy database cannot be started

Oct 29, 2019 pm 05:07 PM
phpstudy

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

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

MantisBT

MantisBT

Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

PhpStorm Mac version

PhpStorm Mac version

The latest (2018.2.1) professional PHP integrated development tool

WebStorm Mac version

WebStorm Mac version

Useful JavaScript development tools