Share
Laravel Tablespace for table xxx exists
Question
Hi,
I’m getting this error on localhost. Tablespace for table xxx exists. Please DISCARD the tablespace before IMPORT
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Answer ( 1 )
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.