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

A few things about favicon.ico (it’s best to put it in the root directory)

Open any web page: for example, http://www.baidu....

React encapsulates the global bullet box method

This article example shares the specific code of ...

Docker installation and configuration steps for Redis image

Table of contents Preface environment Install Cre...

Introduction to installing and configuring JDK under CentOS system

Table of contents Preface Check and uninstall Ope...

MySql fuzzy query json keyword retrieval solution example

Table of contents Preface Option 1: Option 2: Opt...

Install Percona Server+MySQL on CentOS 7

1. Environmental Description (1) CentOS-7-x86_64,...

React passes parameters in several ways

Table of contents Passing parameters between pare...

Angular Cookie read and write operation code

Angular Cookie read and write operations, the cod...

URL representation in HTML web pages

In HTML, common URLs are represented in a variety ...

Analysis of the difference between emits and attrs in Vue3

Table of contents in conclusion Practice Analysis...