我正在使用Symfony 3并尝试运行Load Data Infile但我一直收到以下错误:
SQLSTATE [28000]:无效的授权规范:1045用户“xxxxx”@“localhost”的访问被拒绝(使用密码:是)
以下是我的服务器规格:
mysql Ver 14.14 Distrib 5.5.52& Ubuntu 14.04.5 LTS
$sql = "LOAD DATA INFILE '".$file."'
INTO TABLE ".$sqlTbl."
FIELDS TERMINATED BY '\t'
LINES TERMINATED BY '\n'
($sqlColumns[0])";
try {
$stmt = $conn->executeQuery($sql);
echo 'File created & inserted - sql_'.$dataDoc['file']."\n";
} catch(\Exception $e) {
echo "LOAD DATA INFILE ERROR\n";
echo $e->getMessage()."\n";
exit;
}
不确定还能做什么。