1

我在 PHPmyadmin 中运行以下命令:

LOAD DATA INFILE '/test3.csv' INTO TABLE temp_car FIELDS TERMINATED BY ',' ENCLOSED BY '"' LINES TERMINATED BY '\n' IGNORE 1 LINES (recloc,divdept)

LOAD DATA INFILE '/var/www/vhosts/domain.com/httpdocs/admin/server/test3.csv' INTO TABLE temp_car FIELDS TERMINATED BY ',' ENCLOSED BY '"' LINES TERMINATED BY '\n' IGNORE 1 LINES (recloc,divdept)

我收到此错误:

#1045 - Access denied for user 'db_admin'@'%' (using password: YES) 

我尝试将文件的权限更改为 777,将包含文件夹的权限更改为 777。

有任何想法吗?我很难用 LOAD DATA INFILE 进行工作测试

4