How to solve XAMPP error: "MySQL Shutdown unexpectedly"? - mysql

I Get the MySQL shutdown unexpectedly error when trying to open it from XAMPP control panel.
The logs:
InnoDB: using atomic writes.
2022-08-25 17:12:10 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2022-08-25 17:12:10 0 [Note] InnoDB: Uses event mutexes
2022-08-25 17:12:10 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2022-08-25 17:12:10 0 [Note] InnoDB: Number of pools: 1
2022-08-25 17:12:10 0 [Note] InnoDB: Using SSE2 crc32 instructions
2022-08-25 17:12:10 0 [Note] InnoDB: Initializing buffer pool, total size = 16M, instances = 1, chunk size = 16M
2022-08-25 17:12:10 0 [Note] InnoDB: Completed initialization of buffer pool
2022-08-25 17:12:10 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
2022-08-25 17:12:10 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2022-08-25 17:12:10 0 [Note] InnoDB: Setting file 'D:\Xampp\mysql\data\ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2022-08-25 17:12:10 0 [Note] InnoDB: File 'D:\Xampp\mysql\data\ibtmp1' size is now 12 MB.
2022-08-25 17:12:10 0 [Note] InnoDB: Waiting for purge to start
2022-08-25 17:12:10 0 [Note] InnoDB: 10.4.17 started; log sequence number 1070073; transaction id 898
2022-08-25 17:12:10 0 [Note] InnoDB: Loading buffer pool(s) from D:\Xampp\mysql\data\ib_buffer_pool
2022-08-25 17:12:10 0 [Note] Plugin 'FEEDBACK' is disabled.
2022-08-25 17:12:10 0 [Note] Server socket created on IP: '::'.
2022-08-25 17:12:10 0 [ERROR] Can't start server: Bind on TCP/IP port. Got error: 10048: Only one usage of each socket address (protocol/network address/port) is normally permitted.
2022-08-25 17:12:10 0 [ERROR] Do you already have another mysqld server running on port: 3306 ?
2022-08-25 17:12:10 0 [ERROR] Aborting
I get the following connection on MySQL Workbench that is created autmatically ( it will reapear if I delete it).
I already tried renaming the data folder and doing the backup version, and also tried to change the port from the my.ini file into 3307 but still get this error.
Any ideas what could solve this?

Related

Xampp mysql server suddenly not starting

I used Xampp a few hours ago wanted to start mysqlserver again but it gave me a error message that mysql shut down unexpectedly
enter image description here
And yes the port is not used checked it with netstat -an | findstr "3306" command
and even tried to change the port to 3307 but neither that worked
And the error logs show no error:
2021-10-13 19:58:12 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2021-10-13 19:58:12 0 [Note] InnoDB: Uses event mutexes
2021-10-13 19:58:12 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2021-10-13 19:58:12 0 [Note] InnoDB: Number of pools: 1
2021-10-13 19:58:12 0 [Note] InnoDB: Using SSE2 crc32 instructions
2021-10-13 19:58:12 0 [Note] InnoDB: Initializing buffer pool, total size = 16M, instances = 1, chunk size = 16M
2021-10-13 19:58:12 0 [Note] InnoDB: Completed initialization of buffer pool
2021-10-13 19:58:12 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
2021-10-13 19:58:12 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2021-10-13 19:58:12 0 [Note] InnoDB: Setting file 'D:\Xampp\Xampphpupgrade\mysql\data\ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2021-10-13 19:58:12 0 [Note] InnoDB: File 'D:\Xampp\Xampphpupgrade\mysql\data\ibtmp1' size is now 12 MB.
2021-10-13 19:58:12 0 [Note] InnoDB: Waiting for purge to start
2021-10-13 19:58:12 0 [Note] InnoDB: 10.4.21 started; log sequence number 7528999; transaction id 39501
2021-10-13 19:58:12 0 [Note] InnoDB: Loading buffer pool(s) from D:\Xampp\Xampphpupgrade\mysql\data\ib_buffer_pool
2021-10-13 19:58:12 0 [Note] Plugin 'FEEDBACK' is disabled.
2021-10-13 19:58:12 0 [Note] Server socket created on IP: '::'.
If your MySql is new without important databases, you can try these steps:
Shut down your Xampp server
Go to C:\xampp\mysql\data directory
delete the ibdata1 file
Restart your Xampp server
Deleting ibdata1 file may destroy your tables, backup everything.

xampp cannot start MySQL

I shut down my xampp to take a lunch break and for some reason I cannot start it up again. When I try to launch MySQL it says the following:
13:13:19 [mysql] Error: MySQL shutdown unexpectedly.
13:13:19 [mysql] This may be due to a blocked port, missing dependencies,
13:13:19 [mysql] improper privileges, a crash, or a shutdown by another method.
13:13:19 [mysql] Press the Logs button to view error logs and check
13:13:19 [mysql] the Windows Event Viewer for more clues
13:13:19 [mysql] If you need more help, copy and post this
13:13:19 [mysql] entire log window on the forums
So I check the error logs:
2020-11-25 13:13:17 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2020-11-25 13:13:17 0 [Note] InnoDB: Uses event mutexes
2020-11-25 13:13:17 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2020-11-25 13:13:17 0 [Note] InnoDB: Number of pools: 1
2020-11-25 13:13:17 0 [Note] InnoDB: Using SSE2 crc32 instructions
2020-11-25 13:13:17 0 [Note] InnoDB: Initializing buffer pool, total size = 16M, instances = 1, chunk size = 16M
2020-11-25 13:13:17 0 [Note] InnoDB: Completed initialization of buffer pool
2020-11-25 13:13:17 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
2020-11-25 13:13:17 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2020-11-25 13:13:17 0 [Note] InnoDB: Setting file 'C:\xampp\mysql\data\ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2020-11-25 13:13:17 0 [Note] InnoDB: File 'C:\xampp\mysql\data\ibtmp1' size is now 12 MB.
2020-11-25 13:13:17 0 [Note] InnoDB: Waiting for purge to start
2020-11-25 13:13:17 0 [Note] InnoDB: 10.4.11 started; log sequence number 702532; transaction id 2087
2020-11-25 13:13:17 0 [Note] InnoDB: Loading buffer pool(s) from C:\xampp\mysql\data\ib_buffer_pool
2020-11-25 13:13:17 0 [Note] Plugin 'FEEDBACK' is disabled.
2020-11-25 13:13:17 0 [Note] Server socket created on IP: '::'.
What am I doing wrong / how can I fix this issue?
Thanks to A R I found the solution:
I had to stop MySQL, copy the data folder and remove the files that have the INFO File type.

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

