MySQL session won't start on XAMPP - php

My MySQL won't start and it shows like this:
12:50:50 [mysql] Error: MySQL shutdown unexpectedly.
12:50:50 [mysql] This may be due to a blocked port, missing dependencies,
12:50:50 [mysql] improper privileges, a crash, or a shutdown by another method.
12:50:50 [mysql] Press the Logs button to view error logs and check
12:50:50 [mysql] the Windows Event Viewer for more clues
12:50:50 [mysql] If you need more help, copy and post this
12:50:50 [mysql] entire log window on the forums
and then this is the error logs:
InnoDB: using atomic writes.
2020-03-05 12:50:47 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2020-03-05 12:50:47 0 [Note] InnoDB: Uses event mutexes
2020-03-05 12:50:47 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2020-03-05 12:50:47 0 [Note] InnoDB: Number of pools: 1
2020-03-05 12:50:47 0 [Note] InnoDB: Using SSE2 crc32 instructions
2020-03-05 12:50:47 0 [Note] InnoDB: Initializing buffer pool, total size = 16M, instances = 1, chunk size = 16M
2020-03-05 12:50:47 0 [Note] InnoDB: Completed initialization of buffer pool
2020-03-05 12:50:48 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
2020-03-05 12:50:48 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2020-03-05 12:50:48 0 [Note] InnoDB: Setting file 'C:\xampp\mysql\data\ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2020-03-05 12:50:48 0 [Note] InnoDB: File 'C:\xampp\mysql\data\ibtmp1' size is now 12 MB.
2020-03-05 12:50:48 0 [Note] InnoDB: Waiting for purge to start
2020-03-05 12:50:48 0 [Note] InnoDB: 10.4.11 started; log sequence number 300306; transaction id 171
2020-03-05 12:50:48 0 [Note] InnoDB: Loading buffer pool(s) from C:\xampp\mysql\data\ib_buffer_pool
2020-03-05 12:50:48 0 [Note] Plugin 'FEEDBACK' is disabled.
2020-03-05 12:50:48 0 [Note] InnoDB: Buffer pool(s) load completed at 200305 12:50:48
2020-03-05 12:50:48 0 [Note] Server socket created on IP: '::'.
2020-03-05 12:50:48 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-03-05 12:50:48 0 [ERROR] Do you already have another mysqld server running on port: 3306 ?
2020-03-05 12:50:48 0 [ERROR] Aborting
What is the cause of these errors and how can I rectify them?

for this issue go to:
c:\xampp\mysql\data\
and delete ALL FILES except DIRECTORIES.
just in case keep my.ini, if you got error again delete my.ini too.

Very Very Easy
Open xampp > mysql > backup copy everything from backup folder and paste everything in data folder copied from backup folder
Restart xampp and start all.Thanks.

Related

Mysql is shuts down unexpectedly on Xampp

