XAMPP - MySQL shutdown unexpectedly

前端 未结 30 2354
长情又很酷
长情又很酷 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:13

    Stop there! Please do NOT delete ibdata1 file!

    Deleting this file is like playing a Russian roulette with your databases, it could work and restablish everything, but also, probably could harm every database you have. Instead, first try using the MySQL backup folder which is included with XAMPP. So do the next:

    1. Rename the folder mysql/data to mysql/data_old (you can use any name)
    2. Create a new folder mysql/data
    3. Copy the content that resides in mysql/backup to the new mysql/data folder
    4. Copy all your database folders that are in mysql/data_old to mysql/data (skipping the mysql, performance_schema, and phpmyadmin folders from data_old)
    5. Finally copy the ibdata1 file from mysql/data_old and replace it inside mysql/data folder
    6. Start MySQL from XAMPP control panel

    And, voilà!

提交回复
热议问题