Error: MySQL shutdown unexpectedly. on xampp - mysql

I face the following error in xampp.
InnoDB: using atomic writes.
2020-12-07 14:49:27 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2020-12-07 14:49:27 0 [Note] InnoDB: Uses event mutexes
2020-12-07 14:49:27 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2020-12-07 14:49:27 0 [Note] InnoDB: Number of pools: 1
2020-12-07 14:49:27 0 [Note] InnoDB: Using SSE2 crc32 instructions
2020-12-07 14:49:27 0 [Note] InnoDB: Initializing buffer pool, total size = 16M, instances = 1, chunk size = 16M
2020-12-07 14:49:27 0 [Note] InnoDB: Completed initialization of buffer pool
2020-12-07 14:49:27 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
2020-12-07 14:49:27 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2020-12-07 14:49:27 0 [Note] InnoDB: Setting file 'C:\xampp\mysql\data\ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2020-12-07 14:49:27 0 [Note] InnoDB: File 'C:\xampp\mysql\data\ibtmp1' size is now 12 MB.
2020-12-07 14:49:27 0 [Note] InnoDB: Waiting for purge to start
2020-12-07 14:49:27 0 [Note] InnoDB: 10.4.10 started; log sequence number 280252366; transaction id 231680
2020-12-07 14:49:27 0 [Note] InnoDB: Loading buffer pool(s) from C:\xampp\mysql\data\ib_buffer_pool
2020-12-07 14:49:27 0 [Note] Plugin 'FEEDBACK' is disabled.
2020-12-07 14:49:27 0 [Note] Server socket created on IP: '::'.
2020-12-07 14:49:27 0 [Note] InnoDB: Buffer pool(s) load completed at 201207 14:49:27
InnoDB: using atomic writes.
2020-12-07 14:50:05 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2020-12-07 14:50:05 0 [Note] InnoDB: Uses event mutexes
2020-12-07 14:50:05 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2020-12-07 14:50:05 0 [Note] InnoDB: Number of pools: 1
2020-12-07 14:50:05 0 [Note] InnoDB: Using SSE2 crc32 instructions
2020-12-07 14:50:05 0 [Note] InnoDB: Initializing buffer pool, total size = 16M, instances = 1, chunk size = 16M
2020-12-07 14:50:05 0 [Note] InnoDB: Completed initialization of buffer pool
2020-12-07 14:50:05 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
2020-12-07 14:50:05 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2020-12-07 14:50:05 0 [Note] InnoDB: Setting file 'C:\xampp\mysql\data\ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2020-12-07 14:50:05 0 [Note] InnoDB: File 'C:\xampp\mysql\data\ibtmp1' size is now 12 MB.
2020-12-07 14:50:05 0 [Note] InnoDB: Waiting for purge to start
2020-12-07 14:50:05 0 [Note] InnoDB: 10.4.10 started; log sequence number 280252375; transaction id 231680
2020-12-07 14:50:05 0 [Note] InnoDB: Loading buffer pool(s) from C:\xampp\mysql\data\ib_buffer_pool
2020-12-07 14:50:05 0 [Note] Plugin 'FEEDBACK' is disabled.
2020-12-07 14:50:05 0 [Note] Server socket created on IP: '::'.
2020-12-07 14:50:05 0 [Note] InnoDB: Buffer pool(s) load completed at 201207 14:50:05
I try changing the port from 3306 to 3308 then I change it to 3307. Also, I try upgrading the size from 2MB to 200MB. Also I try this methods: Error: MySQL shutdown unexpectedly. on xampp-control Couldn't start mysql even when there is no services using port 3306
If you have any information regarding this problem, please let me know.

After searching and testing different methods, I found the answer, I just run setup_xampp.bat in xampp directory, and after that, the program starts working.

Related

Mysql shut down unexpectedly

