Trying to load CSV
data to remote MySQL Server
using following command in MySQL Server 5.5
, and using PHP-5.6
PDO
connection.
LOAD DATA INFILE :file INTO TABLE test_csv COLUMNS
TERMINATED BY ',' ENCLOSED BY '\"' LINES TERMINATED BY '\n';
But i'm getting the following error:
PHP Warning: chown(): Unable to find uid for mysql in /var/www/proj/csvtodb.php on line 22 2017-12-26 09:21:18,
SQLSTATE[HY000]: General error: 13 Can't get stat of '/tmp/csvfile-1.csv' (Errcode: 2)
Please help us to fix this issue.