感觉像是编码方式问题,不行的话,试试load data infile,先把txt格式改下试试

解决方案 »

  1.   

    key如果加上就报错,加上的时候报什么错误?
      

  2.   

    ERROR 1064 (42000) at line 1: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'key = ''' at line 1
      

  3.   

    shell语法问题
    单引号下不能引用变量,把单引号改双引号