linux一键安装包
598367

windows禅道数据迁移到Linux禅道数据库数据提示损坏已解决悬赏5积分

提问者答案数1阅读数415发表时间2025-01-10 15:12:10

迁移数据重新启动服务成功后,访问页面一直白屏。

查看数据库日志,提示:

root@dell-PowerEdge-R750:/opt/zbox/data/mysql# tail /opt/zbox/logs/mysql_error.log

2025-01-10 14:54:50 14 [ERROR] InnoDB: Table zentao.`zt_workflowui` is corrupted. Please drop the table and recreate.

2025-01-10 14:54:50 14 [ERROR] InnoDB: Table zentao.`zt_workflowversion` is corrupted. Please drop the table and recreate.

2025-01-10 14:54:50 14 [ERROR] InnoDB: Table zentao.`zt_zoutput` is corrupted. Please drop the table and recreate.

2025-01-10 14:54:50 18 [ERROR] InnoDB: Table zentao.`zt_config` is corrupted. Please drop the table and recreate.

2025-01-10 14:54:58 19 [ERROR] InnoDB: Table zentao.`zt_config` is corrupted. Please drop the table and recreate.

2025-01-10 14:55:50 20 [ERROR] InnoDB: Table zentao.`zt_config` is corrupted. Please drop the table and recreate.

2025-01-10 14:56:50 21 [ERROR] InnoDB: Table zentao.`zt_config` is corrupted. Please drop the table and recreate.

2025-01-10 14:57:50 22 [ERROR] InnoDB: Table zentao.`zt_config` is corrupted. Please drop the table and recreate.

2025-01-10 14:58:50 23 [ERROR] InnoDB: Table zentao.`zt_config` is corrupted. Please drop the table and recreate.

2025-01-10 14:59:50 24 [ERROR] InnoDB: Table zentao.`zt_config` is corrupted. Please drop the table and recreate.

禅道版本:禅道开源版 21.2

安装包类型:Linux安装包

操作系统:Ubuntu

客户端浏览器:

设置备注
内容
答案列表
🎂
2025/01/10 最佳答案

windows的数据库备份建议使用mysqldump 命令进行备份,然后到Linux数据库里source 导入即可。因为如果直接拷贝文件,系统未关闭的情况可能会导致文件不完整。

🎳
2025/01/13
root@dell-PowerEdge-R750:~# /opt/zbox/bin/mysql --binary-mode=1 -u root -P 3306 -p zentao < /home/dell/temp/zentao.sql
Enter password:
--------------
▒▒-
--------------

ERROR 1064 (42000) at line 1: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '??-' at line 1
用mysqldump 导出之后执行还是有问题呢,我用的版本是21.2,Windows 和Linux都是相同版本的
回复
孔令茂2025/01/13
定位您的问题,还需要更多的信息。
有禅道的技术支持添加您的微信,请通过下。
回复
孔令茂2025/01/13
已处理。
使用 mysql dump 工具导出的文件中包含乱码,使用客户端工具导出 sql 后再导出,成功了。
回复
联系我们
联系人
高丽亚/高级客户经理
电话(微信)
17667930330
QQ号码
3645260865
联系邮箱
gaoliya@chandao.com
其他相关问答
5178
已解决
悬赏5积分
提问者: Eric151711 于 2017-09-143002次浏览,1个答案
提问者: laizhicong 于 2016-10-281901次浏览,1个答案
596186
已解决
悬赏5积分
提问者: wx_6385a217bec75 于 2022-11-29960次浏览,2个答案
5075
已解决
悬赏5积分
提问者: ymhd1991 于 2017-08-222150次浏览,1个答案
5841
已解决
悬赏5积分
提问者: OnTheRoad 于 2018-04-212541次浏览,1个答案
返回顶部
客服头像
高丽亚
高级客户经理
客服微信
17667930330
3645260865
统一服务热线 4006-8899-23
我要提问提问有任何问题,您都可以在这里提问。问题反馈反馈点击这里,让我们聆听您的建议与反馈。