报错内容:
Loading local data is disabled; this must be enabled on both the client and server sides
报错原因:
show varivables like 'local_infile';
解决办法:
set global local_infile = 1;
使用命令导入数据,并指定字段
load data local infile "C:/ProgramData/MySQL/MySQL Server 8.0/Uploads/时区.txt"
into table`sys_dict_data`(dict_sort,dict_label ,dict_value ,dict_type ,is_default);
由于mysql安装的时候会设置导入目录,否则会提示这个报错
查看导入必须的使用的目录
show variables like '%secure%';
根据必须使用的目录进行导入即可。