Probably MySQL ibdata1 is corrupted - mysql

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

Related

Error: MySQL shutdown unexpectedly. on xampp

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.

Why isn't AES ENCRYPT and DECRYPT working in xampp mysql?

I have an sql command like so : INSERT INTO data(pass) VALUES (AES_ENCRYPT('123456',UNHEX(SHA2('my phrase',512)))) and whenever I run it, my sql server turns off and I get the following error : mysql is gone away.
Besides I'm not getting any error with other commands.
This is my log :
7:43:34 PM [mysql] Error: MySQL shutdown unexpectedly.
7:43:34 PM [mysql] This may be due to a blocked port, missing dependencies,
7:43:34 PM [mysql] improper privileges, a crash, or a shutdown by another method.
7:43:34 PM [mysql] Press the Logs button to view error logs and check
7:43:34 PM [mysql] the Windows Event Viewer for more clues
7:43:34 PM [mysql] If you need more help, copy and post this
7:43:34 PM [mysql] entire log window on the forums
And here is my mysql log :
InnoDB: using atomic writes.
2020-05-26 19:29:04 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2020-05-26 19:29:04 0 [Note] InnoDB: Uses event mutexes
2020-05-26 19:29:04 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2020-05-26 19:29:04 0 [Note] InnoDB: Number of pools: 1
2020-05-26 19:29:04 0 [Note] InnoDB: Using SSE2 crc32 instructions
2020-05-26 19:29:04 0 [Note] InnoDB: Initializing buffer pool, total size = 16M, instances = 1, chunk size = 16M
2020-05-26 19:29:04 0 [Note] InnoDB: Completed initialization of buffer pool
2020-05-26 19:29:04 0 [Note] InnoDB: Starting crash recovery from checkpoint LSN=323988
2020-05-26 19:29:04 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
2020-05-26 19:29:04 0 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1"
2020-05-26 19:29:04 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2020-05-26 19:29:04 0 [Note] InnoDB: Setting file 'C:\xampp\mysql\data\ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2020-05-26 19:29:04 0 [Note] InnoDB: File 'C:\xampp\mysql\data\ibtmp1' size is now 12 MB.
2020-05-26 19:29:04 0 [Note] InnoDB: 10.4.11 started; log sequence number 323997; transaction id 328
2020-05-26 19:29:04 0 [Note] InnoDB: Loading buffer pool(s) from C:\xampp\mysql\data\ib_buffer_pool
2020-05-26 19:29:04 0 [Note] Plugin 'FEEDBACK' is disabled.
2020-05-26 19:29:04 0 [Note] Server socket created on IP: '::'.
Any solution ? thanks in advance

XAMPP - MySQL shutdown unexpectedly error

I tried to run MySQL on XAMPP v3.2.4 - and I get the following error. It did work before.
Log:
InnoDB: using atomic writes.
2020-04-11 16:11:37 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2020-04-11 16:11:37 0 [Note] InnoDB: Uses event mutexes
2020-04-11 16:11:37 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2020-04-11 16:11:37 0 [Note] InnoDB: Number of pools: 1
2020-04-11 16:11:37 0 [Note] InnoDB: Using SSE2 crc32 instructions
2020-04-11 16:11:37 0 [Note] InnoDB: Initializing buffer pool, total size = 16M, instances = 1, chunk size = 16M
2020-04-11 16:11:37 0 [Note] InnoDB: Completed initialization of buffer pool
2020-04-11 16:11:37 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
2020-04-11 16:11:37 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2020-04-11 16:11:37 0 [Note] InnoDB: Setting file 'C:\xampp\mysql\data\ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2020-04-11 16:11:37 0 [Note] InnoDB: File 'C:\xampp\mysql\data\ibtmp1' size is now 12 MB.
2020-04-11 16:11:37 0 [Note] InnoDB: Waiting for purge to start
2020-04-11 16:11:37 0 [Note] InnoDB: 10.4.11 started; log sequence number 47143; transaction id 9
2020-04-11 16:11:37 0 [Note] InnoDB: Loading buffer pool(s) from C:\xampp\mysql\data\ib_buffer_pool
2020-04-11 16:11:37 0 [Note] Plugin 'FEEDBACK' is disabled.
2020-04-11 16:11:37 0 [Note] InnoDB: Buffer pool(s) load completed at 200411 16:11:37
2020-04-11 16:11:37 0 [Note] Server socket created on IP: '::'.
The error:
`20:50:47 [mysql] Error: MySQL shutdown unexpectedly.
20:50:47 [mysql] This may be due to a blocked port, missing dependencies,
20:50:47 [mysql] improper privileges, a crash, or a shutdown by another method.
20:50:47 [mysql] Press the Logs button to view error logs and check
20:50:47 [mysql] the Windows Event Viewer for more clues
20:50:47 [mysql] If you need more help, copy and post this
20:50:47 [mysql] entire log window on the forums
`
Anyways to fix this? Thanks in advance! OS: W10 Pro 64bit

XAMPP - MySQL shutdown unexpectedly, the logs looks fine doesnt have any error i guess

