I have written a PHP Script that uploads a file. The file must then replace data in a MySQL Table using Load Data Infile.
The file uploads, is moved to the proper directory and then I am receiving a Permission denied error on the load data infile command.
Everything I have read says that there needs to be file privileges so that this can be done.
What I want to do and does not work is:
grant select, insert, update, delete, file, index
on database.*
to user@localhost identified by 'password';
If I grant total access, like this, the load data infile works:
grant all
on *
to user@localhost identified by 'password';
I only want this user to have access to one database and not every database on the server.
Does anyone have any ideas or is there another way to do this?