WordPress / gutenberg-examples

Examples for extending WordPress/Gutenberg with blocks.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error establishing a database connection after first install

martian17 opened this issue · comments

After doing the following as instructed in the readme,

git clone https://github.com/WordPress/gutenberg-examples.git
cd gutenberg-examples
docker-compose up -d

I opened http://localhost:9999 on my browser.
However, the page says "establishing a database connection".

OS: Xubuntu 20.04

After reading docker-compose.yml, I found out that the environment variables for database username and password were not setup completely.
I edited it slightly and now it works as expected.
I'm considering making a pull request, but I want to make sure that everyone has this problem right now.
Also it might be a good idea to add an optional step in the readme tutorial for setting a secure password by editing docker-compose.yml.

I'm having the same issue in M1 Macbook. Thanks for the pull request, I'll take a look into it!

Thanks for looking into this issue! Can you link the pull request to this issue by the way? Looks like I don't have enough permission.
#134

I'm having the same issue in M1 Macbook.

There is no M1 compatible release of MySQL 5.7 for arm64 architecture for M1 Macs, yet, so until an alternate image is available this will cause issues, potentially MariaDB should work as an alternative but will require testing