tags:

views:

125

answers:

2

I use MySQL queries all the time in PHP, but when I try LOAD DATA INFILE, I get the following error #1045 - Access denied for user 'user'@'localhost' (using password: YES) Does anyone know what this means?

A: 

It probably means that the password you supplied for 'user'@'localhost' is incorrect.

David Grant
I don't think so. I can do other queries with the same password.
Brian
+1  A: 

Ensure your MySQL user has the FILE privilege granted.

If you are on shared web hosting, there is a chance this is blocked by your hosting provider.

enbuyukfener