load data infile 'C:\\ProgramData\\MySQL\\MySQL Server 8.0\\Uploads\\xxx.csv'
into table tablename
fields terminated by ','
optionally enclosed by '\"'
lines terminated by '\n'
ignore 1 lines;
按理说load data local infile应该可以把主机上任何路径文件传上去,但我这就是不行,就是报错:
Error Code: 3948. Loading local data is disabled; this must be enabled on both the client and server sides
有大佬知道咋回事请告诉我。
注意导入之前必须在数据库里把相应的空表建好。