展开
拓展 关闭
订阅号推广码
GitHub
视频
公告栏 关闭

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;
  • 导入操作不好使用

posted @ 2023-12-06 14:55  DogLeftover  阅读(440)  评论(0编辑  收藏  举报