Laravel Tablespace for table xxx exists

Asked by: boon
Date:
Viewed: 391
Answers: 1
  • 0

Hi,

I’m getting this error on localhost. Tablespace for table xxx exists. Please DISCARD the tablespace before IMPORT

Answers

Answer by: ChristianKovats

Answered on: 25 Jan 2023

  • 0

I ran into this error when i tried to migrate with Laravel 7 on localhost. Many things can cause this problem. For me the cause was that in ‘xampp/mysql/data/app_name’ where “app_name” is the name of your app contained orphan .idb files. I removed all of them, and then the migration and seeding ran successfully.

If you try this solution, don’t forget to backup you files.

Please log in to post an answer!