Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PDOException SQLSTATE[42S02]: Base table or view not found: 1146 Table 'ninja.accounts' doesn't exist #235

Closed
cccaballero opened this issue Dec 7, 2020 · 2 comments

Comments

@cccaballero
Copy link

I am following the "Docker Compose with nginx" quick start from the wiki, and I am getting a 500 error with no extra error info in the docker logs. If I activate the laravel debugging I get the following error:

SQLSTATE[42S02]: Base table or view not found: 1146 Table 'ninja.accounts' doesn't exist (SQL: select * from `accounts` limit 1)
@cccaballero
Copy link
Author

Solved, I had to run migrations with docker-compose exec app php artisan migrate. Maybe include this in docs for newbies like me?

@hillelcoren
Copy link
Member

Glad to hear it's working, thanks for sharing the fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants