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

前端 未结 16 689
佛祖请我去吃肉
佛祖请我去吃肉 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:10

    Windows 10 Users:

    I had this issue too. A little bit of investigating helped out though. I had a problem before this one, that 3306 was being used. So what I found out was that port 3306 was being used by another program. Specifically a JDBC program I was trying to learn and I had xammp installed before I tried this JDBC out. So I deleted the whole file and then here I am, where you're at. The issue was that my 'ImagePath'(registry variable) was changed upon installing mySql again. To put it simply, xammp doesn't know where your mysqld.exe is at anymore, or the file is not in the location that you told it to be. Here's how to fix it:

    1. Open run (Win + r) and type 'regedit'. This is where you edit your registry.
    2. Navigate to: HKEY_LOCAL_MACHINE > SYSTEM > CurrentControlSet > Services > MySql

    1. Click on mySql and notice the ImagePath variable. Right click 'ImagePath' and click modify.
    2. Enter the location of your xammp mySqld file (navigate through xammp to find it) Although it is likely the same as mine.

    Cool Sources:

    https://superuser.com/questions/222238/how-to-change-path-to-executable-for-a-windows-service/252850

    https://dev.mysql.com/doc/mysql-windows-excerpt/5.7/en/mysql-installation-windows-path.html

    Thanks dave

提交回复
热议问题