Skip to content

Instantly share code, notes, and snippets.

@aslamdoctor
Created October 12, 2021 01:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aslamdoctor/b0ef74531df994856717189f8ef4ad1c to your computer and use it in GitHub Desktop.
Save aslamdoctor/b0ef74531df994856717189f8ef4ad1c to your computer and use it in GitHub Desktop.
XAMPP MySQL Shutdown Fix
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` and `my.ini` files from `mysql/data_old` and replace it inside `mysql/data` folder
6. Start MySQL from XAMPP control panel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment