Home > Backend Development > PHP Tutorial > How to solve the problem that MYSQL port 3306 is occupied?

How to solve the problem that MYSQL port 3306 is occupied?

一个新手
Release: 2023-03-16 06:08:01
Original
22325 people have browsed it

How to solve the problem that MYSQL port 3306 is occupied?

Solution to MYSQL port 3306 being occupied:

Open cmd and enter the command to view the status of each port

netstat -ano
Copy after login

Where -a means to display all connections and listening ports; -n means to display the address and port number in the form of numbers; -o means to display the process ID connected to each port. The above is to combine the three parameters are executed together.

Get the following picture:

How to solve the problem that MYSQL port 3306 is occupied?

Find the PID corresponding to the 3306 port, kill the process in the task manager and it will be ok.

Open Task Manager View-> Select Column-> Check PID (Process Identifier) ​​-> Make sure you find the process with the PID just now in Task Manager and check what program is occupying the port. Turn it off!!!

How to solve the problem that MYSQL port 3306 is occupied?

For more related knowledge, please visit PHP中文网! !

The above is the detailed content of How to solve the problem that MYSQL port 3306 is occupied?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template