this is my issue please help me to solve this problem ...
6:25:59 AM [mysql] Error: MySQL shutdown unexpectedly.
6:25:59 AM [mysql] This may be due to a blocked port, missing dependencies,
6:25:59 AM [mysql] improper privileges, a crash, or a shutdown by another method.
6:25:59 AM [mysql] Press the Logs button to view error logs and check
6:25:59 AM [mysql] the Windows Event Viewer for more clues
6:25:59 AM [mysql] If you need more help, copy and post this
6:25:59 AM [mysql] entire log window on the forums
in the error log file is show me this .....
InnoDB: using atomic writes.
2021-05-03 6:25:51 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2021-05-03 6:25:51 0 [Note] InnoDB: Uses event mutexes
2021-05-03 6:25:51 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2021-05-03 6:25:51 0 [Note] InnoDB: Number of pools: 1
2021-05-03 6:25:51 0 [Note] InnoDB: Using SSE2 crc32 instructions
2021-05-03 6:25:51 0 [Note] InnoDB: Initializing buffer pool, total size = 16M, instances = 1, chunk
size = 16M
2021-05-03 6:25:51 0 [Note] InnoDB: Completed initialization of buffer pool
2021-05-03 6:25:51 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
2021-05-03 6:25:51 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2021-05-03 6:25:51 0 [Note] InnoDB: Setting file 'C:\xamppnew\mysql\data\ibtmp1' size to 12 MB.
Physically writing the file full; Please wait ...
2021-05-03 6:25:51 0 [Note] InnoDB: File 'C:\xamppnew\mysql\data\ibtmp1' size is now 12 MB.
2021-05-03 6:25:51 0 [Note] InnoDB: Waiting for purge to start
2021-05-03 6:25:51 0 [Note] InnoDB: 10.4.16 started; log sequence number 47090; transaction id 8
2021-05-03 6:25:51 0 [Note] InnoDB: Loading buffer pool(s) from
C:\xamppnew\mysql\data\ib_buffer_pool
2021-05-03 6:25:51 0 [Note] Plugin 'FEEDBACK' is disabled.
2021-05-03 6:25:51 0 [Note] InnoDB: Buffer pool(s) load completed at 210503 6:25:51
2021-05-03 6:25:51 0 [Note] Server socket created on IP: '::'.
I believe there is a duplicate for this question.
Please refer to the link below as there is answer available for it.
MySql shuts down unexpectedly

How can I debug a MySQL error "MySQL shutdown unexpectedly" in XAMPP

I am trying to run the MySQL server through XAMPP for connection with php and every time, I try to do so, this error is being shown. I have tried everything from reinstalling to changing port address but this still didn't work. How can I solve this error?
Error
Error: MySQL shutdown unexpectedly.
12:15:26 [mysql] This may be due to a blocked port, missing dependencies,
12:15:26 [mysql] improper privileges, a crash, or a shutdown by another method.
12:15:26 [mysql] Press the Logs button to view error logs and check
12:15:26 [mysql] the Windows Event Viewer for more clues
12:15:26 [mysql] If you need more help, copy and post this
12:15:26 [mysql] entire log window on the forums\
Error log :
2020-06-06 12:13:59 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
2020-06-06 12:13:59 0 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1"
2020-06-06 12:13:59 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2020-06-06 12:13:59 0 [Note] InnoDB: Setting file 'C:\XamppReintalled\mysql\data\ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2020-06-06 12:13:59 0 [Note] InnoDB: File 'C:\XamppReintalled\mysql\data\ibtmp1' size is now 12 MB.
2020-06-06 12:13:59 0 [Note] InnoDB: 10.3.15 started; log sequence number 1804856; transaction id 209
2020-06-06 12:13:59 0 [Note] InnoDB: Loading buffer pool(s) from C:\XamppReintalled\mysql\data\ib_buffer_pool
2020-06-06 12:13:59 0 [Note] InnoDB: Buffer pool(s) load completed at 200606 12:13:59
2020-06-06 12:13:59 0 [Note] Plugin 'FEEDBACK' is disabled.
2020-06-06 12:13:59 0 [Note] Server socket created on IP: '::'.
2020-06-06 12:13:59 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-06-06 12:13:59 0 [ERROR] Do you already have another mysqld server running on port: 3308 ?
2020-06-06 12:13:59 0 [ERROR] Aborting

My XAMPP server has stopped working in the middle of my project

