Cara ketiga
Coba anda perhatikan pesan error di bawah ini, sama persis dengan pesan error yang ditampilkan pada artikel sebelumnya, tapi ternyata walaupun pesan errornya sama namun penyelesaiannya cukup berbeda.
- 3:15:34 PM [mysql] Status change detected: stopped
- 3:15:34 PM [mysql] Error: MySQL shutdown unexpectedly.
- 3:15:34 PM [mysql] This may be due to a blocked port, missing dependencies,
- 3:15:34 PM [mysql] improper privileges, a crash, or a shutdown by another method.
- 3:15:34 PM [mysql] Press the Logs button to view error logs and check
- 3:15:34 PM [mysql] the Windows Event Viewer for more clues
- 3:15:34 PM [mysql] If you need more help, copy and post this
- 3:15:34 PM [mysql] entire log window on the forums
Kita focus pada satu pesan error tersebut yaitu: “Press the Logs button to view error logs and check” . Kita coba kilk tombol tersebut dan akan membuka file mysql_error.log, ada banyak sekali pesan errornya, kita coba hapus semua pesan error yang ada pada file mysql_error.log (bukan menghapus file tapi tulisan yang ada pada file mysql_error.log).
Setelah dihapus kita save, kemudian coba Start lagi MySQL sehingga terbuatlah pesan error baru pada file mysql_error.log, setelah membukanya kembali ternyata ada satu baris yang menarik perhatian yaitu:
2021-03-03 12:43:45 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2021-03-03 12:43:45 0 [Note] InnoDB: Uses event mutexes
2021-03-03 12:43:45 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2021-03-03 12:43:45 0 [Note] InnoDB: Number of pools: 1
2021-03-03 12:43:45 0 [Note] InnoDB: Using SSE2 crc32 instructions
2021-03-03 12:43:45 0 [Note] InnoDB: Initializing buffer pool, total size = 16M, instances = 1, chunk size = 16M
2021-03-03 12:43:45 0 [Note] InnoDB: Completed initialization of buffer pool
2021-03-03 12:43:45 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
2021-03-03 12:43:45 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2021-03-03 12:43:45 0 [Note] InnoDB: Setting file ‘C:\xampp\mysql\data\ibtmp1’ size to 12 MB. Physically writing the file full; Please wait …
2021-03-03 12:43:45 0 [Note] InnoDB: File ‘C:\xampp\mysql\data\ibtmp1’ size is now 12 MB.
2021-03-03 12:43:45 0 [Note] InnoDB: 10.4.13 started; log sequence number 47073; transaction id 9
2021-03-03 12:43:45 0 [Note] InnoDB: Loading buffer pool(s) from C:\xampp\mysql\data\ib_buffer_pool
2021-03-03 12:43:45 0 [Note] Plugin ‘FEEDBACK’ is disabled.
2021-03-03 12:43:45 0 [Note] InnoDB: Buffer pool(s) load completed at 210303 12:43:45
2021-03-03 12:43:45 0 [Note] Server socket created on IP: ‘::’.
Solusinya copy semua file yang ada pada folder xampp/mysql/backup/ ke folder /xampp/mysql/data/. Sebelumnya backup dulu data yang ada di folder /xampp/mysql/data/ untuk menghindari kegagalan. Selanjutnya start kembali MySql, dan akhirnya pada tahap ini berhasil diatasi.
Demikian cara untuk mengatasi Error: MySQL shutdown unexpectedly yang saya alami, untuk error yang terjadi pada masing-masing komputer kemungkinan akan berbeda dan cara mengatasinya akan berbeda juga.dibahas b
Be the first to comment