HeidiSQL导入导出数据
-
导入sql脚本
-
速度较慢
-
导出sql脚本,导出速度快
- 导入csv
查看详情
- 报错3948
show variables like 'local_infile';
# 修改权限
set global local_infile = 1;
-
SQL错误 (5): Out of memory (Needed2619342881 bytes)
-
错误原因:内存超出
- 先本地导入,创建表
CREATE TABLE `shop` (
`id` int NOT NULL AUTO_INCREMENT,
`user_id` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL,
`item_id` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL,
`category_id` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL,
`behavior_id` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL,
`timestamp` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 10660001 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci ROW_FORMAT = DYNAMIC;
- 导入操作不好使用