mariadb 5.5 をインストールし、systemctl start mariadb をすると、「InnoDB: Error: checksum mismatch in data file ./ibdata1」のエラーが発生し、起動できません。
【OS】
CentOS 7.1(64bit)
【mariadb.log の内容】
181018 17:40:59 mysqld_safe mysqld from pid file /var/run/mariadb/mariadb.pid ended
181018 17:50:26 mysqld_safe Starting mysqld daemon with databases from /mnt/data01/mariadb
181018 17:50:26 InnoDB: The InnoDB memory heap is disabled
181018 17:50:26 InnoDB: Mutexes and rw_locks use GCC atomic builtins
181018 17:50:26 InnoDB: Compressed tables use zlib 1.2.7
181018 17:50:26 InnoDB: Using Linux native AIO
181018 17:50:26 [Note] /usr/libexec/mysqld (mysqld 5.5.60-MariaDB) starting as process 30790 ...
181018 17:50:26 InnoDB: Initializing buffer pool, size = 128.0M
181018 17:50:26 InnoDB: Completed initialization of buffer pool
InnoDB: Error: checksum mismatch in data file ./ibdata1
181018 17:50:26 InnoDB: Could not open or create data files.
181018 17:50:26 InnoDB: If you tried to add new data files, and it failed here,
181018 17:50:26 InnoDB: you should now edit innodb_data_file_path in my.cnf back
181018 17:50:26 InnoDB: to what it was, and remove the new ibdata files InnoDB created
181018 17:50:26 InnoDB: in this failed attempt. InnoDB only wrote those files full of
181018 17:50:26 InnoDB: zeros, but did not yet use them in any way. But be careful: do not
181018 17:50:26 InnoDB: remove old data files which contain your precious data!
181018 17:50:26 [ERROR] Plugin 'InnoDB' init function returned error.
181018 17:50:26 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
181018 17:50:26 [Note] Plugin 'FEEDBACK' is disabled.
181018 17:50:26 [ERROR] Unknown/unsupported storage engine: InnoDB
181018 17:50:26 [ERROR] Aborting
【対応1とその結果別なエラー】
/mnt/data01/mariadb の下の以下3つのファイルを削除して、再度、mariadb を起動したら、
以下のエラーが発生しました。
<削除したファイル>
ib_logfile0
ib_logfile1
ibdata1
<再起動後、発生したエラー>
[ERROR] mysqld: Incorrect information in file: './mysql/proxies_priv.frm'
[ERROR] Fatal error: Can't open and lock privilege tables: Incorrect information in file: './mysql/proxies_
priv.frm'
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2018/10/18 09:44
2018/10/18 09:54
2018/10/18 10:17