My xampp server has stopped working in the middle of my project, I have no clue what has caused this or how to fix it. All help would be very appreciated im just a starter in the IT-world. Thank you!
enter code here
10:17:32 [mysql] Status change detected: stopped
10:17:32 [mysql] Error: MySQL shutdown unexpectedly.
10:17:32 [mysql] This may be due to a blocked port, missing dependencies,
10:17:32 [mysql] improper privileges, a crash, or a shutdown by another
method.
10:17:32 [mysql] Press the Logs button to view error logs and check
10:17:32 [mysql] the Windows Event Viewer for more clues
10:17:32 [mysql] If you need more help, copy and post this
10:17:32 [mysql] entire log window on the forums
This is the event viewer.
2020-04-27 11:32:21 0 [Note] InnoDB: Mutexes and rw_locks use Windows
interlocked functions
2020-04-27 11:32:21 0 [Note] InnoDB: Uses event mutexes
2020-04-27 11:32:21 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2020-04-27 11:32:21 0 [Note] InnoDB: Number of pools: 1
2020-04-27 11:32:21 0 [Note] InnoDB: Using SSE2 crc32 instructions
2020-04-27 11:32:21 0 [Note] InnoDB: Initializing buffer pool, total size =
16M, instances = 1, chunk size = 16M
2020-04-27 11:32:21 0 [Note] InnoDB: Completed initialization of buffer pool
2020-04-27 11:32:21 0 [Note] InnoDB: 128 out of 128 rollback segments are
active.
2020-04-27 11:32:21 0 [Note] InnoDB: Creating shared tablespace for temporary
tables
2020-04-27 11:32:21 0 [Note] InnoDB: Setting file
'C:\xampp\mysql\data\ibtmp1' size to 12 MB. Physically writing the file full;
Please wait ...
2020-04-27 11:32:21 0 [Note] InnoDB: File 'C:\xampp\mysql\data\ibtmp1' size
is now 12 MB.
2020-04-27 11:32:21 0 [Note] InnoDB: Waiting for purge to start
2020-04-27 11:32:21 0 [Note] InnoDB: 10.4.11 started; log sequence number
47082; transaction id 9
2020-04-27 11:32:21 0 [Note] InnoDB: Loading buffer pool(s) from
C:\xampp\mysql\data\ib_buffer_pool
2020-04-27 11:32:21 0 [Note] Plugin 'FEEDBACK' is disabled.
2020-04-27 11:32:21 0 [Note] InnoDB: Buffer pool(s) load completed at 200427
11:32:21
2020-04-27 11:32:21 0 [Note] Server socket created on IP: '::'.

MySql On XAMPP Shutdown unexpectedly

I just start mysql but there is some error. I have config my.cnf and descrease innodb_buffer_pool_size to 64 MB but nothing happend.
/*this showed in xampp*/
9:34:39 AM [mysql] Error: MySQL shutdown unexpectedly.
9:34:39 AM [mysql] This may be due to a blocked port, missing dependencies,
9:34:39 AM [mysql] improper privileges, a crash, or a shutdown by another method.
9:34:39 AM [mysql] Press the Logs button to view error logs and check
9:34:39 AM [mysql] the Windows Event Viewer for more clues
9:34:39 AM [mysql] If you need more help, copy and post this
9:34:39 AM [mysql] entire log window on the forums
then i see to the mysql error log. it shows.
/*this showed in error log*/
2016-05-19 00:34:02 3968 [Note] Plugin 'FEDERATED' is disabled.
2016-05-19 00:34:02 c4c InnoDB: Warning: Using innodb_additional_mem_pool_size is DEPRECATED. This option may be removed in future releases, together with the option innodb_use_sys_malloc and with the InnoDB's internal memory allocator.
2016-05-19 00:34:02 3968 [Note] InnoDB: Using atomics to ref count buffer pool pages
2016-05-19 00:34:02 3968 [Note] InnoDB: The InnoDB memory heap is disabled
2016-05-19 00:34:02 3968 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2016-05-19 00:34:02 3968 [Note] InnoDB: Memory barrier is not used
2016-05-19 00:34:02 3968 [Note] InnoDB: Compressed tables use zlib 1.2.3
2016-05-19 00:34:02 3968 [Note] InnoDB: Not using CPU crc32 instructions
2016-05-19 00:34:02 3968 [Note] InnoDB: Initializing buffer pool, size = 16.0M
2016-05-19 00:34:02 3968 [Note] InnoDB: Completed initialization of buffer pool
2016-05-19 00:34:02 3968 [Note] InnoDB: Highest supported file format is Barracuda.
2016-05-19 00:34:02 3968 [Note] InnoDB: 128 rollback segment(s) are active.
2016-05-19 00:34:02 3968 [Note] InnoDB: Waiting for purge to start
2016-05-19 00:34:02 3968 [Note] InnoDB: 5.6.24 started; log sequence number 1665234
2016-05-19 00:34:02 3968 [Note] Server hostname (bind-address): '*'; port: 3306
2016-05-19 00:34:02 3968 [Note] IPv6 is available.
2016-05-19 00:34:02 3968 [Note] - '::' resolves to '::';
2016-05-19 00:34:02 3968 [Note] Server socket created on IP: '::'.
2016-05-19 00:53:44 2936 [Note] Plugin 'FEDERATED' is disabled.
how should i fix it?

