-
Notifications
You must be signed in to change notification settings - Fork 11
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
MySQL database connection refused but can access externally #4
Comments
Your env is off :) https://docs.lando.dev/config/laravel.html#environment-file
Also be aware that the root is
|
thanks! that worked. Will now try this out on an ubuntu and windows virtual machine so we could adapt lando for our team. |
Its not working for me, I have used this same method but getting error Please guide. Thanks |
Could you please share your solution here for help. Thanks. |
I am on MAMP. I Just changed the port to 8889 and the password to root. It works |
I'm just trying out Lando for the first time using the Laravel recipe, but so far mysql is a headache. I can't seem to get it to work using this config:
For context, I tried creating a database using the mysql on the host machine then exported it using table plus. Then I imported it to the lando app using
lando db-import my_database.gz
. I was able to connect to the database externally via tableplus by entering the following credentials:laravel
laravel
laravel
But from within the app itself all I get is 'connection refused'. Here's my
.env
file:There weren't any privileges attached to the database (not even sure if those comes along with exports). I checked the actual export file and all it has is
CREATE
,DROP
, andINSERT
calls so it's supposed to just work without me granting privileges or anything.Any ideas what I might be missing?
The text was updated successfully, but these errors were encountered: