Phương pháp sửa lỗi không thể chạy MySQL trên gói XAMPP.
Lỗi này xảy ra khi máy tính bị tắt máy giữa chừng hoặc bị lỗi.
Lỗi có thể như sau:
InnoDB: using atomic writes.
[Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
[Note] InnoDB: Uses event mutexes
[Note] InnoDB: Compressed tables use zlib 1.2.11
[Note] InnoDB: Number of pools: 1
[Note] InnoDB: Using SSE2 crc32 instructions
[Note] InnoDB: Initializing buffer pool, total size = 16M, instances = 1, chunk size = 16M
[Note] InnoDB: Completed initialization of buffer pool
[Note] InnoDB: Resizing redo log from 2*50331648 to 2*5242880 bytes; LSN=49456670
[Note] InnoDB: Starting to delete and rewrite log files.
[Note] InnoDB: Setting log file C:\xampp\mysql\data\ib_logfile101 size to 5242880 bytes
[Note] InnoDB: Setting log file C:\xampp\mysql\data\ib_logfile1 size to 5242880 bytes
[Note] InnoDB: Renaming log file C:\xampp\mysql\data\ib_logfile101 to C:\xampp\mysql\data\ib_logfile0
[Note] InnoDB: New log files created, LSN=49456670
[Note] InnoDB: 128 out of 128 rollback segments are active.
[Note] InnoDB: Creating shared tablespace for temporary tables
[Note] InnoDB: Setting file 'C:\xampp\mysql\data\ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
[Note] InnoDB: File 'C:\xampp\mysql\data\ibtmp1' size is now 12 MB.
[Note] InnoDB: Waiting for purge to start
[Note] InnoDB: 10.4.8 started; log sequence number 49456670; transaction id 79677
[Note] InnoDB: Loading buffer pool(s) from C:\xampp\mysql\data\ib_buffer_pool
[Note] Plugin 'FEEDBACK' is disabled.
[Note] Server socket created on IP: '::'.
Bước 1: Để an toàn cho các Cơ sở dữ liệu đang có. Bạn nên copy thư mục C:\xampp\mysql\data thành C:\xampp\mysql\data1
Bước 2: Copy tất cả các tập tin từ thư mục C:\xampp\mysql\backup vào C:\xampp\mysql\data
Bước 3: Bật MySQL