XAMPP Control Panel -Error: MySQL shutdown unexpectedly - mysql

I am unable to run MYSQL server in XAMPP control panel, when I click on start button then following error occurs given below:
4:48:58 PM [mysql] Attempting to start MySQL app...
4:48:58 PM [mysql] Status change detected: running
4:49:00 PM [mysql] Status change detected: stopped
4:49:00 PM [mysql] Error: MySQL shutdown unexpectedly.
4:49:00 PM [mysql] This may be due to a blocked port, missing dependencies,
4:49:00 PM [mysql] improper privileges, a crash, or a shutdown by another method.
4:49:00 PM [mysql] Press the Logs button to view error logs and check
4:49:00 PM [mysql] the Windows Event Viewer for more clues
4:49:00 PM [mysql] If you need more help, copy and post this
4:49:00 PM [mysql] entire log window on the forums
4:49:25 PM [main] Executing "c:\xampp\mysql\data"
here is the mysql error log:
InnoDB: using atomic writes.
2020-09-22 16:47:41 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2020-09-22 16:47:41 0 [Note] InnoDB: Uses event mutexes
2020-09-22 16:47:41 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2020-09-22 16:47:41 0 [Note] InnoDB: Number of pools: 1
2020-09-22 16:47:41 0 [Note] InnoDB: Using SSE2 crc32 instructions
2020-09-22 16:47:41 0 [Note] InnoDB: Initializing buffer pool, total size = 16M, instances = 1, chunk size = 16M
2020-09-22 16:47:41 0 [Note] InnoDB: Completed initialization of buffer pool
2020-09-22 16:47:41 0 [Note] InnoDB: Starting crash recovery from checkpoint LSN=300288
2020-09-22 16:47:41 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
2020-09-22 16:47:41 0 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1"
2020-09-22 16:47:41 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2020-09-22 16:47:41 0 [Note] InnoDB: Setting file 'C:\xampp\mysql\data\ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2020-09-22 16:47:41 0 [Note] InnoDB: File 'C:\xampp\mysql\data\ibtmp1' size is now 12 MB.
2020-09-22 16:47:41 0 [Note] InnoDB: Waiting for purge to start
2020-09-22 16:47:41 0 [Note] InnoDB: 10.4.14 started; log sequence number 300297; transaction id 171
2020-09-22 16:47:41 0 [Note] InnoDB: Loading buffer pool(s) from C:\xampp\mysql\data\ib_buffer_pool
2020-09-22 16:47:41 0 [Note] Plugin 'FEEDBACK' is disabled.
2020-09-22 16:47:42 0 [Note] Server socket created on IP: '::'.
2020-09-22 16:47:42 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.
2020-09-22 16:47:42 0 [ERROR] Do you already have another mysqld server running on port: 3306 ?
2020-09-22 16:47:42 0 [ERROR] Aborting
InnoDB: using atomic writes.
2020-09-22 16:48:58 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2020-09-22 16:48:58 0 [Note] InnoDB: Uses event mutexes
2020-09-22 16:48:58 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2020-09-22 16:48:58 0 [Note] InnoDB: Number of pools: 1
2020-09-22 16:48:58 0 [Note] InnoDB: Using SSE2 crc32 instructions
2020-09-22 16:48:58 0 [Note] InnoDB: Initializing buffer pool, total size = 16M, instances = 1, chunk size = 16M
2020-09-22 16:48:58 0 [Note] InnoDB: Completed initialization of buffer pool
2020-09-22 16:48:58 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
2020-09-22 16:48:58 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2020-09-22 16:48:58 0 [Note] InnoDB: Setting file 'C:\xampp\mysql\data\ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2020-09-22 16:48:58 0 [Note] InnoDB: File 'C:\xampp\mysql\data\ibtmp1' size is now 12 MB.
2020-09-22 16:48:58 0 [Note] InnoDB: Waiting for purge to start
2020-09-22 16:48:58 0 [Note] InnoDB: 10.4.14 started; log sequence number 300306; transaction id 171
2020-09-22 16:48:58 0 [Note] InnoDB: Loading buffer pool(s) from C:\xampp\mysql\data\ib_buffer_pool
2020-09-22 16:48:58 0 [Note] Plugin 'FEEDBACK' is disabled.
2020-09-22 16:48:58 0 [Note] Server socket created on IP: '::'.
2020-09-22 16:48:58 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.
2020-09-22 16:48:58 0 [ERROR] Do you already have another mysqld server running on port: 3306 ?
2020-09-22 16:48:58 0 [ERROR] Aborting
Please help me solve this error as soon as possible as I want to use phpmyadmin in XAMPP to get started with my project,
Thank you.

2020-09-22 16:48:58 0 [ERROR] Do you already have another mysqld server running on port: 3306 ?
2020-09-22 16:48:58 0 [ERROR] Aborting
It seems that port 3306 (default) is already in use. You could work around issue by changing to another port.
You open my.ini
# The following options will be passed to all MySQL clients
[client]
# password = your_password
port = 3306
socket = "xampp / mysql / mysql.sock"
change 3306 --> another port
# The MySQL server
[mysqld]
port= 3306
socket = "xampp / mysql / mysql.sock"
change 3306 --> another port
Then, you restart mysql service.

I got my problem solved the error was port 3360 is not available as mysql server installed on my system was using the same port,so i went to services in search bar and then once opened went to mysql clicked on it then clicked on stop service. Then restart xampp and start mysql then it is running well in windows 10 you need to check with other OS.

I admit #soumya Pillai answer!
I've stopped MySQL service first.
Then started MySQL in XAMPP. Now it's started to running!.
I'm using XAMPP V3.3.0 in windows 10 machine!

Related

XAMPP Error Launching mySql last log "Server socket created on IP: '::'."

mysql wont start when with this error log :
16:52:59 [mysql] Attempting to start MySQL app...
16:52:59 [mysql] Status change detected: running
16:53:01 [mysql] Status change detected: stopped
16:53:01 [mysql] Error: MySQL shutdown unexpectedly.
16:53:01 [mysql] This may be due to a blocked port, missing dependencies,
16:53:01 [mysql] improper privileges, a crash, or a shutdown by another method.
16:53:01 [mysql] Press the Logs button to view error logs and check
16:53:01 [mysql] the Windows Event Viewer for more clues
16:53:01 [mysql] If you need more help, copy and post this
16:53:01 [mysql] entire log window on the forums
more over, this log showed belom brom MySQL log :
2022-10-25 16:52:59 0 [Note] Plugin 'FEEDBACK' is disabled. // this is 2 prev launch sesion
2022-10-25 16:52:59 0 [Note] Server socket created on IP: '::'. // this is also prev launch sesion
2022-10-25 16:54:47 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2022-10-25 16:54:47 0 [Note] InnoDB: Uses event mutexes
2022-10-25 16:54:47 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2022-10-25 16:54:47 0 [Note] InnoDB: Number of pools: 1
2022-10-25 16:54:47 0 [Note] InnoDB: Using SSE2 crc32 instructions
2022-10-25 16:54:47 0 [Note] InnoDB: Initializing buffer pool, total size = 16M, instances = 1, chunk size = 16M
2022-10-25 16:54:47 0 [Note] InnoDB: Completed initialization of buffer pool
2022-10-25 16:54:47 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
2022-10-25 16:54:47 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2022-10-25 16:54:47 0 [Note] InnoDB: Setting file 'C:\Main\Aplikasi\XAMPP\mysql\data\ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2022-10-25 16:54:47 0 [Note] InnoDB: File 'C:\Main\Aplikasi\XAMPP\mysql\data\ibtmp1' size is now 12 MB.
2022-10-25 16:54:47 0 [Note] InnoDB: Waiting for purge to start
2022-10-25 16:54:47 0 [Note] InnoDB: 10.4.24 started; log sequence number 561855; transaction id 973
2022-10-25 16:54:47 0 [Note] InnoDB: Loading buffer pool(s) from C:\Main\Aplikasi\XAMPP\mysql\data\ib_buffer_pool
2022-10-25 16:54:47 0 [Note] Plugin 'FEEDBACK' is disabled.
2022-10-25 16:54:47 0 [Note] Server socket created on IP: '::'. // end of log
last time i used it just for view testing my project (No create, update, or delete on my database. only read my database)
I've been trying to change port number, changing mysql/data to mysql/old_data, running in admin mode.
there's no further explanation after server socket created IP ::
I hope it is not too late, today I got the same issue with my Xampp server
and I find a solution it might work for you.
source: MySQL shutdown unexpectedly on XAMPP - Server socket created on IP: '::'

XAMPP - MYSQL Shutdown Unexpectedly 2

I tried to launch MySql on xampp and this error appeared
16:11:30 [mysql] Attempting to start MySQL app...
16:11:30 [mysql] Status change detected: running
16:11:33 [mysql] Status change detected: stopped
16:11:33 [mysql] Error: MySQL shutdown unexpectedly.
16:11:33 [mysql] This may be due to a blocked port, missing dependencies,
16:11:33 [mysql] improper privileges, a crash, or a shutdown by another method.
16:11:33 [mysql] Press the Logs button to view error logs and check
16:11:33 [mysql] the Windows Event Viewer for more clues
16:11:33 [mysql] If you need more help, copy and post this
16:11:33 [mysql] entire log window on the forums
2021-05-31 16:11:30 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2021-05-31 16:11:30 0 [Note] InnoDB: Uses event mutexes
2021-05-31 16:11:30 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2021-05-31 16:11:30 0 [Note] InnoDB: Number of pools: 1
2021-05-31 16:11:30 0 [Note] InnoDB: Using SSE2 crc32 instructions
2021-05-31 16:11:30 0 [Note] InnoDB: Initializing buffer pool, total size = 16M, instances = 1, chunk size = 16M
2021-05-31 16:11:30 0 [Note] InnoDB: Completed initialization of buffer pool
2021-05-31 16:11:30 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
2021-05-31 16:11:30 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2021-05-31 16:11:30 0 [Note] InnoDB: Setting file 'C:\xampp\mysql\data\ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2021-05-31 16:11:30 0 [Note] InnoDB: File 'C:\xampp\mysql\data\ibtmp1' size is now 12 MB.
2021-05-31 16:11:30 0 [Note] InnoDB: Waiting for purge to start
2021-05-31 16:11:30 0 [Note] InnoDB: 10.4.13 started; log sequence number 2590483; transaction id 4333
2021-05-31 16:11:30 0 [Note] InnoDB: Loading buffer pool(s) from C:\xampp\mysql\data\ib_buffer_pool
2021-05-31 16:11:30 0 [Note] Plugin 'FEEDBACK' is disabled.
2021-05-31 16:11:30 0 [Note] Server socket created on IP: '::'.
It was completely fine until now.
What is this error and how do i fix it?

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.

When I start MySQL it shuts down instantly

