-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
laravel and docker error SQLSTATE [HY000] [2002] Connection refused #2142
Comments
DB_HOST=mysql |
I made and now is error
|
did you create that user on the mysql DB? |
Yes. |
@tomi0001 This error has nothing to do with laradock.
Let us know if this solves your Issue |
@qzoke |
@tomi0001 I don't think this is a right thread for you to add bugs that can be easily solved. If you are using docker, I am assuming you know basic SQL or at least google SQL query to grant database access to the user. Please use StackOverflow, not GitHub Issues. |
I have solved this problem this way. 1- Docker -> Preferences ->Reset -> Reset to factory defaults (Removes all settings and data. Just like new.)
4- I switched to the working environment. Worked for me :) |
There's no way to connect to the MYSQL container from outside. I've tried the workspace command
and trying to access directly
I can access from into the mysql container. I've created a user and grant all access to all DB from localhost and still not being able to connect from outside. It always says connection refused. I'm using MYSQL 5.7! I've tried with version 8 but I hi another issue with the client hash that hasn't been solved yet! Anyone with a good idea? Thank you! |
Hi 👋 this issue has been automatically marked as |
Hi again 👋 we would like to inform you that this issue has been automatically |
Info:
Issue:
I have a problem I want to put a project in a docker laravelu and this project I do not want to move after this message SQLSTATE [HY000] [2002] Connection refused I've tried everything mysql port change before it was 3307 now it's 3306?
Expected behavior:
Reproduce:
Mój env
Relevant Code:
docker.yam
The text was updated successfully, but these errors were encountered: