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

db failed: No such host is known #367

Open
siyamzakir opened this issue Aug 9, 2022 · 3 comments
Open

db failed: No such host is known #367

siyamzakir opened this issue Aug 9, 2022 · 3 comments

Comments

@siyamzakir
Copy link

php artisan migrate:fresh --seed

SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo for db failed: No such host is known. (SQL: SHOW FULL TABLES WHERE table_type = 'BASE TABLE')

@yungifez
Copy link
Contributor

Check your .env file to make sure yoy are connecting to a proper database

Name sure your database is running

Try running php artisan optimize:clear

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

5 participants
@salmazz @siyamzakir @yungifez and others