I installed MySQL on Windows by unzipping the compressed package. Here is how to install it: Click here. When executing the following command: mysqld --install MySQL --defaults-file=[absolute path to the ini configuration file] When executing the above command, an incorrect configuration file path was entered. Although the system may return success. And the command mysqld --initialize can also be executed and generate data files. But when I execute net start mysql, the system will always prompt that the service is starting. The reason is that my configuration file path is wrong, which causes abnormalities when the service is started. At this time, the MySQL service cannot be started and cannot be stopped through the command line and control panel. The MySQL service also cannot be deleted. Solution: Control Panel → Select Large Icons in the upper right corner → Administrative Tools → Services → Select MySQL. At this time you can see that there is no option to stop, restart or pause. This is what you need to do: Right-click the MySQL service → Properties → General tab → Select Disable in "Startup type" → Restart the computer → Open the command line as an administrator → Use the cd command to enter the bin folder under the MySQL installation path. Because the MySQL service is set to prohibit startup at boot, and the computer is restarted, the MySQL service is stopped at this time. Enter the command on the command line: mysqld remove MySQL The command can be executed normally, and after the command is executed, the incorrectly configured MySQL service can be deleted. Then delete all the files under the MySQL data folder and reinstall MySQL step by step from scratch. The above is the solution to the problem that the MySQL service cannot be stopped and deleted under Windows introduced by the editor. I hope it will be helpful to everyone. If you have any questions, please leave me a message and the editor will reply to you in time. I would also like to thank everyone for their support of the 123WORDPRESS.COM website! You may also be interested in:
|
<<: JavaScript implements click toggle function
>>: Linux uses NetworkManager to randomly generate your MAC address
We often see a cool effect where the mouse hovers...
Copy code The code is as follows: <!--[if IE]&...
There are the following log files in MySQL: 1: re...
Table of contents How to set cookies Disadvantage...
This article uses examples to explain the knowled...
This article describes how to build a phalcon env...
Table of contents 1. Problem Description 2. Probl...
A jQuery plugin every day - to make search histor...
In MySQL, create a new table with three fields, i...
Table of contents Preface 1. Split a string 2. JS...
Lottie is an open source animation library for iO...
1. Introduction Since pictures take up a lot of s...
<br />Words are the inevitable product of hu...
What does Ctrl+c, Ctrl+d, Ctrl+z mean in Linux? C...
MySQL DATE_ADD(date,INTERVAL expr type) and ADDDA...