the MySQL service on local computer started and then stopped

前端 未结 24 3055
抹茶落季
抹茶落季 2020-11-30 21:59

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 resol

相关标签:
24条回答
  • 2020-11-30 22:41

    non of the above actually works so delete mysql,reinstall mysql,restore back if any...enjoy

    0 讨论(0)
  • 2020-11-30 22:47

    I see this error when I install MySQL 8.x, edit the max_allowed_packet in the my.ini file, and then restart mysql on a Windows 10 machine. My recommendation, to avoid this issue, is to edit the my.ini file in a hex editor (something like Frhed). DO NOT USE NOTEPAD. It does something to the hex layout of the .ini file.

    0 讨论(0)
  • 2020-11-30 22:49

    the MySQL service on local computer started and then stopped

    This Error happen when you modified my.ini in C:\ProgramData\MySQL\MySQL Server 8.0\my.ini not correct.

    You can search my.ini original configuration or checking yours to make sure everything is OK

    0 讨论(0)
  • 2020-11-30 22:50

    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.

    0 讨论(0)
  • 2020-11-30 22:51

    Also remember to give NETWORK SERVICE permission to the folder:

    1. Right-click Data folder
    2. Select Properties
    3. Select Security tab
    4. Click Advanced
    5. Click Change Permissions...
    6. Click Add...
    7. Type NETWORK SERVICE
    8. Click Check Names
    9. Click OK
    10. Select Full Control
    11. Click OK – four times
    12. Start MySQL service
    0 讨论(0)
  • 2020-11-30 22:54

    I had this issue after my database was working fine for long time. It turned out it was some data corruption.

    In the error log I had:

    2017-02-07T10:11:42.270567Z 0 [ERROR] InnoDB: Ignoring the redo log due to missing MLOG_CHECKPOINT between the checkpoint 44002250712 and the end 44002250240.
    2017-02-07T10:11:42.270606Z 0 [ERROR] InnoDB: Plugin initialization aborted with error Generic error
    2017-02-07T10:11:42.577436Z 0 [ERROR] Plugin 'InnoDB' init function returned error.
    2017-02-07T10:11:42.577470Z 0 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
    2017-02-07T10:11:42.577484Z 0 [ERROR] Failed to initialize plugins.
    2017-02-07T10:11:42.577488Z 0 [ERROR] Aborting
    

    Then I had to delete the 2 ib_logfile* files, and it restarted again.

    0 讨论(0)
提交回复
热议问题