Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The MySQL service is starting or stopping. Please wait a moment and try again [solution]

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

It is believed that some partners will frequently start and stop the MySQL service when using the database, and sometimes there will be "the service is starting or stopping, please try again later." Such a prompt is shown in the following figure.

So find a way to solve this problem, but found that even the mandatory database initialization is useless, and in the task manager process can not find the mysqld-related process, can not be forced to end the process. Even if there is a MySQL service in the list of computer services, there is no button to stop or start it. It seems to be "vanishing", no longer exists, and there is really nothing people can do about it.

However, do not panic, the editor has finally ushered in success after many failed attempts. I will no longer repeat the process of stepping on the pit. I will share the smooth operation with you to avoid detours. The specific tutorials are as follows.

First of all, open the command line window as an administrator, note that it is an administrator, otherwise you do not have permission to access it. Then enter the command "tasklist | findstr" mysql "" to find the residual process of mysql. Sure enough, there is a residual process of mysql, so it's no wonder that the MySQL service is being started or stopped all the time, and all you have to do is kill the MySQL process. After that, enter the command "taskkill/f / t / im mysqld.exe" to kill all the mysql residual processes. Enter the command "tasklist | findstr" mysql "" again to see if there are any other mysql residual processes left, and if so, continue to kill until the process is completely killed, as shown in the following figure.

When the mysql residue process is complete, we can start the MySQL service normally, as shown in the following figure. It is important to note that you still want to enter the command line window as an administrator at this time.

From the image above, we can see that the database can be accessed smoothly at this time. If you are worried, you can continue to test, stop the MySQL service, and then try to start and access again, as shown in the following figure.

You can see that MySQL can now start and stop the service normally.

Finally, I would like to give you a small reminder that if you copy the local database files directly into the database, make sure that the MySQL database service is stopped before copying, and then try to start the MySQL service after the file copy is completed. At this time, you can successfully access the copied database files in the database, which is much faster than importing data directly into the database, especially big data, who imported hundreds of millions of items. Use this method to get twice the result with half the effort.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report