I try to insert a blob from local disk (Windows 10) to my RDS MySQL database. However my query does not insert the blob. The new row has all other columns, but the blob is NULL.
INSERT INTO table VALUES('c1', LOAD_FILE('C:/testing.7z'));
Here is what I tried:
- I set the permission of the file ro read/write.
- secure_file_priv is set to /tmp ... I dont know what this means. Is this a path or a variable? If it is a variable, I already tried to upload the blob from the paths from user/system variable "TMP" with no success. I am not able to change secure_file_priv because RDS permits changes... If it is a path then from which path do I have to upload the file?
- max_allowed_packet is set to default (1024-1073741824 bytes). My file is 200 kb large.
How can I manage to upload the file?
EDIT: I tried the same on my local database and it worked - but only with files in the directory of select @@secure_file_priv;.