Solusi MySQL tidak bisa start/running

Halo selamat siang, jika anda adalah pengguna setia paket komplit xampp, pastinya sering sekali mysql some how error sendiri tidak bisa start / running, walaupun anda (bahkan) sudah melakukan restart pc/laptop tetap saja mysql ogah bangun dari tidurnya. Langkah yang paling cepat biasanya cuma install ulang xampp, namun jika data mysql anda sudah banyak hal ini juga sangat beresiko.

Sebelum anda mencoba install ulang, silahkan ikuti langkah dibawah ini agar mengurahing rasa penasaran anda, pastikan anda membacanya dengan seksama karena ada beberapa file yang tidak harus anda replace nantinya. Let’s ti! sorry let’s go! maksudnya.

Error Logs

Berikut ini adalah error yang biasa terjadi jika mysql tidak bisa start atau running :

2022-08-20  8:17:01 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2022-08-20  8:17:01 0 [Note] InnoDB: Uses event mutexes
2022-08-20  8:17:01 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2022-08-20  8:17:01 0 [Note] InnoDB: Number of pools: 1
2022-08-20  8:17:01 0 [Note] InnoDB: Using SSE2 crc32 instructions
2022-08-20  8:17:01 0 [Note] InnoDB: Initializing buffer pool, total size = 16M, instances = 1, chunk size = 16M
2022-08-20  8:17:01 0 [Note] InnoDB: Completed initialization of buffer pool
2022-08-20  8:17:01 0 [Note] InnoDB: Starting crash recovery from checkpoint LSN=300288
2022-08-20  8:17:01 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
2022-08-20  8:17:01 0 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1"
2022-08-20  8:17:01 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2022-08-20  8:17:01 0 [Note] InnoDB: Setting file 'D:\xampp\mysql\data\ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2022-08-20  8:17:01 0 [Note] InnoDB: File 'D:\xampp\mysql\data\ibtmp1' size is now 12 MB.
2022-08-20  8:17:01 0 [Note] InnoDB: Waiting for purge to start
2022-08-20  8:17:01 0 [Note] InnoDB: 10.4.24 started; log sequence number 300297; transaction id 170
2022-08-20  8:17:01 0 [Note] InnoDB: Loading buffer pool(s) from D:\xampp\mysql\data\ib_buffer_pool
2022-08-20  8:17:01 0 [Note] Plugin 'FEEDBACK' is disabled.
2022-08-20  8:17:01 0 [Note] Server socket created on IP: '::'.

Solusi

Pertama identifikasi dimana anda menginstall xampp, jika kita lihat log diatas saya menginstall pada drive D:, silahkan anda sesuaikan dimana anda melakukan install xampp. Setelah identifikasi awal selesai, ikuti langkah dibawah ini :

  • Matikan apache web service di xampp
  • Close control panel xampp
  • Navigasi ke folder mysql, jika pada contoh diatas : D:\xampp\mysql
  • Copy folder data dan paste pada folder yang sama, sehigga terdapat dua folder data dan data-copy.
  • Navigasi ke mysql backup : D:\xampp\mysql\backup, berikut ini isi dari folder backup

20/08/2022  08:04    <DIR>          .
26/10/2022  15:00    <DIR>          ..
21/10/2019  21:37            24.576 aria_log.00000001
21/10/2019  21:37                52 aria_log_control
21/10/2019  21:37        12.582.912 ibdata1
21/10/2019  21:37        12.582.912 ibtmp1
21/10/2019  20:17             1.147 ib_buffer_pool
21/10/2019  21:37         5.242.880 ib_logfile0
21/10/2019  20:19         5.242.880 ib_logfile1
21/10/2019  20:19                 0 multi-master.info
21/10/2019  20:17                49 my.ini
20/08/2022  08:04    <DIR>          mysql
20/08/2022  08:04    <DIR>          performance_schema
20/08/2022  08:04    <DIR>          phpmyadmin
20/08/2022  08:04    <DIR>          test
               9 File(s)     35.677.408 bytes
               6 Dir(s)  194.314.027.008 bytes free
  • Copy semua file kecuail file : ibdata1
  • Paste ke folder mysql data : D:\xampp\mysql\data
  • Replace semua jika diminta konfirmasi
  • Jalankan Xampp kembali, seharusnya sudah bisa normal.
control panel xampp

Kesimpulan

Jika langkah diatas tidak berhasil silahkan anda lakukan install ulang xampp, dan pastikan data mysql pada path : D:\xampp\mysql\data di backup terlebih dahulu sebelum anda memulai install ulang. Jika ada pertanyaan silahkan pada kolom komentar.

Wassalam


Discover more from hendrawijaya.net

Subscribe to get the latest posts sent to your email.

Leave a Comment

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

Scroll to Top

Discover more from hendrawijaya.net

Subscribe now to keep reading and get access to the full archive.

Continue reading