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

React Routing Link Configuration Details

1. Link's to attribute (1) Place the routing ...

Introduction to CSS BEM Naming Standard (Recommended)

1 What is BEM Naming Standard Bem is the abbrevia...

Common ways to optimize Docker image size

The Docker images we usually build are usually la...

Mysql string interception and obtaining data in the specified string

Preface: I encountered a requirement to extract s...

Vue realizes the palace grid rotation lottery

Vue implements the palace grid rotation lottery (...

MySQL series: redo log, undo log and binlog detailed explanation

Implementation of transactions The redo log ensur...

Optimization of MySQL thread_stack connection thread

MySQL can be connected not only through the netwo...

VMware virtual machine installation Linux system graphic tutorial

This article shares the specific steps of VMware ...

WeChat Mini Program to Implement Electronic Signature

This article shares the specific code for impleme...

base target="" specifies the target of the base link to open the frame

<base target=_blank> changes the target fram...

A detailed introduction to Tomcat directory structure

Open the decompressed directory of tomcat and you...

Linux uses binary mode to install mysql

This article shares the specific steps of install...