`2022-10-31 12:16:33 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2022-10-31 12:16:33 0 [Note] InnoDB: Uses event mutexes
2022-10-31 12:16:33 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2022-10-31 12:16:33 0 [Note] InnoDB: Number of pools: 1
2022-10-31 12:16:33 0 [Note] InnoDB: Using SSE2 crc32 instructions
2022-10-31 12:16:33 0 [Note] InnoDB: Initializing buffer pool, total size = 16M, instances = 1, chunk size = 16M
2022-10-31 12:16:33 0 [Note] InnoDB: Completed initialization of buffer pool
2022-10-31 12:16:33 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
2022-10-31 12:16:33 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2022-10-31 12:16:33 0 [Note] InnoDB: Setting file 'C:\xampp\mysql\data\ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2022-10-31 12:16:33 0 [Note] InnoDB: File 'C:\xampp\mysql\data\ibtmp1' size is now 12 MB.
2022-10-31 12:16:33 0 [Note] InnoDB: Waiting for purge to start
2022-10-31 12:16:33 0 [Note] InnoDB: 10.4.25 started; log sequence number 47637; transaction id 8
2022-10-31 12:16:33 0 [Note] InnoDB: Loading buffer pool(s) from C:\xampp\mysql\data\ib_buffer_pool
2022-10-31 12:16:33 0 [Note] Plugin 'FEEDBACK' is disabled.
2022-10-31 12:16:33 0 [ERROR] c:\xampp\mysql\bin\mysqld.exe: unknown variable 'ibdata1=C:/xampp/mysql/data/'
2022-10-31 12:16:33 0 [ERROR] Aborting`your text`
tried reinstalling xampp and used available method online to copy paste my older data but everytime table doesnt exist in engine issue occured`

Get Error: MySQL shutdown unexpectedly. when start MySQL in xampp

I have problem in Xampp when i want to start MySQL and get error "Error: MySQL shutdown unexpectedly."
Here the error log
2022-07-28 9:47:14 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2022-07-28 9:47:14 0 [Note] InnoDB: Uses event mutexes
2022-07-28 9:47:14 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2022-07-28 9:47:14 0 [Note] InnoDB: Number of pools: 1
2022-07-28 9:47:14 0 [Note] InnoDB: Using SSE2 crc32 instructions
2022-07-28 9:47:14 0 [Note] InnoDB: Initializing buffer pool, total size = 16M, instances = 1, chunk size = 16M
2022-07-28 9:47:14 0 [Note] InnoDB: Completed initialization of buffer pool
2022-07-28 9:47:16 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
2022-07-28 9:47:16 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2022-07-28 9:47:16 0 [Note] InnoDB: Setting file 'C:\xampp\mysql\data\ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2022-07-28 9:47:16 0 [Note] InnoDB: File 'C:\xampp\mysql\data\ibtmp1' size is now 12 MB.
2022-07-28 9:47:16 0 [Note] InnoDB: Waiting for purge to start
2022-07-28 9:47:16 0 [Note] InnoDB: 10.4.11 started; log sequence number 504726462; transaction id 1232685
2022-07-28 9:47:16 0 [Note] InnoDB: Loading buffer pool(s) from C:\xampp\mysql\data\ib_buffer_pool
2022-07-28 9:47:16 0 [Note] Plugin 'FEEDBACK' is disabled.
2022-07-28 9:47:16 0 [Note] InnoDB: Buffer pool(s) load completed at 220728 9:47:16
2022-07-28 9:47:16 0 [Note] Server socket created on IP: '::'.
What can i do to solve this?

xaamp MySql server wont start

