-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
WP-CLI: Error establishing a database connection #69
Comments
Hey, |
Pass in the same environment variables from wordpress service to the wpcli and it should work. |
@satcar77 May you please explain a little bit more? I don't get the part "pass in the same environment variables". I think I have cloned the branch master, simply |
Ok, silly me. I'm sorry. But I think I got what is required. The wpcli section in my
Then, By the way, I've just seen your PR #70. I see it now. |
Hi there,
|
Not sure what I'm doing wrong here. I'm following all of the instructions, not changing any default variables, and while WordPress and PHPMyAdmin work perfectly, I can't get wp-cli to work. Any time I run the command in the instructions, I get
Error establishing a database connection
. Any time I try to restart it via the Docker dashboard, I get the same error. What gives? What database credentials is wp-cli using? What else can I do to configure this?If it makes a difference, I'm on a new MacBook Pro with the M1 chip. (This has caused problems with other programs; don't know if it's an issue here.)
The text was updated successfully, but these errors were encountered: