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

  1. Rename folder mysql/data to mysql/data_old
  2. Make a copy of mysql/backup folder and name it as mysql/data
  3. Copy all your database folders from mysql/data_old into mysql/data (except mysql, performance_schema, and phpmyadmin folders)
  4. Copy mysql/data_old/ibdata1 file into mysql/data folder
  5. Start MySQL from XAMPP control pane

Enjoy Now 😜😋

Popular posts from this blog

Cant use dump() function in twig files or how to enable debug in opencart twig or print_r alternate use dump() in opencart 3.0

maximum execution time error when importing sql data file since php.ini has been already set max execution time 3000

SEO Custom URL in Opencart