I want to update table data in CSV
format with LOAD DATA INFILE
command on my shared hosting server, but failed and the error message "access denied for user .... (using password yes)". The error seems to relate to permissions / grant. but I can not get into the root. how to solve the problem or is there another way to update a table with a large data? This is my php script:
$result = mysql_query("LOAD DATA INFILE 'rekap.csv'
INTO TABLE remaik
FIELDS TERMINATED BY ','
OPTIONALLY ENCLOSED BY '\"'
LINES TERMINATED BY '\r\n'
(kode, nama, awal, debet, kredit, tawal, tdebet, tkredit)");
if(!$result) {
die("Rekap Piutang Tidak Dapat Diupdate - " . MySQL_Error());
}
thanks for the help