Hi there, how can I connect to the database in the...
# docker
m
Hi there, how can I connect to the database in the b2c-demo-shop on the commandline?
a
Copy code
docker/sdk cli mariadb -h database -u spryker -p
For MariaDB
User depends on your local configuration, of course
m
Thanks, it worked now with this command:
Copy code
docker/sdk cli mariadb -u spryker -psecret -h database eu-docker
I found the credentials like so:
Copy code
$ grep SPRYKER_DB_ docker/deployment/default/env/cli/de.env | grep -v ROOT
SPRYKER_DB_ENGINE=mysql
SPRYKER_DB_HOST=database
SPRYKER_DB_PORT=3306
SPRYKER_DB_DATABASE=eu-docker
SPRYKER_DB_USERNAME=spryker
SPRYKER_DB_PASSWORD=secret
SPRYKER_DB_CHARACTER_SET=utf8
SPRYKER_DB_COLLATE=utf8_general_ci