Solution to the problem that MySQL can be started when installed in WAMP but cannot be started after restart

Solution to the problem that MySQL can be started when installed in WAMP but cannot be started after restart

After installing wamp for the first time, all services can be used normally, but after restarting wamp's icon turns yellow, and the same happens after reinstalling

Check the error log:

The error shown in the log is:

The log prompts that the error may be that port 3306 is occupied. Let's see which program occupies port 3306:

Run cmd in Windows and enter

netstat -aon|findstr "3306"

You can see that the program with pid 2092 occupies port 3306. End it.

Input command:

taskkill /f /pid 2092

After success, restart wamp and start normally!

Summarize

The above is the solution that the editor introduced to you when MySQL in WAMP can be started but cannot be started after restart. I hope it will be helpful to you. If you have any questions, please leave me a message and I will reply to you in time!

You may also be interested in:
  • Steps to import mysql database under wampserver
  • How to install multiple versions of PHP, MySQL, and Apache under WampServer
  • Specific method to modify mysql password under dos or wamp
  • Solution to modify mysql access password under wamp
  • How to modify the default empty password of mysql in WAMP

<<:  Detailed explanation of Vue options

>>:  In-depth understanding of Vue's data responsiveness

Recommend

HTML optimization techniques you must know

To improve the performance of web pages, many dev...

How to redirect URL using nginx rewrite

I often need to change nginx configuration at wor...

Detailed tutorial on how to quickly install Zookeeper in Docker

Docker Quickly Install Zookeeper I haven't us...

Multiple ways to calculate age by birthday in MySQL

I didn't use MySQL very often before, and I w...

Docker's flexible implementation of building a PHP environment

Use Docker to build a flexible online PHP environ...

Some CSS questions you may be asked during an interview

This article is just to commemorate those CSS que...

CSS implements Google Material Design text input box style (recommended)

Hello everyone, today I want to share with you ho...

JavaScript implements the nine-grid click color change effect

This article shares the specific code of JavaScri...

MySQL database operations (create, select, delete)

MySQL Create Database After logging into the MySQ...

Detailed explanation of MySQL 8.0.18 commands

Open the folder C:\web\mysql-8.0.11 that you just...

Code analysis of synchronous and asynchronous setState issues in React

React originated as an internal project at Facebo...

HTML hyperlinks explained in detail

Hyperlink Hyperlinks are the most frequently used ...

Pure CSS drop-down menu

Achieve results Implementation Code html <div ...

Let me teach you how to use font icons in CSS

First of all, what is a font icon? On the surface...