在mysql 8.0.22 运行load data local 从本地文本导入数据时,报错:"ERROR 3948(42000): Loading local data is disabled - this must be enabled on both the client and server sides".
show global variables like 'local_infile';
打开MYSQL local data
set global local_infile ='ON'
还可以命令行输入
set global local_infile = 1
导入文件