MariaDB won't start

I'm starting MariaDB on windows 10. It installs fine, but when I try to start it with net start mysql on elevated command line I get this:
C:\Program Files\MariaDB 10.5>net start mysql
The MySQL service is starting.
The MySQL service could not be started.
A system error has occurred.
System error 1067 has occurred.
The process terminated unexpectedly.
here is the error file
InnoDB: using atomic writes.
2020-01-22 16:23:10 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2020-01-22 16:23:10 0 [Note] InnoDB: Uses event mutexes
2020-01-22 16:23:10 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2020-01-22 16:23:10 0 [Note] InnoDB: Number of pools: 1
2020-01-22 16:23:10 0 [Note] InnoDB: Using SSE2 crc32 instructions
2020-01-22 16:23:10 0 [Note] InnoDB: Initializing buffer pool, total size = 1G, instances = 1, chunk size = 128M
2020-01-22 16:23:10 0 [Note] InnoDB: Completed initialization of buffer pool
2020-01-22 16:23:11 0 [Note] InnoDB: 128 rollback segments are active.
2020-01-22 16:23:11 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2020-01-22 16:23:11 0 [Note] InnoDB: Setting file '.\ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2020-01-22 16:23:11 0 [Note] InnoDB: File '.\ibtmp1' size is now 12 MB.
2020-01-22 16:23:11 0 [Note] InnoDB: 10.5.0 started; log sequence number 61454; transaction id 21
2020-01-22 16:23:11 0 [Note] Plugin 'FEEDBACK' is disabled.
2020-01-22 16:23:11 0 [Note] InnoDB: Loading buffer pool(s) from C:\Program Files\MariaDB 10.5\data\ib_buffer_pool
2020-01-22 16:23:11 0 [Note] Server socket created on IP: '::'.
2020-01-22 16:23:11 0 [Note] InnoDB: Buffer pool(s) load completed at 200122 16:23:11
2020-01-22 16:23:11 0 [Note] Reading of all Master_info entries succeeded
2020-01-22 16:23:11 0 [Note] Added new Master_info '' to hash table
2020-01-22 16:23:11 0 [Note] C:\Program Files\MariaDB 10.5\bin\mysqld.exe: ready for connections.
Version: '10.5.0-MariaDB' socket: '' port: 3333 mariadb.org binary distribution

XAMPP MySQL shutdown unexpectedly - no error in logs

XAMPP was working correctly earlier this morning, but after doing some Wordpress plugin updates and resyncing with Github and Pantheon, MySQL now will start, run for a few seconds, and then shut down. When looking at mysql_error.log, I see this:
InnoDB: using atomic writes.
2019-10-09 12:41:23 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2019-10-09 12:41:23 0 [Note] InnoDB: Uses event mutexes
2019-10-09 12:41:23 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2019-10-09 12:41:23 0 [Note] InnoDB: Number of pools: 1
2019-10-09 12:41:23 0 [Note] InnoDB: Using SSE2 crc32 instructions
2019-10-09 12:41:23 0 [Note] InnoDB: Initializing buffer pool, total size = 16M, instances = 1, chunk size = 16M
2019-10-09 12:41:23 0 [Note] InnoDB: Completed initialization of buffer pool
2019-10-09 12:41:23 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
2019-10-09 12:41:23 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2019-10-09 12:41:23 0 [Note] InnoDB: Setting file 'C:\xampp\mysql\data\ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2019-10-09 12:41:23 0 [Note] InnoDB: File 'C:\xampp\mysql\data\ibtmp1' size is now 12 MB.
2019-10-09 12:41:23 0 [Note] InnoDB: Waiting for purge to start
2019-10-09 12:41:23 0 [Note] InnoDB: 10.4.6 started; log sequence number 113917; transaction id 9
2019-10-09 12:41:23 0 [Note] InnoDB: Loading buffer pool(s) from C:\xampp\mysql\data\ib_buffer_pool
2019-10-09 12:41:23 0 [Note] Plugin 'FEEDBACK' is disabled.
2019-10-09 12:41:23 0 [Note] InnoDB: Buffer pool(s) load completed at 191009 12:41:23
2019-10-09 12:41:23 0 [Note] Server socket created on IP: '::'.
I don't see any obvious errors.
Any thoughts on how I could either get more detailed error information or how to fix this? Thanks!
UPDATE
In the Windows Event Viewer, I was able to get the following error description:
Slave I/O: Fatal error: Invalid (empty) username when attempting to connect to the master server. Connection attempt terminated. Internal MariaDB error code: 1593
Copy this files:
aria_log.00000001
aria_log_control
ib_buffer_pool
ib_logfile0
ib_logfile1
ibdata1
ibtmp1
multi-master.info
from: xampp\mysql\backup
to: xampp\mysql\data