Home > Database > Mysql Tutorial > body text

What to do if the local mysql service cannot be started

王林
Release: 2020-09-30 09:52:15
Original
10337 people have browsed it

Solution to the problem that the local mysql service cannot be started: 1. Open the command prompt as an administrator; 2. Enter the bin directory in the mysql installation directory; 3. Execute the [mysqld --install] command; 4 , Start the mysql service.

What to do if the local mysql service cannot be started

Solution:

(Recommended tutorial: mysql tutorial)

1. To manage Start cmd as a member and enter the bin directory under the MySQL installation path

2. Enter the mysqld --install command in the command line and press Enter

Success: Service successfully appears install means you have installed successfully

What to do if the local mysql service cannot be started

3. Delete the data file in the mysql installation directory, execute the mysqld --initialize command, and generate the data folder under the current path

4. Execute the net start mysql command to start mysql

Related recommendations: php training

The above is the detailed content of What to do if the local mysql service cannot be started. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template