时间:2021-07-01 10:21:17 帮助过:33人阅读
[ERROR] InnoDB: Ignoring the redo log due to missing MLOG_CHECKPOINT between the checkpoint xxxx and the end yyyy.
因MySQL上存储的应用数据并没有多大,mysql下多张表都存在问题,加上有数据备份,选择了直接重新初始化mysql库解决问题。
mysqlcheck -u username -p -B databsename --auto-repair
mysqldump -u username -p databasename > databasename_$(date +%F).sql
mv /mysql/data{,-bak}
../mysql/bin/mysqld --initialize --user=mysql
cat ../logs/mysql/error.log | grep password
mysql> alter user ‘root‘@‘localhost‘ identified by ‘新密码‘;
mysql> flush privileges;
mysql> create database databasename;
mysql> create user ‘username‘@‘localhost‘ identified by ‘之前该应用用户的密码‘;
mysql> grant all on databasename.* to ‘username‘@‘localhost‘;
mysql> flush privileges;
../bin/mysql -uusername -p databasename < 备份.sql
https://blog.csdn.net/qq813361162/article/details/52770712
MySQL5.7 重新初始化解决mysql库表坏问题
标签:配置 user 数据备份 bin 应用服务 xxxx red targe int