ERROR 3948 (42000): Loading local data is disabled; this must be enabled on both the client and server sides
第一步,设置变量
set global local_infile = 1;
设置后可以查看开关是否打开了
但是又有别的异常
ERROR 2068 (HY000): LOAD DATA LOCAL INFILE file request rejected due to restrictions on access.
第二步,重新连接就可以了
mysql -u root --local-infile=1 -p