linux一键安装包
598367

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

提问者答案数1阅读数406发表时间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 后再导出,成功了。
回复
联系我们
联系人
张淑钧/高级客户经理
电话(微信)
13156280939
QQ号码
2082428410
联系邮箱
zhangshujun@chandao.com
其他相关问答
提问者: liulie 于 2017-02-046110次浏览,1个答案
37275
已解决
悬赏5积分
提问者: brightlee 于 2020-06-011408次浏览,1个答案
提问者: lancey 于 2016-12-261476次浏览,1个答案
4712
已解决
悬赏15积分
提问者: qq_590c7032ce2ca 于 2017-05-062136次浏览,1个答案
提问者: ekinwei 于 2013-09-052854次浏览,1个答案
返回顶部
客服头像
张淑钧
高级客户经理
客服微信
13156280939
2082428410
统一服务热线 4006-8899-23
我要提问提问有任何问题,您都可以在这里提问。问题反馈反馈点击这里,让我们聆听您的建议与反馈。