GBase 8a
适配迁移
文章
调整8a mpp cluster,在表中存入最大blob
发表于2025-04-07 15:16:0133次浏览0个评论
当前blob 长度最大能支持2G。
0、准备(第一个参数默认4M,设置大一些。
set global max_allowed_packet= 1471088640
配置文件修改,无法show出来
_gbase_blob_max_length=100M #根据需要设置
1、建表
create database if not exists test;
use test;
create table t1(c1 int,c2 longblob);
2、准备数据1.tbl (1.zip 需要放入和1.tbl同目录下)
1,1.zip
3、数据导入
load data infile 'ftp://gbase:gbase@172.16.6.98//tmp/1.tbl'
into table test.t1
fields terminated by ','
table_fields 'c1,c2 type_url';
4、数据插入
insert into t1 (c1,c2) values(1,load_file('/tmp/1.zip'));
评论
登录后才可以发表评论
热门帖子
- 12025-12-01浏览数:182759
- 22023-05-09浏览数:25044
- 42023-09-25浏览数:18519
- 52020-05-11浏览数:17526