页面树结构
转至元数据结尾
转至元数据起始

(本文档仅供参考)

问题:

机房停电导致系统关机,系统重启一直访问不了系统,看日志提示数据库连接不上,手动重启mysql服务,又能正常访问数据库,但是用smartbi一键启动就会自动Kill掉Mysql进程,导致服务启动不成功。

解决方案:

尝试多次后,发现问题出在mysql那,查看mysql日志报错如下:

InnoDB: Trying to access page number 542272 in space 1580, space name smartbidemo/t_operationlog, which is outside the tablespace bounds. Byte offset 0, len 16384, i/o type read. If you get this error at mysqld startup, please check that your my.cnf matches the ibdata files that you have in the MySQL server.2024-06-17T07:55:51.752868Z 2 [ERROR] InnoDB: Server exits smartbidemo/t_operationlog表过大(9G多)(smartbi的操作日志表),导致smartbi在启动加载这个表时,导致mysql服务挂掉,从而smartbi连接知识库失败,启动失败

目前只能先删除表重建,处理步骤如下:

1、停止mysql服务
2、进入mysql/data/smartbidemo目录,找到t_operationlog.ibd,给文件重命名。
3、复制当前目录的其他文件,重命名为t_operationlog.ibd
4、启动mysql服务
5、重新连接mysql,然后再drop table t_operationlog
6、再次create table t_operationlog xxxx
7、启动smartbi,此时知识库恢复正常使用

补充说明:

客户用的MySQL版本为5.7,版本较老,会出现表过大导致mysql异常,可以通过升级MySQL版本处理,升级操作可以参考wiki文档:

Windows版本:Win exe安装包升级MySQL版本 - FAQ中心 - (smartbi.com.cn)


  • 无标签