I am getting an access denied error when I am writing to the database

I am using this line

LOAD DATA INFILE 'upload.txt' REPLACE INTO TABLE Test FIELDS TERMINATED BY ','

I have made sure I allowed remote SQL, and I made sure to give the user all privileges.

What could be causing this error?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.18 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.