XAMPP: MySQL shutdown unexpectedly - mysql

Whenever I run XAMPP as an administrator and start MySQL, it starts to run but shuts down unexpectedly after a few seconds. My question is what's making MySQL shutdown unexpectedly.
Here's what the log gives me:
2015-11-10 15:26:56 10fc 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.
2015-11-10 15:26:56 4348 [Note] InnoDB: Using mutexes to ref count
buffer pool pages
2015-11-10 15:26:56 4348 [Note] InnoDB: The InnoDB memory heap is
disabled
2015-11-10 15:26:56 4348 [Note] InnoDB: Mutexes and rw_locks use
Windows interlocked functions
2015-11-10 15:26:56 4348 [Note] InnoDB: Memory barrier is not used
2015-11-10 15:26:56 4348 [Note] InnoDB: Compressed tables use zlib
1.2.3
2015-11-10 15:26:56 4348 [Note] InnoDB: Not using CPU crc32
instructions
2015-11-10 15:26:56 4348 [Note] InnoDB: Initializing buffer pool, size
= 16.0M
2015-11-10 15:26:56 4348 [Note] InnoDB: Completed initialization of
buffer pool
2015-11-10 15:26:56 4348 [Note] InnoDB: Highest supported file format
is Barracuda.
2015-11-10 15:26:57 4348 [Note] InnoDB: 128 rollback segment(s) are
active.
2015-11-10 15:26:57 4348 [Note] InnoDB: Waiting for purge to start
2015-11-10 15:26:57 4348 [Note] InnoDB: Percona XtraDB
(http://www.percona.com) 5.6.26-74.0 started; log sequence number
1835027
2015-11-10 15:26:57 6140 [Note] InnoDB: Dumping buffer pool(s) not yet
started
2015-11-10 15:26:57 4348 [Note] Plugin 'FEEDBACK' is disabled.
2015-11-10 15:26:57 4348 [Note] Server socket created on IP: '::'.
2015-11-10 15:26:57 4348 [Note] Event Scheduler: Loaded 0 events
2015-11-10 15:26:57 4348 [Note] C:\xampp\mysql\bin\mysqld.exe: ready
for connections. Version: '10.1.8-MariaDB' socket: '' port: 3306
mariadb.org binary distribution
2015-11-10 15:27:11 5152 [Note] C:\xampp\mysql\bin\mysqld.exe: Normal
shutdown
2015-11-10 15:27:11 5152 [Note] Event Scheduler: Purging the queue. 0
events
2015-11-10 15:27:11 5732 [Note] InnoDB: FTS optimize thread exiting.
2015-11-10 15:27:11 5152 [Note] InnoDB: Starting shutdown...
2015-11-10 15:27:13 5152 [Note] InnoDB: Shutdown completed; log
sequence number 1835037
2015-11-10 15:27:13 5152 [Note] C:\xampp\mysql\bin\mysqld.exe:
Shutdown complete
Can anyone help me solve this issue?

Okay, I uninstalled XAMPP and reinstalled it to see what it suggested that I do. I had to download the Microsoft Visual C++ 2008 Redistributable package and manually install the file setup_xampp.bat. Once I did that, I opened the control panel, reinstalled the Apache and MySQL modules and successfully started them. Thank you all for trying to help.

What version of XAMPP are you using?
I'm not sure how to solve this.
Try this:
Have you tried rebooting?
Make sure your Apache server is running.
Make sure your ports are clear. (Old Skype can interfere with your ports!)
The only thing I find odd right now is that your logs have dates from 2015.

Suggestion for your my.cnf or my.ini [mysqld] section configuration
If this variable exists,
innodb_additional_mem_pool_size
add a leading # and space bar to the line for the line to be ignored at startup.
shutdown/restart your system and post a current error log, please as well as your complete my.cnf or my.ini for analysis.

Related

windows could not start the mysql service on local computer error 1067

I am facing the following error when I try to restart the MySQL service after an unexpected shutdown of the database server.
Windows could not start the MySQL service on Local Computer. Error
1067: The process terminated unexpectedly.
When I check the mysql_error.err log file under the XAMPP MySql data folder, the log details are
2015-11-10 15:26:56 10fc 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.
2015-11-10 15:26:56 4348 [Note] InnoDB: Using mutexes to ref count
buffer pool pages 2015-11-10 15:26:56 4348 [Note] InnoDB: The InnoDB
memory heap is disabled 2015-11-10 15:26:56 4348 [Note] InnoDB:
Mutexes and rw_locks use Windows interlocked functions 2015-11-10
15:26:56 4348 [Note] InnoDB: Memory barrier is not used 2015-11-10
15:26:56 4348 [Note] InnoDB: Compressed tables use zlib 1.2.3
2015-11-10 15:26:56 4348 [Note] InnoDB: Not using CPU crc32
instructions 2015-11-10 15:26:56 4348 [Note] InnoDB: Initializing
buffer pool, size = 16.0M 2015-11-10 15:26:56 4348 [Note] InnoDB:
Completed initialization of buffer pool 2015-11-10 15:26:56 4348
[Note] InnoDB: Highest supported file format is Barracuda. 2015-11-10
15:26:57 4348 [Note] InnoDB: 128 rollback segment(s) are active.
2015-11-10 15:26:57 4348 [Note] InnoDB: Waiting for purge to start
2015-11-10 15:26:57 4348 [Note] InnoDB: Percona XtraDB
(http://www.percona.com) 5.6.26-74.0 started; log sequence number
1835027 2015-11-10 15:26:57 6140 [Note] InnoDB: Dumping buffer pool(s)
not yet started 2015-11-10 15:26:57 4348 [Note] Plugin 'FEEDBACK' is
disabled. 2015-11-10 15:26:57 4348 [Note] Server socket created on IP:
'::'. 2015-11-10 15:26:57 4348 [Note] Event Scheduler: Loaded 0 events
2015-11-10 15:26:57 4348 [Note] C:\xampp\mysql\bin\mysqld.exe: ready
for connections. Version: '10.1.8-MariaDB' socket: '' port: 3306
mariadb.org binary distribution 2015-11-10 15:27:11 5152 [Note]
C:\xampp\mysql\bin\mysqld.exe: Normal shutdown
2015-11-10 15:27:11 5152 [Note] Event Scheduler: Purging the queue. 0
events 2015-11-10 15:27:11 5732 [Note] InnoDB: FTS optimize thread
exiting. 2015-11-10 15:27:11 5152 [Note] InnoDB: Starting shutdown...
2015-11-10 15:27:13 5152 [Note] InnoDB: Shutdown completed; log
sequence number 1835037 2015-11-10 15:27:13 5152 [Note]
C:\xampp\mysql\bin\mysqld.exe: Shutdown complete
Mysql Version 5.5

MySql crashes multiple times in wordpress

Multisite mysql getting crashed multiples times.
AH01071: Got error 'PHP message: PHP Warning: mysqli_query(): MySQL server has gone away in /home/xxxxxxxx/www/wp-includes/wp-db.php on line 1925
PHP message: PHP Warning: mysqli_query(): Error reading result set's header in /home/xxxxxxxx/www/wp-includes/wp-db.php on line 1925
PHP message: PHP Warning: mysqli_real_connect(): (HY000/2002): Connection refused in /home/xxxxxxxx/www/wp-includes/wp-db.php on line 1531'
I don't find anything suspicious in the log
2020-02-06 6:18:28 140544489782656 [Note] Using unique option prefix 'myisam-recover' is error-prone and can break in the future. Please use the full name 'myisam-recover-options' instead.
2020-02-06 6:18:28 140544489782656 [Note] InnoDB: Using mutexes to ref count buffer pool pages
2020-02-06 6:18:28 140544489782656 [Note] InnoDB: The InnoDB memory heap is disabled
2020-02-06 6:18:28 140544489782656 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2020-02-06 6:18:28 140544489782656 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
2020-02-06 6:18:28 140544489782656 [Note] InnoDB: Compressed tables use zlib 1.2.8
2020-02-06 6:18:28 140544489782656 [Note] InnoDB: Using Linux native AIO
2020-02-06 6:18:28 140544489782656 [Note] InnoDB: Using SSE crc32 instructions
2020-02-06 6:18:28 140544489782656 [Note] InnoDB: Initializing buffer pool, size = 2.9G
2020-02-06 6:18:28 140544489782656 [Note] InnoDB: Completed initialization of buffer pool
2020-02-06 6:18:28 140544489782656 [Note] InnoDB: Highest supported file format is Barracuda.
2020-02-06 6:18:28 140544489782656 [Note] InnoDB: Starting crash recovery from checkpoint LSN=795526465769
2020-02-06 6:18:28 140544489782656 [Note] InnoDB: Restoring possible half-written data pages from the doublewrite buffer...
2020-02-06 6:18:29 140544489782656 [Note] InnoDB: Starting final batch to recover 11 pages from redo log
InnoDB: Last MySQL binlog file position 0 67151849, file name ./mysql-bin.007416
2020-02-06 6:18:29 140544489782656 [Note] InnoDB: 128 rollback segment(s) are active.
2020-02-06 6:18:29 140544489782656 [Note] InnoDB: Waiting for purge to start
2020-02-06 6:18:29 140544489782656 [Note] InnoDB: Percona XtraDB (http://www.percona.com) 5.6.36-82.1 started; log sequence number 795526513845
2020-02-06 6:18:30 140539223574272 [Note] InnoDB: Dumping buffer pool(s) not yet started
2020-02-06 6:18:30 140544489782656 [Note] Plugin 'FEEDBACK' is disabled.
2020-02-06 6:18:30 140544489782656 [Note] Recovering after a crash using mysql-bin
2020-02-06 6:18:30 140544489782656 [Note] Starting crash recovery...
2020-02-06 6:18:30 140544489782656 [Note] Crash recovery finished.
2020-02-06 6:18:30 140544489782656 [Note] Server socket created on IP: '::'.
2020-02-06 6:18:30 140544489782656 [Note] /usr/sbin/mysqld: ready for connections.
Version: '10.1.26-MariaDB-0+deb9u1' socket: '/var/run/mysqld/mysqld.sock' port: 3306 Debian 9.1
Any help will be appreciated thanks.
How comes this happen? did change anything like prefix of wordpress, changes made to mysql or php version or any changes to server? may be those are the issues. Please provide the related information. Its due to corrupted database.
find wp-db.php and add this line $this->query("set session wait_timeout=300"); after $this->ready = true;
goto wp-config.php and add define('WP_ALLOW_REPAIR', true);
goto https://yourwebsite.com/wp-admin/maint/repair.php and click repair your database
or simply upload old backup

Error: MySQL shutdown unexpectedly after starting mysql service in xampp

Sorry for my English. I have some problem in starting mysql service on Xampp control panel. I follow the steps from this site https://gist.github.com/odan/c799417460470c3776ffa8adce57eece because I want use mysql as type server on phpmyadmin and not mariadb as a default.
I followed those steps once and it worked but because of some reasons I had to unistall Xampp and mysql server, and now I can't start it. I've already read some questions but none of them helped me at all.
The error that appear at console is:
20:12:28 [mysql] Error: MySQL shutdown unexpectedly.
20:12:28 [mysql] This may be due to a blocked port, missing dependencies,
20:12:28 [mysql] improper privileges, a crash, or a shutdown by another method.
20:12:28 [mysql] Press the Logs button to view error logs and check
20:12:28 [mysql] the Windows Event Viewer for more clues
20:12:28 [mysql] If you need more help, copy and post this
20:12:28 [mysql] entire log window on the forums
The error log is:
2015-11-10 15:26:56 10fc 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.
2015-11-10 15:26:56 4348 [Note] InnoDB: Using mutexes to ref count buffer pool pages
2015-11-10 15:26:56 4348 [Note] InnoDB: The InnoDB memory heap is disabled
2015-11-10 15:26:56 4348 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2015-11-10 15:26:56 4348 [Note] InnoDB: Memory barrier is not used
2015-11-10 15:26:56 4348 [Note] InnoDB: Compressed tables use zlib 1.2.3
2015-11-10 15:26:56 4348 [Note] InnoDB: Not using CPU crc32 instructions
2015-11-10 15:26:56 4348 [Note] InnoDB: Initializing buffer pool, size = 16.0M
2015-11-10 15:26:56 4348 [Note] InnoDB: Completed initialization of buffer pool
2015-11-10 15:26:56 4348 [Note] InnoDB: Highest supported file format is Barracuda.
2015-11-10 15:26:57 4348 [Note] InnoDB: 128 rollback segment(s) are active.
2015-11-10 15:26:57 4348 [Note] InnoDB: Waiting for purge to start
2015-11-10 15:26:57 4348 [Note] InnoDB: Percona XtraDB (http://www.percona.com) 5.6.26-74.0 started; log sequence number 1835027
2015-11-10 15:26:57 6140 [Note] InnoDB: Dumping buffer pool(s) not yet started
2015-11-10 15:26:57 4348 [Note] Plugin 'FEEDBACK' is disabled.
2015-11-10 15:26:57 4348 [Note] Server socket created on IP: '::'.
2015-11-10 15:26:57 4348 [Note] Event Scheduler: Loaded 0 events
2015-11-10 15:26:57 4348 [Note] C:\xampp\mysql\bin\mysqld.exe: ready for connections.
Version: '10.1.8-MariaDB' socket: '' port: 3306 mariadb.org binary distribution
2015-11-10 15:27:11 5152 [Note] C:\xampp\mysql\bin\mysqld.exe: Normal shutdown
2015-11-10 15:27:11 5152 [Note] Event Scheduler: Purging the queue. 0 events
2015-11-10 15:27:11 5732 [Note] InnoDB: FTS optimize thread exiting.
2015-11-10 15:27:11 5152 [Note] InnoDB: Starting shutdown...
2015-11-10 15:27:13 5152 [Note] InnoDB: Shutdown completed; log sequence number 1835037
2015-11-10 15:27:13 5152 [Note] C:\xampp\mysql\bin\mysqld.exe: Shutdown complete
2018-06-10 18:38:54 30a8 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.
2018-06-10 18:38:54 12456 [Note] InnoDB: Using mutexes to ref count buffer pool pages
2018-06-10 18:38:54 12456 [Note] InnoDB: The InnoDB memory heap is disabled
2018-06-10 18:38:54 12456 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2018-06-10 18:38:54 12456 [Note] InnoDB: Memory barrier is not used
2018-06-10 18:38:54 12456 [Note] InnoDB: Compressed tables use zlib 1.2.3
2018-06-10 18:38:54 12456 [Note] InnoDB: Using generic crc32 instructions
2018-06-10 18:38:54 12456 [Note] InnoDB: Initializing buffer pool, size = 16.0M
2018-06-10 18:38:54 12456 [Note] InnoDB: Completed initialization of buffer pool
2018-06-10 18:38:54 12456 [Note] InnoDB: Highest supported file format is Barracuda.
2018-06-10 18:38:56 12456 [Note] InnoDB: 128 rollback segment(s) are active.
2018-06-10 18:38:56 12456 [Note] InnoDB: Waiting for purge to start
2018-06-10 18:38:56 12456 [Note] InnoDB: Percona XtraDB (http://www.percona.com) 5.6.28-76.1 started; log sequence number 1835037
2018-06-10 18:38:56 12624 [Note] InnoDB: Dumping buffer pool(s) not yet started
2018-06-10 18:38:56 12456 [Note] Plugin 'FEEDBACK' is disabled.
2018-06-10 18:38:56 12456 [Note] Server socket created on IP: '::'.
2018-06-10 18:38:56 12456 [Note] c:\xampp\mysql\bin\mysqld.exe: ready for connections.
Version: '10.1.13-MariaDB' socket: '' port: 3306 mariadb.org binary distribution
2018-06-10 18:41:15 12648 [Note] c:\xampp\mysql\bin\mysqld.exe: Normal shutdown
2018-06-10 18:41:15 12648 [Note] Event Scheduler: Purging the queue. 0 events
2018-06-10 18:41:16 12632 [Note] InnoDB: FTS optimize thread exiting.
2018-06-10 18:41:16 12648 [Note] InnoDB: Starting shutdown...
2018-06-10 18:41:17 12648 [Note] InnoDB: Shutdown completed; log sequence number 1836500
2018-06-10 18:41:17 12648 [Note] c:\xampp\mysql\bin\mysqld.exe: Shutdown complete
2018-06-10 18:41:27 31fc 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.
2018-06-10 18:41:27 12796 [Note] InnoDB: Using mutexes to ref count buffer pool pages
2018-06-10 18:41:27 12796 [Note] InnoDB: The InnoDB memory heap is disabled
2018-06-10 18:41:27 12796 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2018-06-10 18:41:27 12796 [Note] InnoDB: Memory barrier is not used
2018-06-10 18:41:27 12796 [Note] InnoDB: Compressed tables use zlib 1.2.3
2018-06-10 18:41:27 12796 [Note] InnoDB: Using generic crc32 instructions
2018-06-10 18:41:27 12796 [Note] InnoDB: Initializing buffer pool, size = 16.0M
2018-06-10 18:41:27 12796 [Note] InnoDB: Completed initialization of buffer pool
2018-06-10 18:41:27 12796 [Note] InnoDB: Highest supported file format is Barracuda.
2018-06-10 18:41:28 12796 [Note] InnoDB: 128 rollback segment(s) are active.
2018-06-10 18:41:28 12796 [Note] InnoDB: Waiting for purge to start
2018-06-10 18:41:28 12796 [Note] InnoDB: Percona XtraDB (http://www.percona.com) 5.6.28-76.1 started; log sequence number 1836500
2018-06-10 18:41:28 14076 [Note] InnoDB: Dumping buffer pool(s) not yet started
2018-06-10 18:41:28 12796 [Note] Plugin 'FEEDBACK' is disabled.
2018-06-10 18:41:28 12796 [Note] Server socket created on IP: '::'.
2018-06-10 18:41:29 12796 [Note] c:\xampp\mysql\bin\mysqld.exe: ready for connections.
Version: '10.1.13-MariaDB' socket: '' port: 3306 mariadb.org binary distribution
2018-06-10 18:41:49 13408 [Note] c:\xampp\mysql\bin\mysqld.exe: Normal shutdown
2018-06-10 18:41:49 13408 [Note] Event Scheduler: Purging the queue. 0 events
2018-06-10 18:41:49 13876 [Note] InnoDB: FTS optimize thread exiting.
2018-06-10 18:41:49 13408 [Note] InnoDB: Starting shutdown...
2018-06-10 18:41:50 13408 [Note] InnoDB: Shutdown completed; log sequence number 1836510
2018-06-10 18:41:50 13408 [Note] c:\xampp\mysql\bin\mysqld.exe: Shutdown complete
I will be very grateful if someone can help me.

Using mySQL Server (Xampp) and SQL Server on the same machine

I have been using Xampp to test my website stuff and everything was working perfectly until I decided to install Microsoft SQL SERVER 2017 to do some data science stuff (school stuff).
Now I can still start Apache but I cant start MySQL. Here is the log :
2015-11-10 15:26:56 10fc 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.
2015-11-10 15:26:56 4348 [Note] InnoDB: Using mutexes to ref count buffer pool pages
2015-11-10 15:26:56 4348 [Note] InnoDB: The InnoDB memory heap is disabled
2015-11-10 15:26:56 4348 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2015-11-10 15:26:56 4348 [Note] InnoDB: Memory barrier is not used
2015-11-10 15:26:56 4348 [Note] InnoDB: Compressed tables use zlib 1.2.3
2015-11-10 15:26:56 4348 [Note] InnoDB: Not using CPU crc32 instructions
2015-11-10 15:26:56 4348 [Note] InnoDB: Initializing buffer pool, size = 16.0M
2015-11-10 15:26:56 4348 [Note] InnoDB: Completed initialization of buffer pool
2015-11-10 15:26:56 4348 [Note] InnoDB: Highest supported file format is Barracuda.
2015-11-10 15:26:57 4348 [Note] InnoDB: 128 rollback segment(s) are active.
2015-11-10 15:26:57 4348 [Note] InnoDB: Waiting for purge to start
2015-11-10 15:26:57 4348 [Note] InnoDB: Percona XtraDB (http://www.percona.com) 5.6.26-74.0 started; log sequence number 1835027
2015-11-10 15:26:57 6140 [Note] InnoDB: Dumping buffer pool(s) not yet started
2015-11-10 15:26:57 4348 [Note] Plugin 'FEEDBACK' is disabled.
2015-11-10 15:26:57 4348 [Note] Server socket created on IP: '::'.
2015-11-10 15:26:57 4348 [Note] Event Scheduler: Loaded 0 events
2015-11-10 15:26:57 4348 [Note] C:\xampp\mysql\bin\mysqld.exe: ready for connections.
Version: '10.1.8-MariaDB' socket: '' port: 3306 mariadb.org binary distribution
2015-11-10 15:27:11 5152 [Note] C:\xampp\mysql\bin\mysqld.exe: Normal shutdown
2015-11-10 15:27:11 5152 [Note] Event Scheduler: Purging the queue. 0 events
2015-11-10 15:27:11 5732 [Note] InnoDB: FTS optimize thread exiting.
2015-11-10 15:27:11 5152 [Note] InnoDB: Starting shutdown...
2015-11-10 15:27:13 5152 [Note] InnoDB: Shutdown completed; log sequence number 1835037
2015-11-10 15:27:13 5152 [Note] C:\xampp\mysql\bin\mysqld.exe: Shutdown complete
2017-11-17 13:40:05 33f8 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.
2017-11-17 13:40:05 13304 [Note] InnoDB: innodb_empty_free_list_algorithm has been changed to legacy because of small buffer pool size. In order to use backoff, increase buffer pool at least up to 20MB.
2017-11-17 13:40:05 13304 [Note] InnoDB: Using mutexes to ref count buffer pool pages
2017-11-17 13:40:05 13304 [Note] InnoDB: The InnoDB memory heap is disabled
2017-11-17 13:40:05 13304 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2017-11-17 13:40:05 13304 [Note] InnoDB: _mm_lfence() and _mm_sfence() are used for memory barrier
2017-11-17 13:40:05 13304 [Note] InnoDB: Compressed tables use zlib 1.2.3
2017-11-17 13:40:05 13304 [Note] InnoDB: Using generic crc32 instructions
2017-11-17 13:40:05 13304 [Note] InnoDB: Initializing buffer pool, size = 16.0M
2017-11-17 13:40:05 13304 [Note] InnoDB: Completed initialization of buffer pool
2017-11-17 13:40:05 13304 [Note] InnoDB: Highest supported file format is Barracuda.
2017-11-17 13:40:06 13304 [Note] InnoDB: 128 rollback segment(s) are active.
2017-11-17 13:40:06 13304 [Note] InnoDB: Waiting for purge to start
2017-11-17 13:40:06 13304 [Note] InnoDB: Percona XtraDB (http://www.percona.com) 5.6.36-82.2 started; log sequence number 1835037
2017-11-17 13:40:06 13284 [Note] InnoDB: Dumping buffer pool(s) not yet started
2017-11-17 13:40:06 13304 [Note] Plugin 'FEEDBACK' is disabled.
2017-11-17 13:40:06 13304 [Note] Server socket created on IP: '::'.
2017-11-17 13:40:06 13304 [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.
2017-11-17 13:40:06 13304 [ERROR] Do you already have another mysqld server running on port: 3306 ?
2017-11-17 13:40:06 13304 [ERROR] Aborting
I tried shutting down the SQL Server using SQL Server Management but I still can't connect MySQL.
You can change port of sql server or mysql server and dont forget to specify the port while accessing it.
Since Microsoft SQL Server and MySQL/MariaDB/Percona use different ports (and it doesn't sound like you've changed from the defaults), I doubt this is related to you installing SQL Server. SQL Server uses port 1433 and MySQL port 3306.
As for what is using that port, https://stackoverflow.com/a/48199/2385479 helps us. There is a suggestion for the TCPView Sysinternals application or the alternate suggestion of using netstat (such as C:\> netstat -a -b -n) which should give you some idea of what's using port 3306.
It seems to me you probably have another MySQL server installed which is conflicting with the port XAMPP is trying to use.
As in the log, when you installed the SQL Server it "reserverd" the same port that your MySQL was using
2017-11-17 13:40:06 13304 [ERROR] Do you already have another mysqld server running on port: 3306 ?
You can change the MySql port in the my.ini file, which can be acessed by the Xampp Control Panel, under "config".
Or, you can change de SQL Server Port, following this tutorial: https://www.syskit.com/blog/change-sql-server-port/

XAMPP Error: Apache Attempting to start Apache service... and error: MySQL shutdown unexpectedly

I looked through a lot of posts but I did not find the answer. So I decided to ask.
I have problem with my XAMPP.
When i am trying to launch apache nothing happens. Just Attempting to start Apache service...
When i am trying to launch MySQL i can see only this:
18:26:33 [mysql] Error: MySQL shutdown unexpectedly.
18:26:33 [mysql] This may be due to a blocked port, missing
dependencies,
18:26:33 [mysql] improper privileges, a crash, or a shutdown by
another method.
18:26:33 [mysql] Press the Logs button to view error logs and check
18:26:33 [mysql] the Windows Event Viewer for more clues
18:26:33 [mysql] If you need more help, copy and post this
18:26:33 [mysql] entire log window on the forums
log here:
2015-11-10 15:26:56 10fc 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.
2015-11-10 15:26:56 4348 [Note] InnoDB: Using mutexes to ref count
buffer pool pages 2015-11-10 15:26:56 4348 [Note] InnoDB: The InnoDB
memory heap is disabled 2015-11-10 15:26:56 4348 [Note] InnoDB:
Mutexes and rw_locks use Windows interlocked functions 2015-11-10
15:26:56 4348 [Note] InnoDB: Memory barrier is not used 2015-11-10
15:26:56 4348 [Note] InnoDB: Compressed tables use zlib 1.2.3
2015-11-10 15:26:56 4348 [Note] InnoDB: Not using CPU crc32
instructions 2015-11-10 15:26:56 4348 [Note] InnoDB: Initializing
buffer pool, size = 16.0M 2015-11-10 15:26:56 4348 [Note] InnoDB:
Completed initialization of buffer pool 2015-11-10 15:26:56 4348
[Note] InnoDB: Highest supported file format is Barracuda. 2015-11-10
15:26:57 4348 [Note] InnoDB: 128 rollback segment(s) are active.
2015-11-10 15:26:57 4348 [Note] InnoDB: Waiting for purge to start
2015-11-10 15:26:57 4348 [Note] InnoDB: Percona XtraDB
(http://www.percona.com) 5.6.26-74.0 started; log sequence number
1835027 2015-11-10 15:26:57 6140 [Note] InnoDB: Dumping buffer pool(s)
not yet started 2015-11-10 15:26:57 4348 [Note] Plugin 'FEEDBACK' is
disabled. 2015-11-10 15:26:57 4348 [Note] Server socket created on IP:
'::'. 2015-11-10 15:26:57 4348 [Note] Event Scheduler: Loaded 0 events
2015-11-10 15:26:57 4348 [Note] C:\xampp\mysql\bin\mysqld.exe: ready
for connections. Version: '10.1.8-MariaDB' socket: '' port: 3306
mariadb.org binary distribution 2015-11-10 15:27:11 5152 [Note]
C:\xampp\mysql\bin\mysqld.exe: Normal shutdown
2015-11-10 15:27:11 5152 [Note] Event Scheduler: Purging the queue. 0
events 2015-11-10 15:27:11 5732 [Note] InnoDB: FTS optimize thread
exiting. 2015-11-10 15:27:11 5152 [Note] InnoDB: Starting shutdown...
2015-11-10 15:27:13 5152 [Note] InnoDB: Shutdown completed; log
sequence number 1835037 2015-11-10 15:27:13 5152 [Note]
C:\xampp\mysql\bin\mysqld.exe: Shutdown complete
Change ServerName localhost:80 to ServerName localhost:8080, save file xampp\apache\conf\htpd.conf, reset Apache in xampp\xamp-control.exe and see does Apache is working.