Home > Database > Mysql Tutorial > body text

What should I do if the MySQL database crashes after entering the password?

小云云
Release: 2017-12-08 13:12:26
Original
5678 people have browsed it

1 Case Description

Recently I have been using the MySQL database to demonstrate basic functions, but a problem suddenly occurred in the past two days, that is: after starting the MySQL server and entering the password, a crash occurred. After that, I searched on the Internet and found that this problem is very common. Most of the reasons may be that we inadvertently shut down the MySQL service when using security software. In addition, if the MySQL service has been started but still crashes, there may be a problem with the MySQL configuration. In this article, we will teach you what to do if the MySQL database crashes after entering the password.

What should I do if the MySQL database crashes after entering the password? Solution

When the above problem occurs, we first need to check whether the MySQL service is started. If the MySQL service is not started, then in most cases, when we manually start the MySQL service, The above problems can be solved; if the MySQL service has been started but crashes still occur, we need to modify the relevant configuration!

Next, follow the steps below (click in sequence) to enter the service management page:

My Computer;

Management;

Services and Applications ;

Serve.

What should I do if the MySQL database crashes after entering the password?

#As shown in the picture above, here, we can check the status of the MySQL service!

Scenario 1: MySQL service is not started

Ahem, this is easy, just right-click or click the button shown by the red arrow in the picture below to start the MySQL service .

What should I do if the MySQL database crashes after entering the password?

After clicking Start, let us restart the MySQL server, enter the password, and test:

What should I do if the MySQL database crashes after entering the password?

As above As shown in the picture, it is obvious that our problem has been solved.

Scenario What should I do if the MySQL database crashes after entering the password?: The MySQL service has been started

When the MySQL service is started and a crash occurs, this may be due to the configuration of MySQL. question. Furthermore, there may be a problem with the my.ini file (under the installation path) in C:\ProgramFiles\MySQL\MySQL Server X.X. For this problem:

Method 1: First enter cmd and switch to the MySQL installation directory, then switch to the bin directory and enter the mysqld-nt--skip-grant-tables command. Then, do not close this cmd window yet, open another window to log in to MySQL or directly click on MySQL CommandLine Client and enter the correct password.

Method What should I do if the MySQL database crashes after entering the password?: Find out and run win+R. In this DOS form, cd to the bin directory of MySQL Server X.X, then enter the mysql -u root -p command, and then Enter your password and that's it.

Method What should I do if the MySQL database crashes after entering the password?: If you log in and prompt mysql: unknownvariable 'character-set-server=gbk', the solution: modify the my.ini file in the MySQL installation directory and replace the default in it. Comment or delete -character-set=gbk, and restart the MySQL service in the service.

At this point, I believe that if we encounter the problem of the MySQL database crashing after entering the password again, we can easily solve it!

Sharing of solutions to the problem of MySQL crashing frequently (picture)

[Transfer] MySQL flashing out of the solution_MySQL

Mysql5.1 command line client crashes when logging in

The above is the detailed content of What should I do if the MySQL database crashes after entering the password?. 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