While reading docs, I came across following:
When LOCAL is used, the client program reads the file and sends its contents to the server. The server creates a copy of the file in the directory where it stores temporary files. See Section B.3.3.5, “Where MySQL Stores Temporary Files”. Lack of sufficient space for the copy in this directory can cause the LOAD DATA LOCAL statement to fail.
I am using AWS RDS MySQL v8.0.28.
I have following 3 questions:
- Does MySQL server automatically cleans up the temp file storage without a reboot?
- How to find out how much temp file storage is allocated to my instance of database?
- How can I increase this temp file storage on AWS RDS instance?
SHOW VARIABLES LIKE 'tmpdir';
That is, MySQL's tmpdir may or may not be cleared even on a reboot. (All of this is mostly irrelevant to the real question.)