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

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

    I had an issue with this because I had accidentally installed XAMPP to c:\windows\program files (x86) which caused a Windows permissions issue.

    The installation says not to install it there, but I thought it had said to install it there.

    I uninstalled and reinstalled to c:\xampp and it worked.

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

    Only stop My sql In Xampp For 15 Min After 15 min restart Mysql .If my sql running But Port Not Showing in Xampp then Click Config > my.ini edit this file and change port no 3306 > 3307 and save and Restart xampp .........

    0 讨论(0)
  • 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

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

    Did you use the default installation path?

    In my case, when i ran mysql_start.bat I got the following error:

    Can`t find messagefile 'D:\xampp\mysql\share\errmsg.sys'
    

    I moved my xampp folder to the root of the drive and it started working.

    Hope it helps

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

    After Stop xampp, go to configure and change the port 3306 to 3308 of mysql and save. Now start the sql......Enjoy

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

    Only for windows I have fixed the mysql startup issue by following below steps

    Steps:

    1. Open CMD and copy paste the command netstat -ano | findstr 3306 If you get any result for command then the Port 3306 is active

    2. Now we want to kill the active port(3306), so now open powershell and paste the command Stop-Process -Id (Get-NetTCPConnection -LocalPort 3306).OwningProcess -Force

    Where 3306 is active port. Now port will be inactive

    Start Mysql service from Xampp which will work fine now

    Note: This works only if the port 3306 is in active state. If you didn't get any result from step 1 this method is not applicable. There could be some other errors

    For other ports change 3306 to "Required port"

    Ways to open CMD and Powershell

    1. For CMD-> search for cmd from start menu
    2. For Powershell-> search for powershell from start menu
    0 讨论(0)
提交回复
热议问题