I have been using this for a few days with no issue but yesterday the mysql server refused to start. I have rebooted everything and it is still doing the same thing. Here is part of the log file. Please let me know how to get it back up and running and why it is doing this? This is windows 10 operating systems. Also, Apache server still starts fine.
**InnoDB: using atomic writes.
2020-11-24 15:25:23 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2020-11-24 15:25:23 0 [Note] InnoDB: Uses event mutexes
2020-11-24 15:25:23 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2020-11-24 15:25:23 0 [Note] InnoDB: Number of pools: 1
2020-11-24 15:25:23 0 [Note] InnoDB: Using SSE2 crc32 instructions
2020-11-24 15:25:23 0 [Note] InnoDB: Initializing buffer pool, total size = 16M, instances = 1, chunk size = 16M
2020-11-24 15:25:23 0 [Note] InnoDB: Completed initialization of buffer pool
2020-11-24 15:25:23 0 [Note] InnoDB: Starting crash recovery from checkpoint LSN=300288
2020-11-24 15:25:24 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
2020-11-24 15:25:24 0 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1"
2020-11-24 15:25:24 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2020-11-24 15:25:24 0 [Note] InnoDB: Setting file 'C:\xampp\mysql\data\ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2020-11-24 15:25:24 0 [Note] InnoDB: File 'C:\xampp\mysql\data\ibtmp1' size is now 12 MB.
2020-11-24 15:25:24 0 [Note] InnoDB: Waiting for purge to start
2020-11-24 15:25:24 0 [Note] InnoDB: 10.4.16 started; log sequence number 300297; transaction id 170
2020-11-24 15:25:24 0 [Note] InnoDB: Loading buffer pool(s) from C:\xampp\mysql\data\ib_buffer_pool
2020-11-24 15:25:24 0 [Note] Plugin 'FEEDBACK' is disabled.
2020-11-24 15:25:24 0 [Note] InnoDB: Buffer pool(s) load completed at 201124 15:25:24
2020-11-24 15:25:24 0 [Note] Server socket created on IP: '::'.
2020-11-24 19:42:47 0 [Note] mysqld.exe: Aria engine: starting recovery
recovered pages: 0% 13% 55% 81% 94% 100% (0.0 seconds); tables to flush: 2 1 0
(0.1 seconds);
2020-11-24 19:42:48 0 [Note] mysqld.exe: Aria engine: recovery done
InnoDB: using atomic writes.
2020-11-24 19:42:48 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2020-11-24 19:42:48 0 [Note] InnoDB: Uses event mutexes
2020-11-24 19:42:48 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2020-11-24 19:42:48 0 [Note] InnoDB: Number of pools: 1
2020-11-24 19:42:48 0 [Note] InnoDB: Using SSE2 crc32 instructions
2020-11-24 19:42:48 0 [Note] InnoDB: Initializing buffer pool, total size = 16M, instances = 1, chunk size = 16M
2020-11-24 19:42:48 0 [Note] InnoDB: Completed initialization of buffer pool
2020-11-24 19:42:48 0 [Note] InnoDB: Starting crash recovery from checkpoint LSN=458268
2020-11-24 19:42:48 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
2020-11-24 19:42:48 0 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1"
2020-11-24 19:42:48 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2020-11-24 19:42:48 0 [Note] InnoDB: Setting file 'C:\xampp\mysql\data\ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2020-11-24 19:42:48 0 [Note] InnoDB: File 'C:\xampp\mysql\data\ibtmp1' size is now 12 MB.
2020-11-24 19:42:48 0 [Note] InnoDB: Waiting for purge to start
2020-11-24 19:42:48 0 [Note] InnoDB: 10.4.16 started; log sequence number 458277; transaction id 670
2020-11-24 19:42:48 0 [Note] InnoDB: Loading buffer pool(s) from C:\xampp\mysql\data\ib_buffer_pool
2020-11-24 19:42:48 0 [Note] Plugin 'FEEDBACK' is disabled.
2020-11-24 19:42:48 0 [Note] Server socket created on IP: '::'.
InnoDB: using atomic writes.
2020-11-25 11:28:55 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2020-11-25 11:28:55 0 [Note] InnoDB: Uses event mutexes
2020-11-25 11:28:55 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2020-11-25 11:28:55 0 [Note] InnoDB: Number of pools: 1
2020-11-25 11:28:55 0 [Note] InnoDB: Using SSE2 crc32 instructions
2020-11-25 11:28:55 0 [Note] InnoDB: Initializing buffer pool, total size = 16M, instances = 1, chunk size = 16M
2020-11-25 11:28:55 0 [Note] InnoDB: Completed initialization of buffer pool
2020-11-25 11:28:55 0 [Note] InnoDB: Starting crash recovery from checkpoint LSN=458587
2020-11-25 11:28:55 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
2020-11-25 11:28:55 0 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1"
2020-11-25 11:28:55 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2020-11-25 11:28:55 0 [Note] InnoDB: Setting file 'C:\xampp\mysql\data\ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2020-11-25 11:28:55 0 [Note] InnoDB: File 'C:\xampp\mysql\data\ibtmp1' size is now 12 MB.
2020-11-25 11:28:55 0 [Note] InnoDB: Waiting for purge to start
2020-11-25 11:28:55 0 [Note] InnoDB: 10.4.16 started; log sequence number 458596; transaction id 693
2020-11-25 11:28:55 0 [Note] InnoDB: Loading buffer pool(s) from C:\xampp\mysql\data\ib_buffer_pool
2020-11-25 11:28:55 0 [Note] Plugin 'FEEDBACK' is disabled.
2020-11-25 11:28:55 0 [Note] Server socket created on IP: '::'.
InnoDB: using atomic writes.**
Copy from xampp/mysql/backup folder and paste in xampp/mysql/data folder except ibdata1 file.
If you replace ibdata1 file from xampp/mysql/data then some database you will get error table does not exist.
found this here...
XAMPP MySQL service crash after reboot

Probably MySQL ibdata1 is corrupted

