我正在尝试将一个本地文件加载到MySQL中,但它有问题(其他文件没问题,只有这个数据文件有这样的问题):
mysql>
mysql> load data infile '/home/tmp/supplier.tbl' into table SUPPLIER FIELDS TERMINATED BY '|';
ERROR 2013 (HY000): Lost connection to MySQL server during query
mysql> load data infile '/home/tmp/supplier.tbl' into table SUPPLIER FIELDS TERMINATED BY '|';
ERROR 2006 (HY000): MySQL server has gone away
No connection. Trying to reconnect...
Connection id: 1
Current database: wiki
ERROR 2013 (HY000): Lost connection to MySQL server during query
mysql>
此supplier.tbl
约为300000
行,每行是由|
分隔的记录,总文件大小约为41 MB
。
这里有一些样本:
1|Supplier#000000001| N kD4on9OM Ipw3,gf0JBoQDd7tgrzrddZ|17|27-918-335-1736|5755.94|each slyly above the careful|
2|Supplier#000000002|89eJ5ksX3ImxJQBvxObC,|5|15-679-861-2259|4032.68| slyly bold instructions. idle dependen|
3|Supplier#000000003|q1,G3Pj6OjIuUYfUoH18BFTKP5aU9bEV3|1|11-383-516-1199|4192.40|blithely silent requests after the express dependencies are sl|
4|Supplier#000000004|Bk7ah4CK8SYQTepEmvMkkgMwg|15|25-843-787-7479|4641.08|riously even requests above the exp|
5|Supplier#000000005|Gcdm2rJRzl5qlTVzc|11|21-151-690-3663|-283.84|. slyly regular pinto bea|
按下输入按钮后立即显示lost connection error