未知的MySQL服务器主机启动(0)

时间:2012-10-29 10:41:16

标签: php mysql

我将csv文件内容放入数据库。我的脚本将首先检查csv文件是否存在于特定位置,如果是,则将执行该表,并且将更新表。为此,我在文件(6sql.sql)

中保留了以下查询
LOAD DATA INFILE "($_GET["FileName"]) 
INTO TABLE test.LoadedEmployee 
FIELDS TERMINATED BY "," 
ENCLOSED BY '' ESCAPED BY `\` 
LINES TERMINATED BY "\r\n" STARTING BY '' 

$_GET["FileName"])将获得用户输入)

&安培;从cmd提示符,我正在尝试运行cmd

mysql -u root -pdbase -hlocalhost -t -vvv -e "source C:\6sql.sql" 

但我收到的错误

  

错误:ERROR 2005(HY000)第1行:未知MySQL服务器主机'STARTING'(0)

0 个答案:

没有答案