Apache - MySQL Service detected with wrong path. / Ports already in use

前端 未结 11 1116
孤街浪徒
孤街浪徒 2020-12-13 05:14

I\'m getting the following errors when I launch XAMPP.

12:35:23  [main]    Initializing Control Panel
12:35:23  [main]    Windows Version:   64-bit
12:35:23          


        
相关标签:
11条回答
  • 2020-12-13 05:30

    Firstly enter cmd.

    Then write:

    sc delete MySQL  
    

    After that restart your computer. When restarting your computer and opening your xampp, you can see cross symbol on the MySQL. Click the cross symbol and click the start. That's all.

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

    To delete existing service is not good solution for me, because on port 3306 run MySQL, which need other service. But it is possible to run two MySQL services at one time (one with other name and port). I found the solution here: http://emjaywebdesigns.com/xampp-and-multiple-instances-of-mysql-on-windows/

    Here is my modified setting: Edit your “my.ini” file in c:\xampp\mysql\bin\ Change all default 3306 port entries to a new value 3308

    edit your “php.ini” in c:\xampp\php and replace 3306 by 3308

    Create the service entry - in Windows command line type

    sc.exe create "mysqlweb" binPath= "C:\xampp\mysql\bin\mysqld.exe --defaults-file=c:\xampp\mysql\bin\my.ini mysqlweb"

    Open Windows Services and set Startup Type: Automatic, Start the service

    0 讨论(0)
  • 2020-12-13 05:34
    • Ok it's very easy actually to solve this...most of you who are presented with this problem probably don't even realize you don't have the full software yet installed :) I tried looking online with little success except some1 mentioned you need to look for those services running already. Forexample problem with filezilla you look in task manager for filezilla and you stop the process then you click the X in the xampp control pannel to install filezilla and then click run and it should start the service normally showing you a green lite with a check mark.

    • Same goes for mysql issues.

    • As for the apache problem, it usualy is a problem with the port being overtaken by skype or some other program, but you can find info how to solve that on the net easily :)

    0 讨论(0)
  • 2020-12-13 05:35
    1. Go to cmd and run it with Administrator mode.
    2. Uninstall mysql service through command prompt using the following command.

              sc delete mysql
      
    3. restart XAMPP

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

    This is how I solved similar problem:

    1. Launch XAMPP Control Panel.
    2. Uninstall the MySQL service: click 'green check' button beside MySQL, under Service column. The 'green check' button will change into 'red cross' button.
    3. Exit XAMPP, and relaunch it again.
    4. Click Start.

    I hope it can help solve your problem too.

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