44

I have an issue with MySQL. When I'm trying to start it, that gives me an error message, which is

2015-12-10 10:52:31 13f4 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-12-10 10:52:31 5108 [Note] InnoDB: Using mutexes to ref count buffer pool pages
2015-12-10 10:52:31 5108 [Note] InnoDB: The InnoDB memory heap is disabled
2015-12-10 10:52:31 5108 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2015-12-10 10:52:31 5108 [Note] InnoDB: Memory barrier is not used
2015-12-10 10:52:31 5108 [Note] InnoDB: Compressed tables use zlib 1.2.3
2015-12-10 10:52:31 5108 [Note] InnoDB: Not using CPU crc32 instructions
2015-12-10 10:52:31 5108 [Note] InnoDB: Initializing buffer pool, size = 16.0M
2015-12-10 10:52:31 5108 [Note] InnoDB: Completed initialization of buffer pool
2015-12-10 10:52:31 5108 [Note] InnoDB: Highest supported file format is Barracuda.
2015-12-10 10:52:31 5108 [Note] InnoDB: The log sequence numbers 1902092 and 1902092 in ibdata files do not match the log sequence number 1902102 in the ib_logfiles!
2015-12-10 10:52:31 5108 [Note] InnoDB: Database was not shutdown normally!
2015-12-10 10:52:31 5108 [Note] InnoDB: Starting crash recovery.
2015-12-10 10:52:31 5108 [Note] InnoDB: Reading tablespace information from the .ibd files...
2015-12-10 10:52:31 5108 [Note] InnoDB: Restoring possible half-written data pages 
2015-12-10 10:52:31 5108 [Note] InnoDB: from the doublewrite buffer...
2015-12-10 10:52:31 5108 [Note] InnoDB: 128 rollback segment(s) are active.
2015-12-10 10:52:31 5108 [Note] InnoDB: Waiting for purge to start
2015-12-10 10:52:32 5108 [Note] InnoDB:  Percona XtraDB (http://www.percona.com) 5.6.26-74.0 started; log sequence number 1902102
2015-12-10 10:52:32 1760 [Note] InnoDB: Dumping buffer pool(s) not yet started
2015-12-10 10:52:32 5108 [Note] Plugin 'FEEDBACK' is disabled.
2015-12-10 10:52:32 5108 [ERROR] Could not open mysql.plugin table. Some plugins may be not loaded
2015-12-10 10:52:32 5108 [ERROR] Can't open and lock privilege tables: Table 'mysql.servers' doesn't exist
2015-12-10 10:52:32 5108 [Note] Server socket created on IP: '::'.
2015-12-10 10:52:32 5108 [ERROR] Fatal error: Can't open and lock privilege tables: Table 'mysql.user' doesn't exist

I changed to InnoDB yesterday, but no problems were found. Any ideas?

2
  • What version of mysql (or percona)? Was this an upgrade? Or a fresh install? If upgrade, what was the previous version?
    – Rick James
    Dec 11, 2015 at 20:07
  • I just installed XAMPP with PHP 5.6.15 and MariaDB 10.0.17.
    – dahegyi
    Dec 15, 2015 at 15:27

10 Answers 10

88

These instructions worked for me in a fresh install of MariaDB in Arch Linux:

systemctl stop mariadb
rm -R /var/lib/mysql/*
mysql_install_db --user=mysql --basedir=/usr --datadir=/var/lib/mysql
systemctl start mariadb
4
  • 8
    FYI these have to be run with elevated privileges
    – kurdtpage
    May 19, 2018 at 5:29
  • 12
    Please note that rm -R /var/lib/mysql/* will delete ALL database data. Dec 9, 2020 at 10:06
  • 2
    And what if you already have some databases in /var/lib/mysql which is the default places for them ? These instructions just erase all databases ! Nov 16, 2021 at 13:44
  • If the problem remains, the configuration in /etc/mysql or /etc/mysql/conf.d may be incorrect. I encountered the issue after using an invalid encryption key file (loose_file_key_management_filename), for example.
    – BurninLeo
    Dec 28, 2022 at 19:48
52

removing (renaming) this files in /var/lib/mysql:

ib_logfile0
ib_logfile1
aria_log_control

and restarting:

sudo service mysql start

solved it for me

4
  • 5
    This worked in XAMPP windows. Nov 23, 2021 at 11:53
  • 3
    also works for windows setup with xampp. Just got to xampp->mysql->data and locate and delete these files. Now restart xampp services and it should work fine. I had following error in mysql setup with xampp 3.2 2021-12-27 16:13:20 0 [ERROR] Could not open mysql.plugin table. Some plugins may be not loaded 2021-12-27 16:13:20 0 [ERROR] Failed to initialize plugins. 2021-12-27 16:13:20 0 [ERROR] Aborting
    – Ajinkya
    Dec 27, 2021 at 10:53
  • 2
    This worked for me as well but can someone explain why this prevents the server from starting up properly?
    – ashkan117
    Feb 7, 2022 at 18:56
  • On windows it is xampp\mysql\data Jul 7, 2022 at 20:09
17

Simple solution:

There is a backup folder in ..\Xampp\mysql directory. Copy its contents and past in ..\Xampp\mysql\data. Then the error will gone.

4
  • 1
    Give this man an award! Shakah Boom Nov 14, 2022 at 5:57
  • This works to the extent of clearing the issue. To get this to work fully, you don't want to overwrite the following files when copying in files from your backup. The files are: "ibdata1, aria_log_control, aria.log.***, ib_buffer_pool, ib.logfile0, ib.logfile1". Hope this helps.
    – skidadon
    Nov 18, 2022 at 17:34
  • Nice bro. Work 100% for me. Dec 5, 2022 at 12:47
  • Heart winning solution. Feb 19 at 12:38
2

For the xampp users, you just need to replace following files from Xampp/mysql/backup folder to Xampp/mysql/data folder (FYI: Keep a backup copy of data folder before actioning just to be on a safer side..)

Image

2

For Windows this worked for me Perfectly:

Close your xammp completely using Task Manager

removing these files in /xampp/mysql:

ib_logfile0
ib_logfile1
aria_log_control
aria_log.* ( * == some Number)

Start again your xampp.

0

I had this same FEEDBACK/plugins error using MariaDB 10.4 in Docker. Switching to MariaDB 10.3 solved it.

1
  • This does not explain why switching to 10.3 fixed it.
    – ekydfejj
    Mar 29, 2020 at 3:16
0

From me it was /usr/bin/mariadbd process stock into the memory I was only manage to stop it with

sudo killall mariadbd
0

For my Windows XAMPP install, copying the files from the backup directory did clear the mysql error. However, it also reset my Wordpress install. I suspect that the underlying issue was a database corruption issue caused by the "bleeding edge" install of Wordpress on my local PC.

1
  • As it’s currently written, your answer is unclear. Please edit to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers in the help center.
    – Community Bot
    Dec 25, 2022 at 10:02
0

Just renamed these files and the issue fixed. After rename files next restart of mysql it will automatically create new files so no need to copy files from backup folder. enter image description here

1
  • No need to worry about data loss
    – Gopu R
    Jan 18 at 4:02
0

For windows / xampp,

  1. Stop mysql service
  2. Go to mysql/data directory
  3. Please take the backup of highlighted file in separate place and then delete it from data directory.

enter image description here

  1. Start Mysql service.

The above method solved the problem for me.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.