Xampp MySQL not starting - “Attempting to start MySQL service…”

前端 未结 16 664
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-05 01:07

I\'ve just installed XAMPP for Windows - should be the newest version (XAMPP Control Panel v3.2.1).

Apache is running just fine on port 80 and 443, but MySQL is not

相关标签:
16条回答
  • 2020-12-05 01:16
    1. In the cmd type: services.msc Find MySql and change properties to the disabled.
    2. In the control panel of Xampp uninstall MySql by the checkbox on the left side, and install again by the click in the same checkbox.
    0 讨论(0)
  • 2020-12-05 01:17

    If you have other testing applications like SQL web batch etc, uninstall them because they are running in port 3306.

    0 讨论(0)
  • 2020-12-05 01:20

    Everytime my MySQL starts, it will stop, then I noticed that some files are getting generated in C:\xampp\mysql\data. I tried deleting some files (like the Error logs, err file, etc.) on that directory. Back up first what you're going to delete to avoid losing data.

    I don't know how it works. I'm just trying to enable HTTPS in my local machine but then suddenly MySQL can't be started. But now it's working.

    I'm using Windows 10 and XAMPP 3.2.4.

    0 讨论(0)
  • 2020-12-05 01:21

    if all solutions up did not work for you, make sure the service is running and not set to Disabled!
    Go to Services from Control panel and open Services,
    Search for Apache2.4 and mysql then switch it to enabled, in the column of status it should be switched to Running

    0 讨论(0)
  • 2020-12-05 01:26

    If you have MySQL already installed on your windows then go to services.msc file on your windows and right click the MySQL file and stop the service, now open your XAMPP and start MySQL. Now MySQL will start on the port 3306.

    0 讨论(0)
  • 2020-12-05 01:27

    Had this problem today, on a Windows 10 machine. Opened C:\xampp\data\mysql_error.log and looked for lines containing [ERROR].

    Last error line was:

    ... [ERROR] InnoDB: File (unknown): 'close' returned OS error 206. Cannot continue operation
    

    Important note: if your error is different, google it (you'll likely find a fix).

    Searching for the above error, found this thread on Apache Friends Support Forum, which led me to the fix:

    1. Open C:\xampp\mysql\bin\my.ini and add the following line towards the end of [mysqld] section (above the line containing ## UTF 8 Settings):
    innodb_flush_method=normal
    
    1. Restart MySQL service. Should run just fine.
    0 讨论(0)
提交回复
热议问题