Database Restore Failed - Please DISCARD the tablespace before IMPORT

When restoring databases JetBackup attempts to drop the database tables before starting the restoration. This can sometimes result in the following error:

[ERROR] ERROR 1813 (HY000) at line 25: Tablespace for table TABLENAME exists. Please DISCARD the tablespace before IMPORT

This error often occurs if the database table files still exist in the MySQL folder or are cached. Here are a few resources that may assist with this issue:

https://www.24x7servermanagement.com/clients/index.php?rp=/knowledgebase/106/ERROR-Tablespace-for-table-exist.-Please-DISCARD-the-tablespace-before-IMPORT..html
https://stackoverflow.com/questions/15694168/error-tablespace-for-table-xxx-exists-please-discard-the-tablespace-before-imp

Once the cache has been cleared of all instances of the TABLE, the restore should continue with no issues.

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Invalid file type: (unknown) for file ‘jetbackup_x_x_x”

If JetBackup fails to restore account(s) with the error “Invalid file type” - the first step...

Restore sites with previously assigned dedicated IP

By default, using Disaster Recovery to restore an orphaned account will assign the new servers...

Email Restore ERROR cannot move/File exists

In JetBackup 4, restoring emails errors may occur if a user tries to download mails at the time...

Google Drive Restore and Download Issues

Google Drive has recently added a new Virus Scanner into their system that automatically scans...

Orphan Accounts Missing

Sometimes terminated accounts will not appear in the Orphan Accounts Section. Please verify the...