the MySQL service on local computer started and th

2020-02-02 04:27发布

the MySQL service on local computer started and then stopped. Some services stop automatically if they are not in use by other services or programs.

Can anyone resolve this issue? Thanks.

17条回答
一纸荒年 Trace。
2楼-- · 2020-02-02 05:07
  1. Open Service
  2. Right click on MYSQL service
  3. select Log on
  4. check local system account
  5. start service
查看更多
够拽才男人
3楼-- · 2020-02-02 05:08

Search for services.msc and look up through your services that are running if there is a mysql service running already other than the one you want to run (it could be xampp or wamp) or another service (for example Skype) using the same port as mysql and stop the service so you can run your mysql service.

查看更多
欢心
4楼-- · 2020-02-02 05:09

This error happened in my case when secure-file-priv was pointing to unexistent folder, make sure it exists and readable.

The line of code example in my.ini: secure-file-priv="D:/MySQL/uploads"

查看更多
你好瞎i
5楼-- · 2020-02-02 05:10

After installing it by mysqld --install. Try this mysqld --initialize. We got the same problem but it's now working.

查看更多
乱世女痞
6楼-- · 2020-02-02 05:12

Rename or delete the folder under,

C:\ProgramData\MySQL\MySQL Server 5.7

folder name change as per your MYSQL version number.

查看更多
We Are One
7楼-- · 2020-02-02 05:13

In my case, I tried to open a DOS prompt and go to the MySQL bin\ directory and issue the below command:

mysqld --defaults-file="C:\Program Files\MySQL\MySQL Server 5.0\my.ini" --standalone --console

And it shows me I was missing the "C:\Program Files\MySQL\MySQL Server 5.0\Uploads" folder; I built one and problem solved.

查看更多
登录 后发表回答