Symptoms
-
MariaDB server cannot start.
-
The following error is found in
/var/log/mariadb/mariadb.log
:[ERROR] InnoDB: redo log file './ib_logfile1' exists. Creating system tablespace with existing redo log files is not recommended. Please delete all redo log files before creating new system tablespace.
Cause
Obsolete redo log file preventing MariaDB from operating correctly.
Resolution
-
Connect to the server via SSH.
-
Move the
ib_logfile
files from/var/lib/mysql
:# mv /var/lib/mysql/ib_logfile* /root/
-
Start MariaDB:
# systemctl start mariadb