Windows

chevron-rightUniform Serverhashtag

Uniform Server:

chevron-rightXAMPPhashtag

XAMPP:

XAMPP MySQL Fix Option 1:

  • MySQL backup folder which is included with XAMPP.

  • Rename the folder mysql/data to mysql/data_old (you can use any name)

  • Create a new folder mysql/data

  • Copy the content that resides in mysql/backup to the new mysql/data folder

  • 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)

  • Finally copy the ibdata1 file from mysql/data_old and replace it inside mysql/data folder

  • Start MySQL from XAMPP control panel

XAMPP MySQL Fix Option 2:

  • Stop MySQL.

  • Go to the C:/xampp/mysql directory and copy the data folder and keep it somewhere else (probably in another drive) as a backup.

  • Go to your original data folder (C:/xampp/mysql) and sort the files by 'Type.'

  • Select the files that have the type INFO File and delete them.

  • Start MySQL. It should work now.

Last updated