Back

SQLSTATE[42S02]: Base table or view not found: 1146 Table


Tofayal posted 2 weeks ago

SQLSTATE[42S02]: Base table or view not found: 1146 Table 'cruds.users' doesn't exist (SQL: select * from users)

this error how to solve it.

Luis Terrero replied 2 weeks ago

Can you explain better? Where and how exactly are you getting this?

minikN replied 2 weeks ago

I'm getting the same error. I updated the framework today from 5.5.20 to 5.5.22 using composer update.

A couple of hours later I wanted to rollback my migrations and did

php artisan migrate:rollback

which worked. However after that the framework completely broke. Now I'm getting the following:

In Connection.php line 664:

  SQLSTATE[42S02]: Base table or view not found: 1146 Table 'homestead.pages'
   doesn't exist (SQL: select * from `pages`)


In Connection.php line 326:

  SQLSTATE[42S02]: Base table or view not found: 1146 Table 'homestead.pages'
   doesn't exist

...no matter what I do, I get it if I run

php artisan
composer update
composer dump-autoload

Sign in to participate in this thread!



We'd like to thank these amazing companies for supporting us