从 SQLite 迁移到 MySQL 报错。
我是按照英文手册的方法迁移,在执行第一步就报错了,错误信息如下:
-rwxr-xr-x. 1 root root 3575 Jun 5 16:54 sqlite_to_mysql.sh
[root@linux-t1 artssf]# ./sqlite_to_mysql.sh
Start export ccnet data from user
Error: unknown command or invalid arguments: “mode”. Enter “.help” for help
Error: unknown command or invalid arguments: “mode”. Enter “.help” for help
Error: unknown command or invalid arguments: “mode”. Enter “.help” for help
Error: unknown command or invalid arguments: “mode”. Enter “.help” for help
Error: unknown command or invalid arguments: “mode”. Enter “.help” for help
Start export ccnet data from group
Error: unknown command or invalid arguments: “mode”. Enter “.help” for help
Error: unknown command or invalid arguments: “mode”. Enter “.help” for help
Error: unknown command or invalid arguments: “mode”. Enter “.help” for help
Error: unknown command or invalid arguments: “mode”. Enter “.help” for help
Done export ccnet data
Start export seafile data
Error: unknown command or invalid arguments: “mode”. Enter “.help” for help
Error: unknown command or invalid arguments: “mode”. Enter “.help” for help
Error: unknown command or invalid arguments: “mode”. Enter “.help” for help
Error: unknown command or invalid arguments: “mode”. Enter “.help” for help
Error: unknown command or invalid arguments: “mode”. Enter “.help” for help
Error: unknown command or invalid arguments: “mode”. Enter “.help” for help
Error: unknown command or invalid arguments: “mode”. Enter “.help” for help
Error: unknown command or invalid arguments: “mode”. Enter “.help” for help
Error: unknown command or invalid arguments: “mode”. Enter “.help” for help
Error: unknown command or invalid arguments: “mode”. Enter “.help” for help
Error: unknown command or invalid arguments: “mode”. Enter “.help” for help
Error: unknown command or invalid arguments: “mode”. Enter “.help” for help
Error: unknown command or invalid arguments: “mode”. Enter “.help” for help
生成的sql文件是这样的:
[root@linux-t1 artssf]# cat ccnet_db_data.sql
SET FOREIGN_KEY_CHECKS=0;
SET FOREIGN_KEY_CHECKS=1;
SET FOREIGN_KEY_CHECKS=0;
SET FOREIGN_KEY_CHECKS=1;
[root@linux-t1 artssf]# cat seahub_db_data.sql
DELETE FROM django_content_type
;
DELETE FROM django_migrations
;
SET FOREIGN_KEY_CHECKS=0;
SET FOREIGN_KEY_CHECKS=1;
[root@linux-t1 artssf]# cat seafile_db_data.sql
SET FOREIGN_KEY_CHECKS=0;
SET FOREIGN_KEY_CHECKS=1;
这个环境是从windows 6.0.7 迁移到linux 6.0.7 在这个版本迁移Mysql报错,试着把Seafile升级到最新版本后再迁移也报错。