MySQL not starting after PHPMyAdmin update on XAMPP - mysql

I'm a .NET developer trying to develop some PHP applications.
I installed XAMPP on Windows without problems, then started correctly Apache and MySQL.
After that, to update my PHPMyAdmin version, I followed the following article:
https://www.ostraining.com/blog/coding/update-phpmyadmin/
But after that my MySQL service is not starting anymore. If I open the log I read the following rows:
2016-12-21 23:22:26 21c4 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-12-21 23:22:26 8644 [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.
2016-12-21 23:22:26 8644 [Note] InnoDB: Using mutexes to ref count buffer pool pages
2016-12-21 23:22:26 8644 [Note] InnoDB: The InnoDB memory heap is disabled
2016-12-21 23:22:26 8644 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2016-12-21 23:22:26 8644 [Note] InnoDB: _mm_lfence() and _mm_sfence() are used for memory barrier
2016-12-21 23:22:26 8644 [Note] InnoDB: Compressed tables use zlib 1.2.3
2016-12-21 23:22:26 8644 [Note] InnoDB: Using generic crc32 instructions
2016-12-21 23:22:26 8644 [Note] InnoDB: Initializing buffer pool, size = 16.0M
2016-12-21 23:22:26 8644 [Note] InnoDB: Completed initialization of buffer pool
2016-12-21 23:22:26 8644 [Note] InnoDB: Highest supported file format is Barracuda.
2016-12-21 23:22:26 8644 [Note] InnoDB: The log sequence numbers 115186280 and 115186280 in ibdata files do not match the log sequence number 115186320 in the ib_logfiles!
2016-12-21 23:22:26 8644 [Note] InnoDB: Database was not shutdown normally!
2016-12-21 23:22:26 8644 [Note] InnoDB: Starting crash recovery.
2016-12-21 23:22:26 8644 [Note] InnoDB: Reading tablespace information from the .ibd files...
2016-12-21 23:22:26 8644 [Note] InnoDB: Restoring possible half-written data pages
2016-12-21 23:22:26 8644 [Note] InnoDB: from the doublewrite buffer...
2016-12-21 23:22:26 8644 [Note] InnoDB: 128 rollback segment(s) are active.
2016-12-21 23:22:26 8644 [Note] InnoDB: Waiting for purge to start
2016-12-21 23:22:26 8644 [Note] InnoDB: Percona XtraDB (http://www.percona.com) 5.6.32-79.0 started; log sequence number 115186320
2016-12-21 23:22:26 7700 [Note] InnoDB: Dumping buffer pool(s) not yet started
2016-12-21 23:22:26 8644 [Note] Plugin 'FEEDBACK' is disabled.
2016-12-21 23:22:26 8644 [Note] Server socket created on IP: '::'.
2016-12-21 23:22:26 8644 [ERROR] Fatal error: mysql.user table is damaged or in unsupported 3.20 format.
Anyone had the same problem?
Thanks in advance
EDIT
As someone pointed out, my error is the same as Making MySQL work with utf-8 in my.cnf configuration file
However the solution for such case is not working for me.
I tried to execute the mysql_upgrade but the command is obviously not working because the mysql service is stopped.
EDIT
I reinstalled XAMPP from scratch and, like previous times, it started correctly. However, after a couple restarts it is not starting anymore (always the same error).

Related

MySQL doesn't start in XAMPP (Error: MySQL shutdown unexpectedly...)

I've installed XAMPP on windows 10 but MySQL doesn't start. Why?
I have already tried with the task manager to see if another MySQL is running, but nothing. I tried to change the port but nothing. Please help.
image:
Here's the log:
2019-04-27 11:53:56 12060 [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.
2019-04-27 11:53:56 12060 [Note] InnoDB: Using mutexes to ref count buffer pool pages
2019-04-27 11:53:56 12060 [Note] InnoDB: The InnoDB memory heap is disabled
2019-04-27 11:53:56 12060 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2019-04-27 11:53:56 12060 [Note] InnoDB: _mm_lfence() and _mm_sfence() are used for memory barrier
2019-04-27 11:53:56 12060 [Note] InnoDB: Compressed tables use zlib 1.2.11
2019-04-27 11:53:56 12060 [Note] InnoDB: Using generic crc32 instructions
2019-04-27 11:53:56 12060 [Note] InnoDB: Initializing buffer pool, size = 16.0M
2019-04-27 11:53:56 12060 [Note] InnoDB: Completed initialization of buffer pool
2019-04-27 11:53:56 12060 [Note] InnoDB: Restoring page 0 of tablespace 0
2019-04-27 11:53:56 12060 [Warning] InnoDB: Doublewrite does not have page_no=0 of space: 0
2019-04-27 11:53:56 12060 [ERROR] InnoDB: space header page consists of zero bytes in data file \xampp\mysql\data\ibdata1
2019-04-27 11:53:56 12060 [ERROR] InnoDB: Could not open or create the system tablespace. If you tried to add new data files to the system tablespace, and it failed here, you should now edit innodb_data_file_path in my.cnf back to what it was, and remove the new ibdata files InnoDB created in this failed attempt. InnoDB only wrote those files full of zeros, but did not yet use them in any way. But be careful: do not remove old data files which contain your precious data!
2019-04-27 11:53:56 12060 [ERROR] Plugin 'InnoDB' init function returned error.
2019-04-27 11:53:56 12060 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
2019-04-27 11:53:56 12060 [Note] Plugin 'FEEDBACK' is disabled.
2019-04-27 11:53:56 12060 [ERROR] Unknown/unsupported storage engine: InnoDB
2019-04-27 11:53:56 12060 [ERROR] Aborting
Delete ib_logfile0 and ib_logfile1 from your MySQL directory and try again. That should help.

MySQL broken, databases deleted

I use MySQL 5.6. One time my server was suddenly stopped. MySQL is not starting now. In the folder where databases folders and files was stored - all folders was disappeared and only folder "WARNINGS" is there. When I try to start mysql I am getting the next log:
2018-09-21 03:02:31 0 [Note] c:\ospanel\modules\database\MySQL-5.6-x64\bin\mysqld.exe (mysqld 5.6.38) starting as process 4600 ...
2018-09-21 03:02:31 4600 [Note] Plugin 'FEDERATED' is disabled.
c:\ospanel\modules\database\MySQL-5.6-x64\bin\mysqld.exe: Table 'mysql.plugin' doesn't exist
2018-09-21 03:02:31 4600 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
2018-09-21 03:02:31 4600 [Note] InnoDB: Using atomics to ref count buffer pool pages
2018-09-21 03:02:31 4600 [Note] InnoDB: The InnoDB memory heap is disabled
2018-09-21 03:02:31 4600 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2018-09-21 03:02:31 4600 [Note] InnoDB: Memory barrier is not used
2018-09-21 03:02:31 4600 [Note] InnoDB: Compressed tables use zlib 1.2.3
2018-09-21 03:02:31 4600 [Note] InnoDB: Not using CPU crc32 instructions
2018-09-21 03:02:31 4600 [Note] InnoDB: Initializing buffer pool, size = 128.0M
2018-09-21 03:02:31 4600 [Note] InnoDB: Completed initialization of buffer pool
2018-09-21 03:02:31 4600 [Note] InnoDB: Highest supported file format is Barracuda.
2018-09-21 03:02:31 4600 [Note] InnoDB: The log sequence numbers 633063664 and 633063664 in ibdata files do not match the log sequence number 633063674 in the ib_logfiles!
2018-09-21 03:02:31 4600 [Note] InnoDB: Database was not shutdown normally!
2018-09-21 03:02:31 4600 [Note] InnoDB: Starting crash recovery.
2018-09-21 03:02:31 4600 [Note] InnoDB: Reading tablespace information from the .ibd files...
2018-09-21 03:02:31 4600 [Note] InnoDB: Restoring possible half-written data pages
2018-09-21 03:02:31 4600 [Note] InnoDB: from the doublewrite buffer...
2018-09-21 03:02:32 4600 [Note] InnoDB: 128 rollback segment(s) are active.
2018-09-21 03:02:32 4600 [Note] InnoDB: Waiting for purge to start
2018-09-21 03:02:32 4600 [Note] InnoDB: 5.6.38 started; log sequence number 633063674
2018-09-21 03:02:32 4600 [Note] Server hostname (bind-address): '0.0.0.0'; port: 3306
2018-09-21 03:02:32 4600 [Note] - '0.0.0.0' resolves to '0.0.0.0';
2018-09-21 03:02:32 4600 [Note] Server socket created on IP: '0.0.0.0'.
2018-09-21 03:02:32 4600 [ERROR] Fatal error: Can't open and lock privilege tables: Table 'mysql.user' doesn't exist
I have been trying mysql_upgrade, mysqld --initialize-insecure it doesn't help me.
My script feature is it running 16 threads 24 hours per day without stopping. So 16 connections are connected to DB everytime.
On mysql configuration I have set:
interactive_timeout=31536000
wait_timeout=2147483
And nothing more unusual.
I have this situation second time, when the DB was broken.
I want to know, why do I get this problem and how to solve it.

XAMPP: mariadb takes a long time to connect to the port (about 60 sec)

I open the XAMPP (7.0.23) Control Panel (v.3.2.2) and start Apache and MySql. Apache connects immediately, but MySql takes a long time to display the port (3306) on the panel and start the connection. I already changed the MySql port for others but it did not work. I've also reinstalled XAMPP twice without success.
Using Win 10.
Follow the log:
2017-09-22 8:59:11 9704 [Note] InnoDB: Using mutexes to ref count
buffer pool pages
2017-09-22 8:59:11 9704 [Note] InnoDB: The InnoDB memory heap is
disabled
2017-09-22 8:59:11 9704 [Note] InnoDB: Mutexes and rw_locks use
Windows interlocked functions
2017-09-22 8:59:11 9704 [Note] InnoDB: _mm_lfence() and _mm_sfence()
are used for memory barrier
2017-09-22 8:59:11 9704 [Note] InnoDB: Compressed tables use zlib
1.2.3
2017-09-22 8:59:11 9704 [Note] InnoDB: Using generic crc32
instructions
2017-09-22 8:59:11 9704 [Note] InnoDB: Initializing buffer pool, size
= 16.0M
2017-09-22 8:59:11 9704 [Note] InnoDB: Completed initialization of
buffer pool
2017-09-22 8:59:11 9704 [Note] InnoDB: Highest supported file format
is Barracuda.
2017-09-22 8:59:12 9704 [Note] InnoDB: The log sequence number
1835037 in ibdata file do not match the log sequence number 131851166
in the ib_logfiles!
2017-09-22 8:59:28 9704 [Note] InnoDB: Processed 1298 .ibd/.isl files
2017-09-22 8:59:35 9704 [Note] InnoDB: Restoring possible
half-written data pages from the doublewrite buffer...
2017-09-22 8:59:36 9704 [Note] InnoDB: Read redo log up to
LSN=131851264
2017-09-22 9:00:01 9704 [Note] InnoDB: 128 rollback segment(s) are
active.
2017-09-22 9:00:01 9704 [Note] InnoDB: Waiting for purge to start
2017-09-22 9:00:01 9704 [Note] InnoDB: Percona XtraDB
(http://www.percona.com) 5.6.36-82.1 started; log sequence number
131851166
2017-09-22 9:00:01 10900 [Note] InnoDB: Dumping buffer pool(s) not
yet started 2017-09-22 9:00:01 9704 [Note] Plugin 'FEEDBACK' is
disabled.
2017-09-22 9:00:01 9704 [Note] Server socket created on IP: '::'.
2017-09-22 9:00:02 9704 [Note] c:\xampp\mysql\bin\mysqld.exe: ready
for connections.
Version: '10.1.26-MariaDB' socket: '' port: 3306 mariadb.org binary
distribution
Tks.

Error in Starting the MySQL from XAMPP 3.2.1

I am using XAMPP on my windows machine for PHP and MySQL. Whenever I attempted to the start the MySQL server from the XAMPP Control Panel V3.2.1. Only Apache server is starting and MySQL stops with the following error.
Error: MySQL shutdown unexpectedly.
11:41:12 AM [mysql] This may be due to a blocked port, missing dependencies,
11:41:12 AM [mysql] improper privileges, a crash, or a shutdown by another method.
11:41:12 AM [mysql] Press the Logs button to view error logs and check
11:41:12 AM [mysql] the Windows Event Viewer for more clues
11:41:12 AM [mysql] If you need more help, copy and post this
11:41:12 AM [mysql] entire log window on the forums
Also when I checked my log. I found the following error
2017-05-15 11:48:08 bc8 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.
170515 11:48:08 [Note] InnoDB: Using mutexes to ref count buffer pool pages
170515 11:48:08 [Note] InnoDB: The InnoDB memory heap is disabled
170515 11:48:08 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
170515 11:48:08 [Note] InnoDB: Memory barrier is not used
170515 11:48:08 [Note] InnoDB: Compressed tables use zlib 1.2.3
170515 11:48:08 [Note] InnoDB: Not using CPU crc32 instructions
170515 11:48:08 [Note] InnoDB: Initializing buffer pool, size = 16.0M
170515 11:48:08 [Note] InnoDB: Completed initialization of buffer pool
170515 11:48:08 [Note] InnoDB: Highest supported file format is Barracuda.
170515 11:48:08 [Note] InnoDB: Log scan progressed past the checkpoint lsn 12638736
170515 11:48:08 [Note] InnoDB: Database was not shutdown normally!
170515 11:48:08 [Note] InnoDB: Starting crash recovery.
170515 11:48:08 [Note] InnoDB: Reading tablespace information from the .ibd files...
170515 11:48:08 [Note] InnoDB: Restoring possible half-written data pages
170515 11:48:08 [Note] InnoDB: from the doublewrite buffer...
InnoDB: Doing recovery: scanned up to log sequence number 12638756
170515 11:48:09 [Note] InnoDB: 128 rollback segment(s) are active.
170515 11:48:09 [Note] InnoDB: Waiting for purge to start
170515 11:48:09 [Note] InnoDB: Percona XtraDB (http://www.percona.com) 5.6.22-72.0 started; log sequence number 12638756
170515 11:48:09 [Note] Plugin 'FEEDBACK' is disabled.
170515 11:48:09 [Note] Server socket created on IP: '::'.

mysql xampp cannot turn on suddenly

i have been trying to turn on mysql on xampp but it wouldn't turn on. i went to mysql logs and to the errorlog file and here are the things they gave.
2015-11-23 10:54:20 d274 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.
151123 10:54:20 [Note] InnoDB: Using mutexes to ref count buffer pool pages
151123 10:54:20 [Note] InnoDB: The InnoDB memory heap is disabled
151123 10:54:20 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
151123 10:54:20 [Note] InnoDB: Memory barrier is not used
151123 10:54:20 [Note] InnoDB: Compressed tables use zlib 1.2.3
151123 10:54:20 [Note] InnoDB: Not using CPU crc32 instructions
151123 10:54:20 [Note] InnoDB: Initializing buffer pool, size = 16.0M
151123 10:54:20 [Note] InnoDB: Completed initialization of buffer pool
151123 10:54:20 [Note] InnoDB: Highest supported file format is Barracuda.
151123 10:54:20 [Note] InnoDB: Log scan progressed past the checkpoint lsn 1735623
151123 10:54:20 [Note] InnoDB: Database was not shutdown normally!
151123 10:54:20 [Note] InnoDB: Starting crash recovery.
151123 10:54:20 [Note] InnoDB: Reading tablespace information from the .ibd files...
151123 10:54:20 [Note] InnoDB: Restoring possible half-written data pages
151123 10:54:20 [Note] InnoDB: from the doublewrite buffer...
InnoDB: Doing recovery: scanned up to log sequence number 1735633
151123 10:54:20 [Note] InnoDB: 128 rollback segment(s) are active.
151123 10:54:20 [Note] InnoDB: Waiting for purge to start
151123 10:54:20 [Note] InnoDB: Percona XtraDB (http://www.percona.com) 5.6.22-72.0 started; log sequence number 1735633
151123 10:54:20 [Note] Plugin 'FEEDBACK' is disabled.
151123 10:54:20 [Note] Server socket created on IP: '::'.
The log seems ok for me. Maybe you have permission problem, try (right click) run as Administrator the Xampp
try check your active port, maybe used by another program. Mysql use 3306 as default port. go to your xampp folder try find "portcheck.exe" or something like that. see if your mysql port used or free.