Laravel Tablespace for table xxx exists
- 0
Hi,
I’m getting this error on localhost. Tablespace for table xxx exists. Please DISCARD the tablespace before IMPORT
Answers
- 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.