Error in starting MYSQL in XAMPP
If you getting error in starting in mysql in xampp
something like this error.
- Error: MySQL shutdown unexpectedly.
- This may be due to a blocked port, missing dependencies,
- improper privileges, a crash, or a shutdown by another method.
- Press the Logs button to view error logs and check
- the Windows Event Viewer for more clues
- If you need more help, copy and post this
- entire log window on the forums
Answer: Then Follow the step
- Rename folder mysql/data to mysql/data_old
- Make a copy of mysql/backup folder and name it as mysql/data
- Copy all your database folders from mysql/data_old into mysql/data (except mysql, performance_schema, and phpmyadmin folders)
- Copy mysql/data_old/ibdata1 file into mysql/data folder
- Start MySQL from XAMPP control pane