Universal solution for MySQL failure to start under Windows system

Universal solution for MySQL failure to start under Windows system

MySQL startup error

Before installing MySQL on Windows 10, I used to execute net start mysql.

Start, and execute net stop mysql to shut down.

One day, when starting up, an error message popped up saying "MySQL service cannot be started" and "Please type NET HELPMSG 3523 for more help."

If you execute the startup command again, it will report "The service is starting or stopping, please wait a moment and try again."

Solution

There are some such questions on the Internet

  • Modify the configuration file my.ini
  • Delete files in the data directory
  • Reinstall MySQL

And many other solutions.

The first two solutions did not solve my problem.

As for reinstalling MySQL, as far as I know, there will be many pitfalls if you install MySQL for the second time on a Windows computer that has already installed MySQL. If you don't want to bother, here's a quick way you can try.

The simplest solution

mysqld --console Command

There are two ways to start MySQL under Windows:

  • Open cmd with administrator privileges and execute net start mysql.
  • Open cmd with administrator privileges, enter the bin directory of the MySQL installation directory, and execute mysqld --console.

If the first startup method is unsuccessful, you can try the second method according to the steps below.

The first step is to kill the remaining MySQL processes

Before starting with the second method, kill the mysqld process first. implement

tasklist| findstr "mysql"

Check whether there is a mysqld process.

If there is a mysqld process, execute

taskkill /f /t /im mysqld.exe

Killing a process

Step 2: Start MySQL

Go to the MySQL installation directory bin and execute

mysqld --console 

This is the end of this article about the universal solution to the problem that MySQL cannot be started under Windows system. For more relevant solutions to the problem that MySQL cannot be started under Windows system, please search for previous articles on 123WORDPRESS.COM or continue to browse the related articles below. I hope everyone will support 123WORDPRESS.COM in the future!

You may also be interested in:
  • Causes and solutions for invalid service name when starting MySQL service under Windows 7
  • Windows cannot start MySQL service and reports error 1067 solution
  • Solution to MySQL 5.7 not starting under Windows
  • Using batch processing to start and shut down mysql under Windows
  • How to install and start MySQL under Windows
  • Simple solution to the Chinese garbled characters and service startup problems of MySQL in Windows
  • Detailed graphic tutorial on installation, startup and basic configuration of MySQL under Windows version
  • Solution to 1067 when Mysql starts in Windows
  • Windows10 mysql 8.0.12 non-installation version configuration startup method
  • Solve the problem of PhPStudy MySQL startup failure under Windows system

<<:  jQuery plugin to implement accordion secondary menu

>>:  The difference between ENTRYPOINT and CMD in Dockerfile

Recommend

Steps to run ASP.NET Core in Docker container

There are too much knowledge to learn recently, a...

Vue easily realizes watermark effect

Preface: Use watermark effect in vue project, you...

Tutorial on installing nginx in Linux environment

Table of contents 1. Install the required environ...

Nginx implements https website configuration code example

https base port 443. It is used for something cal...

13 Most Frequently Asked Vue Modifiers in Interviews

Table of contents 1. lazy 2.trim 3.number 4.stop ...

Detailed explanation of box-sizing in CSS3 (content-box and border-box)

Box-sizing in CSS3 (content-box and border-box) T...

Vue encapsulates the public function method of exporting Excel data

vue+element UI encapsulates a public function to ...

How to view and configure password expiration on Linux

With the right settings, you can force Linux user...

CentOS 7 switching boot kernel and switching boot mode explanation

centos7 switch boot kernel Note: If necessary, it...

Common functions of MySQL basics

Table of contents 1. Common function classificati...

Detailed usage of Vue more filter widget

This article example shares the implementation me...

How to use Docker-compose to build an ELK cluster

All the orchestration files and configuration fil...

Example code for using HTML ul and li tags to display images

Copy the following code to the code area of ​​Drea...

MySQL Optimization: InnoDB Optimization

Study plans are easily interrupted and difficult ...

Implementing WeChat tap animation effect based on CSS3 animation attribute

Seeing the recent popular WeChat tap function, I ...