I got an error like this after starting mysql
11.56.08 [mysql] Error: MySQL shutdown unexpectedly.
11.56.08 [mysql] This may be due to a blocked port, missing dependencies,
11.56.08 [mysql] improper privileges, a crash, or a shutdown by another method.
11.56.08 [mysql] Press the Logs button to view error logs and check
11.56.08 [mysql] the Windows Event Viewer for more clues
11.56.08 [mysql] If you need more help, copy and post this
11.56.08 [mysql] entire log window on the forums
And this is the log
2020-04-13 12:09:49 0 [Note] InnoDB: Mutexes and rw_locks use Windows
interlocked functions
2020-04-13 12:09:49 0 [Note] InnoDB: Uses event mutexes
2020-04-13 12:09:49 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2020-04-13 12:09:49 0 [Note] InnoDB: Number of pools: 1
2020-04-13 12:09:49 0 [Note] InnoDB: Using SSE2 crc32 instructions
2020-04-13 12:09:49 0 [Note] InnoDB: Initializing buffer pool, total
size = 16M, instances = 1, chunk size = 16M
2020-04-13 12:09:49 0 [Note] InnoDB: Completed initialization of
buffer pool
2020-04-13 12:09:51 0 [Note] InnoDB: 128 out of 128 rollback segments
are active.
2020-04-13 12:09:51 0 [Note] InnoDB: Creating shared tablespace for
temporary tables
2020-04-13 12:09:51 0 [Note] InnoDB: Setting file
'C:\xampp\mysql\data\ibtmp1' size to 12 MB. Physically writing the
file full; Please wait ...
2020-04-13 12:09:51 0 [Note] InnoDB: File 'C:\xampp\mysql\data\ibtmp1'
size is now 12 MB.
2020-04-13 12:09:51 0 [Note] InnoDB: Waiting for purge to start
2020-04-13 12:09:51 0 [Note] InnoDB: 10.3.16 started; log sequence
number 1604020; transaction id 9
2020-04-13 12:09:51 0 [Note] InnoDB: Loading buffer pool(s) from
C:\xampp\mysql\data\ib_buffer_pool
2020-04-13 12:09:51 0 [Note] InnoDB: Buffer pool(s) load completed at
200413 12:09:51
2020-04-13 12:09:51 0 [Note] Plugin 'FEEDBACK' is disabled.
2020-04-13 12:09:51 0 [Note] Server socket created on IP: '::'.
The log looks fine, and I don't see any trouble there.
I've tried all the tips on the Internet like deleting
ibdata1, ib_lofile1, ib_logfile0, etc, but still it doesn't fix the problem for me.
Any help?

couldn't start mysql in xampp

When I start mysql in xampp I am getting following errors.
08:46:20 [mysql] Error: MySQL shutdown unexpectedly.
08:46:20 [mysql] This may be due to a blocked port, missing dependencies,
08:46:20 [mysql] improper privileges, a crash, or a shutdown by another method.
08:46:20 [mysql] Press the Logs button to view error logs and check
08:46:20 [mysql] the Windows Event Viewer for more clues
08:46:20 [mysql] If you need more help, copy and post this
08:46:20 [mysql] entire log window on the forums
Mysql log
2019-11-20 8:46:19 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2019-11-20 8:46:19 0 [Note] InnoDB: Uses event mutexes
2019-11-20 8:46:19 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2019-11-20 8:46:19 0 [Note] InnoDB: Number of pools: 1
2019-11-20 8:46:19 0 [Note] InnoDB: Using SSE2 crc32 instructions
2019-11-20 8:46:19 0 [Note] InnoDB: Initializing buffer pool, total size = 16M, instances = 1, chunk size = 16M
2019-11-20 8:46:19 0 [Note] InnoDB: Completed initialization of buffer pool
2019-11-20 8:46:19 0 [Note] InnoDB: Starting crash recovery from checkpoint LSN=1870647
2019-11-20 8:46:19 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
2019-11-20 8:46:19 0 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1"
2019-11-20 8:46:19 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2019-11-20 8:46:19 0 [Note] InnoDB: Setting file 'F:\xampp\mysql\data\ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2019-11-20 8:46:19 0 [Note] InnoDB: File 'F:\xampp\mysql\data\ibtmp1' size is now 12 MB.
2019-11-20 8:46:19 0 [Note] InnoDB: Waiting for purge to start
2019-11-20 8:46:19 0 [Note] InnoDB: 10.3.16 started; log sequence number 1870656; transaction id 460
2019-11-20 8:46:19 0 [Note] InnoDB: Loading buffer pool(s) from F:\xampp\mysql\data\ib_buffer_pool
2019-11-20 8:46:19 0 [Note] InnoDB: Buffer pool(s) load completed at 191120 8:46:19
2019-11-20 8:46:19 0 [Note] Plugin 'FEEDBACK' is disabled.
2019-11-20 8:46:19 0 [Note] Server socket created on IP: '::'.
Please help me to resolve this as I am new to this stuff.