My problem
When I try to start MySQL it automaticly shuts down. It always worked fine until I downloaded sql server 2008r2. I don't know if it has something to do with it because when I run. C:\> netstat -a -b and ctrl + f the port I am using for MySQL it is not listed.
When I change the MySQL port to something else (a random number) nothing happends I am still getting the same errros.
If someone is fammiliar with this headache problem I would really appreciate the help.
Thank you in advance.
Xampp error
09:15:00 [mysql] Attempting to start MySQL app...
09:15:01 [mysql] Status change detected: running
09:15:02 [mysql] Status change detected: stopped
09:15:02 [mysql] Error: MySQL shutdown unexpectedly.
09:15:02 [mysql] This may be due to a blocked port, missing
dependencies,
09:15:02 [mysql] improper privileges, a crash, or a shutdown by
another method.
09:15:02 [mysql] Press the Logs button to view error logs and check
09:15:02 [mysql] the Windows Event Viewer for more clues
09:15:02 [mysql] If you need more help, copy and post this
09:15:02 [mysql] entire log window on the forums
Mysql_error.log
InnoDB: using atomic writes.
2020-05-27 9:15:00 0 [Note] InnoDB: Mutexes and rw_locks use Windows
interlocked functions
2020-05-27 9:15:00 0 [Note] InnoDB: Uses event mutexes
2020-05-27 9:15:00 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2020-05-27 9:15:00 0 [Note] InnoDB: Number of pools: 1
2020-05-27 9:15:00 0 [Note] InnoDB: Using SSE2 crc32 instructions
2020-05-27 9:15:00 0 [Note] InnoDB: Initializing buffer pool, total
size = 16M, instances = 1, chunk size = 16M
2020-05-27 9:15:00 0 [Note] InnoDB: Completed initialization of
buffer pool
2020-05-27 9:15:00 0 [Note] InnoDB: 128 out of 128 rollback segments
are active.
2020-05-27 9:15:00 0 [Note] InnoDB: Creating shared tablespace for
temporary tables
2020-05-27 9:15:00 0 [Note] InnoDB: Setting file
'C:\xampp\mysql\data\ibtmp1' size to 12 MB. Physically writing the
file full; Please wait ...
2020-05-27 9:15:00 0 [Note] InnoDB: File 'C:\xampp\mysql\data\ibtmp1'
size is now 12 MB.
2020-05-27 9:15:00 0 [Note] InnoDB: Waiting for purge to start
2020-05-27 9:15:00 0 [Note] InnoDB: 10.4.11 started; log sequence
number 47064; transaction id 9
2020-05-27 9:15:00 0 [Note] InnoDB: Loading buffer pool(s) from
C:\xampp\mysql\data\ib_buffer_pool
2020-05-27 9:15:00 0 [Note] Plugin 'FEEDBACK' is disabled.
2020-05-27 9:15:00 0 [Note] InnoDB: Buffer pool(s) load completed at
200527 9:15:00
2020-05-27 9:15:00 0 [ERROR] Could not open mysql.plugin table. Some
plugins may be not loaded
2020-05-27 9:15:00 0 [ERROR] c:\xampp\mysql\bin\mysqld.exe: unknown
variable 'innodb_additional_mem_pool_size=2M'
2020-05-27 9:15:00 0 [ERROR] Aborting

MySQL on XAMPP unable to run

I started using XAMPP about two days ago and out of the blue it stopped working I tried to check the error I was having that said:
Error: MySQL shutdown unexpectedly.
10:56:40 [mysql] This may be due to a blocked port, missing dependencies,
10:56:40 [mysql] improper privileges, a crash, or a shutdown by another method.
10:56:40 [mysql] Press the Logs button to view error logs and check
10:56:40 [mysql] the Windows Event Viewer for more clues
10:56:40 [mysql] If you need more help, copy and post this
10:56:40 [mysql] entire log window on the forums
But all the fixed I found and the ones I thought might possible didn't solve the problem.
I checked the log error but didn't know what exactly is wrong
the error log is as follow:
2019-07-02 10:56:32 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2019-07-02 10:56:32 0 [Note] InnoDB: Uses event mutexes
2019-07-02 10:56:32 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2019-07-02 10:56:32 0 [Note] InnoDB: Number of pools: 1
2019-07-02 10:56:32 0 [Note] InnoDB: Using SSE2 crc32 instructions
2019-07-02 10:56:32 0 [Note] InnoDB: Initializing buffer pool, total size = 16M, instances = 1, chunk size = 16M
2019-07-02 10:56:32 0 [Note] InnoDB: Completed initialization of buffer pool
2019-07-02 10:56:32 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
2019-07-02 10:56:32 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2019-07-02 10:56:32 0 [Note] InnoDB: Setting file 'C:\xampp\mysql\data\ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2019-07-02 10:56:32 0 [Note] InnoDB: File 'C:\xampp\mysql\data\ibtmp1' size is now 12 MB.
2019-07-02 10:56:32 0 [Note] InnoDB: Waiting for purge to start
2019-07-02 10:56:32 0 [Note] InnoDB: 10.3.16 started; log sequence number 1824338; transaction id 303
2019-07-02 10:56:32 0 [Note] InnoDB: Loading buffer pool(s) from C:\xampp\mysql\data\ib_buffer_pool
2019-07-02 10:56:32 0 [Note] Plugin 'FEEDBACK' is disabled.
2019-07-02 10:56:32 0 [Note] Server socket created on IP: '::'.
Can someone please help?
Check if there is another app that is using the port 3306. If so, you have to kill the process and start again the mysql service.