WAMP: Plugin 'FEDERATED' is disabled. #2002 mysql error

I am running 2 locally hosted wp sites for testing on my Win 7 pc. Unfortunately windows update did a update install and reboot last night while wamp was online.
Usually I can fix this myself, but I am having no luck. After about 6 hours of search for a resolution I turn to you wonderful people.
PROBLEM: Orange Icon.
PhpMyAdmin error #2002
Here is my error log:
2014-02-25 13:12:44 4420 [Note] Plugin 'FEDERATED' is disabled
2014-02-25 13:12:44 4420 [Note] InnoDB: The InnoDB memory heap is disabled
2014-02-25 13:12:44 4420 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2014-02-25 13:12:44 4420 [Note] InnoDB: Compressed tables use zlib 1.2.3
2014-02-25 13:12:44 4420 [Note] InnoDB: Not using CPU crc32 instructions
2014-02-25 13:12:44 4420 [Note] InnoDB: Initializing buffer pool, size = 128.0M
2014-02-25 13:12:44 4420 [Note] InnoDB: Completed initialization of buffer pool
2014-02-25 13:12:44 4420 [Note] InnoDB: Highest supported file format is Barracuda.
2014-02-25 13:12:44 4420 [Note] InnoDB: The log sequence numbers 12054850 and 12054850 in ibdata files do not match the log sequence number 12746597 in the ib_logfiles!
2014-02-25 13:12:44 4420 [Note] InnoDB: Database was not shutdown normally!
2014-02-25 13:12:44 4420 [Note] InnoDB: Starting crash recovery.
2014-02-25 13:12:44 4420 [Note] InnoDB: Reading tablespace information from the .ibd files...
2014-02-25 13:12:44 4420 [ERROR] InnoDB: Attempted to open a previously opened tablespace. Previous tablespace dlkei4n83xuf/rvcommentmeta uses space ID: 11 at filepath: .\dlkei4n83xuf\rvcommentmeta.ibd. Cannot open tablespace test/rvscommentmeta which uses space ID: 11 at filepath: .\test\rvscommentmeta.ibd
InnoDB: Error: could not open single-table tablespace file .\test\rvscommentmeta.ibd
InnoDB: We do not continue the crash recovery, because the table may become
InnoDB: corrupt if we cannot apply the log records in the InnoDB log to it.
InnoDB: To fix the problem and start mysqld:
InnoDB: 1) If there is a permission problem in the file and mysqld cannot
InnoDB: open the file, you should modify the permissions.
InnoDB: 2) If the table is not needed, or you can restore it from a backup,
InnoDB: then you can remove the .ibd file, and InnoDB will do a normal
InnoDB: crash recovery and ignore that table.
InnoDB: 3) If the file system or the disk is broken, and you cannot remove
InnoDB: the .ibd file, you can set innodb_force_recovery > 0 in my.cnf
InnoDB: and force InnoDB to continue crash recovery here.

Categories