Logs:
2020-12-07 13:53:32 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2020-12-07 13:53:32 0 [Note] InnoDB: Uses event mutexes
2020-12-07 13:53:32 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2020-12-07 13:53:32 0 [Note] InnoDB: Number of pools: 1
2020-12-07 13:53:32 0 [Note] InnoDB: Using SSE2 crc32 instructions
2020-12-07 13:53:32 0 [Note] InnoDB: Initializing buffer pool, total size = 256M, instances = 1, chunk size = 128M
2020-12-07 13:53:32 0 [Note] InnoDB: Completed initialization of buffer pool
2020-12-07 13:53:32 0 [Note] InnoDB: Resizing redo log from 2*5242880 to 2*104857600 bytes; LSN=47064
2020-12-07 13:53:33 0 [Note] InnoDB: Starting to delete and rewrite log files.
2020-12-07 13:53:33 0 [Note] InnoDB: Setting log file C:\xampp\mysql\data\ib_logfile101 size to 104857600 bytes
2020-12-07 13:53:33 0 [Note] InnoDB: Setting log file C:\xampp\mysql\data\ib_logfile1 size to 104857600 bytes
2020-12-07 13:53:33 0 [Note] InnoDB: Renaming log file C:\xampp\mysql\data\ib_logfile101 to C:\xampp\mysql\data\ib_logfile0
2020-12-07 13:53:33 0 [Note] InnoDB: New log files created, LSN=47064
2020-12-07 13:53:33 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
2020-12-07 13:53:33 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2020-12-07 13:53:33 0 [Note] InnoDB: Setting file 'C:\xampp\mysql\data\ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2020-12-07 13:53:33 0 [Note] InnoDB: File 'C:\xampp\mysql\data\ibtmp1' size is now 12 MB.
2020-12-07 13:53:33 0 [Note] InnoDB: 10.4.11 started; log sequence number 47064; transaction id 9
2020-12-07 13:53:33 0 [Note] Plugin 'FEEDBACK' is disabled.
2020-12-07 13:53:33 0 [Note] InnoDB: Loading buffer pool(s) from C:\xampp\mysql\data\ib_buffer_pool
2020-12-07 13:53:33 0 [Note] InnoDB: Buffer pool(s) load completed at 201207 13:53:33
2020-12-07 13:53:33 0 [Note] Server socket created on IP: '::'.
Fail:
13:57:48 [mysql] Error: MySQL shutdown unexpectedly.
13:57:48 [mysql] This may be due to a blocked port, missing dependencies,
13:57:48 [mysql] improper privileges, a crash, or a shutdown by another method.
13:57:48 [mysql] Press the Logs button to view error logs and check
13:57:48 [mysql] the Windows Event Viewer for more clues
13:57:48 [mysql] If you need more help, copy and post this
13:57:48 [mysql] entire log window on the forums+
I tried run mysqld.exe, move mysql/backup to data and copy old_data/ibdata1 to data and copy database folders to data/, result: same

Xampp MySQL shutdown unexpectedly Plugin 'FEEDBACK' is disabled

Just started up Xampp today and when I turn on my SQL, it simply turns off again and tells me that MySQL shutdown unexpectedly.
Here is the log:
2020-09-22 9:28:33 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2020-09-22 9:28:33 0 [Note] InnoDB: Uses event mutexes
2020-09-22 9:28:33 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2020-09-22 9:28:33 0 [Note] InnoDB: Number of pools: 1
2020-09-22 9:28:33 0 [Note] InnoDB: Using SSE2 crc32 instructions
2020-09-22 9:28:33 0 [Note] InnoDB: Initializing buffer pool, total size = 16M, instances = 1, chunk size = 16M
2020-09-22 9:28:33 0 [Note] InnoDB: Completed initialization of buffer pool
2020-09-22 9:28:33 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
2020-09-22 9:28:33 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2020-09-22 9:28:33 0 [Note] InnoDB: Setting file 'C:\xampp\mysql\data\ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2020-09-22 9:28:33 0 [Note] InnoDB: File 'C:\xampp\mysql\data\ibtmp1' size is now 12 MB.
2020-09-22 9:28:33 0 [Note] InnoDB: Waiting for purge to start
2020-09-22 9:28:33 0 [Note] InnoDB: 10.4.13 started; log sequence number 639553085; transaction id 596387
2020-09-22 9:28:33 0 [Note] InnoDB: Loading buffer pool(s) from C:\xampp\mysql\data\ib_buffer_pool
2020-09-22 9:28:33 0 [Note] Plugin 'FEEDBACK' is disabled.
2020-09-22 9:28:33 0 [Note] Server socket created on IP: '::'.
If anyone can help that would be amazing!
I have fixed the issue. From xampp/mysql/backup/ folder i copied all files in to xampp/mysql/data/ That solved the issue.
look like the issue cause database innodb structure conflict