Solusi Error XAMPP MySQL shutdown unexpectedly

Untuk anda yang mengalamai error seperti ini saat menyalakan service mysql di xampp :

12:57:02 AM  [mysql] 	Status change detected: stopped
12:57:02 AM  [mysql] 	Error: MySQL shutdown unexpectedly.
12:57:02 AM  [mysql] 	This may be due to a blocked port, missing dependencies, 
12:57:02 AM  [mysql] 	improper privileges, a crash, or a shutdown by another method.
12:57:02 AM  [mysql] 	Press the Logs button to view error logs and check
12:57:02 AM  [mysql] 	the Windows Event Viewer for more clues
12:57:02 AM  [mysql] 	If you need more help, copy and post this
12:57:02 AM  [mysql] 	entire log window on the forums

Berikut ini, solusi untuk atas error di atas :

  1. Rename folder c:\xampp\mysql\data menjadi c:\xampp\mysql\data_old (atau bebas mengganti dengan nama lainnya).
  2. Buat folder baru c:\xampp\mysql/data.
  3. Copy semua folder atau file yang ada di mysql\backup ke folder yang baru saja dibuat yaitu mysql\data.
  4. Copy semua folder database yang ada di mysql\data_old ke mysql\data (skip untuk mysqlperformance_schema, dan phpmyadmin folders dari data_old).
  5. Terakhir, copy file ibdata1 dari mysql\data_old dan replace di dalam folder mysql\data.
  6. Start MySQL dari XAMPP control panel.
  7. Selesai.

One comment

  1. gak works gan.

    begin cara solve nya
    cari kata2 ini di my.ini
    $ bind-address = ::1 # for ipv6

    lalu hapus $ > save dan coba start lagi

Leave a Reply

Your email address will not be published. Required fields are marked *