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

Tomcat server security settings method

Tomcat is an HTTP server that is the official ref...

SQL statements in Mysql do not use indexes

MySQL query not using index aggregation As we all...

Analysis of the Principle and Method of Implementing Linux Disk Partition

remember: IDE disk: the first disk is hda, the se...

Analysis of the operating principle and implementation process of Docker Hub

Similar to the code hosting service provided by G...

CSS3 Bezier Curve Example: Creating Link Hover Animation Effects

We will use CSS3 animated transitions to create a...

Summary of common knowledge points required for MySQL

Table of contents Primary key constraint Unique p...

Steps for encapsulating element-ui pop-up components

Encapsulate el-dialog as a component When we use ...

Analysis of the process of deploying pure HTML files in Tomcat and WebLogic

1. First, the pure HTML file must have an entry i...

Using HTML to implement a voting website cheating scheme that restricts IP

This is a cheating scheme for voting websites wit...

Common writing examples for MySQL and Oracle batch insert SQL

Table of contents For example: General writing: S...

Brief introduction and usage of Table and div

Web front end 1 Student ID Name gender age 01 Zha...