XAMPP - MySQL shutdown unexpectedly

前端 未结 30 1710
长情又很酷
长情又很酷 2020-11-22 09:42

When I open XAMPP and click start MySQL button and it gives me an error. I had started it just before, but now it isn\'t working.

12:19:12 PM [mysql]

相关标签:
30条回答
  • 2020-11-22 10:29

    No solution above worked for me. then I did below:

    I deleted all the files inside C:\xampp\mysql\data\ directory except folders in this directory. It worked perfectly fine but my previous databases are not working now. So do above if you don't care it will delete all your previous databases in phpmyadmin.

    0 讨论(0)
  • 2020-11-22 10:29

    if you are using MariaDB you can try this:

    1. Go to mysql/data/
    2. Rename aria_log_control to aria_log_control_old
    3. Restart "Mysql"
    0 讨论(0)
  • 2020-11-22 10:30
    1. move xampp/mysql/backup files into xampp/mysql/data
    2. RUN XAMPP as Administrator(make sure mysql is installed you can see a green tick if is installed)

    Hope it helps!

    0 讨论(0)
  • 2020-11-22 10:30

    Make sure the system time is correct. Mine was set to the year 2040 somehow, correcting the date solved the problem.

    0 讨论(0)
  • 2020-11-22 10:31

    in my case i did following steps and it worked:

    1. In Xampp control panel click on "Services" button from the right side toolbar

    2. Then find "MySQL" from the services List

    3. Click on it and from the left side of the panel click on "stop"

    4. Turn back in Xampp control panel and click on start.

    0 讨论(0)
  • 2020-11-22 10:31

    i was facing the same issue and none of the solutions stated above helped me. i went to the mysql configuration file (my.ini) and changed the port number under [mysqld].By default mysql runs on 3306 port.

    port= 3306
    

    i changed it to ,

    port= 8111
    

    Then run as Administrator.Finally this worked for me.

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