mySQL server in XAMP don't start

后端 未结 6 1350
失恋的感觉
失恋的感觉 2021-01-12 21:30

I read all of articles about my problem but it still not working

How can I solve this issue?

Here is my log file:

2015-11-10 15:26:56 10fc          


        
相关标签:
6条回答
  • 2021-01-12 22:07

    I just ran into this problem myself after I installed XAMPP for APACHE. I decided to use it for a localhost of MySQL too. Here's what I did to get it to work.

    In windows, open command prompt, type: netstat -ano|find "3306"

    The PID LISTENING was 4608. Opened Task Manager, went to Details tab. Found the PID, it was a mysql.exe from another application. Right click the application and select End Task.

    Restart XAMPP.

    I don't recommend changing the Port Number just because 3306 is a Standard assigned port to MySQL as well as 33060, 33061, and 33062. In a few cases, I have seen Port 22 assigned. There is a protocol set up for this and when to use which one.

    0 讨论(0)
  • 2021-01-12 22:13

    I just encountered this error. Since I have Xampp and MySQL Workbench, I had a feeling that the issue was MySQL related thus I opened the task Manager using

    ctrl+shift+del

    and selecting Task Manager.

    Then on the services tab, I searched for any running MySQL programs, left-clicked it, and stopped it.

    Then started MySQL on the Xampp control panel.

    I think you can try this first then proceed to other options in case it doesn't work.

    0 讨论(0)
  • 2021-01-12 22:21

    I ran into this same issue when I had MySQL Workbench and XAMPP downloaded. Since they're both trying to access Port 3306 an error occurs. I'm running this on Windows 10, I'm not sure if this fix also works on Mac & Linux. I changed the port of XAMPP to 3307 and left the MySQL untouched. Here's how I did that: *Take into consideration that the line numbers may be different on your system.

    1. In the XAMPP GUI click on "Config" -> "Service and Port Settings" -> "MySQL" tab -> Change Main Port to 3307 -> Save -> Save

    2. Locate the installation file for XAMPP -> open MySQL folder -> open bin folder -> right click on "my.ini" and edit it

    3. Change the following lines: (Line 20) Port = 3306 -> Port = 3307 (Line 28) Port = 3306 -> Port = 3307

    Save the file, restart your computer, and the server should run.

    0 讨论(0)
  • 2021-01-12 22:21

    Agree with @Daniel and @Elzo

    Try to run this below command in cmd prompt

    netstat -ano|find "3306"

    Eg:

    TCP 0.0.0.0:3306 0.0.0.0:0 LISTENING 5164

    TCP [::]:3306 [::]:0 LISTENING 5164

    It will let you know whether any process is utilizing port 3306 or not.

    If you are using xampp older version of xampp had portcheck.ext file you could even use that.

    If its mysql than stop and then try to start mysql again. You could even use the pid number(Here 5164) and check in windows task manager who is utilizing these pid so that you would come to know the exact process name

    0 讨论(0)
  • 2021-01-12 22:24

    Windows 10 Microsoft Windows [version 10.0.19041.450] Laragon 4.0.16 190914 (MySQL 5.7.24_winx64) on 3306 Xampp 3.2.4 (10.4.13-MariaDB) on 3306

    Some log error lines of MySQL 5.7.24_winx64 on 3306 on Laragon 4.0.16 190914 :

    • '::' resolves to '::'; Server socket created on IP: '::'. Can't start server: Bind on TCP/IP port: No such file or directory

    No way to fix this (sfc /scannow, change port to 3307=nok) so I decided to remove HyperV/Sandbox and all Windows 10 options related to HyperV (lan adapters issues ?).

    After the removals of the HyperV Windows 10 options + reboot, Laragon MySQL and Xampp MariaDB are working like a charm!

    0 讨论(0)
  • 2021-01-12 22:29

    I had the same case because in someway i installed MariaDB and it used the port of 3306, so what i did is to go to the Task-manager > Services and did a sort to find the port using "3306" in PID column then i stop that service. after i started MySQL in the xampp control panel and it worked very well.

    My conclusion is that you should use command option (1):

    1. netstat -ano|find "3306"
    2. find that port in Task-manager > Services
    3. stop the application using that port in PID
    4. Click to start MySQL again.
    0 讨论(0)
提交回复
热议问题