> ## Content Index
> Fetch the complete content index at: https://til.codes/llms.txt
> Use this file to discover other available public pages before exploring further.

# How to Fix [ERROR] Unknown/unsupported storage engine: InnoDB
- URL: https://til.codes/how-to-fix-error-unknownunsupported-storage-engine-innodb/
- Published: 2016-01-07T18:47:57.000Z
- Updated: 2016-01-07T18:47:57.000Z
- Author: Manu Ajith
- Tags: database, mysql, #Import 2024-07-13 21:01

After playing around with my MySQL configuration file in my docker container, MySQL was throwing a weird error, and was failing to start.

I checked the error logs and found an entry in the error log.

```
[ERROR] Plugin ‘InnoDB’ init function returned error.
[ERROR] Plugin ‘InnoDB’ registration as a STORAGE ENGINE failed.
[ERROR] Unknown/unsupported storage engine: InnoDB
[ERROR] Aborting

```

After googling and searching SO for a while, I realised that the solution is to rename or delete some of the log files of InnoDB. In case you are concerned about the data, it would be wise to have a backup of those files, in my case I encountered the error on a fresh docker MariaDB container. Hence I chose to remove the files.

```
rm /var/lib/mysql/ib_logfile0
rm /var/lib/mysql/ib_logfile1

```

and then restart MySQL.

```
root@docker# /etc/init.d/mysql start
Starting MySQL database server: mysqld . ..
Checking for tables which need an upgrade, are corrupt or were
not closed cleanly..
root@docker#

```

And thats it, I now have my MySQL server up and running once again.