SQLITE3 VACUUM, “database or disk is full”

To allow the VACUUM command to run, change the directory for temporary files to one that has enough free space.

SQLite’s documentation says the temporary directory is (in order):

  1. whatever is set with the PRAGMA temp_store_directory command; or
  2. whatever is set with the SQLITE_TMPDIR environment variable; or
  3. whatever is set with the TMPDIR environment variable; or
  4. /var/tmp; or
  5. /usr/tmp; or
  6. /tmp; or
  7. ., the current working directory

Leave a Comment