mysql data迁移后启动失败,InnoDB: ./ibdata1 can't be opened in read-write mode

mysql data迁移后,启动失败,重新初始化数据实例也报错InnoDB: ./ibdata1 can't be opened in read-write mode

1、查看权限

修改/ibdata1文件用户组、拥有者为mysql,授予读写权限,重新初始化,不行再执行第2步

2、删除ib_logfile0,ib_logfile1文件

3、重新初始化成功

建议使用mv命令迁移,以确保权限一致

你可能感兴趣的:(mysql data迁移后启动失败,InnoDB: ./ibdata1 can't be opened in read-write mode)