-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdb.conf.example
More file actions
25 lines (20 loc) · 983 Bytes
/
Copy pathdb.conf.example
File metadata and controls
25 lines (20 loc) · 983 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Copy this file to db.conf and fill in your credentials:
# cp db.conf.example db.conf
DBNAME=name
DBUSER=root
DBPASS='pass!@#$1234'
DBHOST=localhost
# DBPORT=3306 # optional; omit for the default 3306
DBDUMP=$DIR/dump.sql
# --- Running MySQL in Docker ---------------------------------------------
# The tools exec the mysql client INSIDE your running container, so DBHOST
# should be localhost / 127.0.0.1 (the client talks to mysqld in the same
# container). The password is passed via MYSQL_PWD, never on the command line.
# (a) Plain `docker run` container -- set its name (e.g. mysqld):
DOCKER_MYSQLD_CONTAINER=
# (b) docker compose service -- set the service name. The v2 `docker compose`
# CLI is auto-detected, falling back to legacy `docker-compose`:
DOCKER_COMPOSE_SERVICE=
# --- Running MySQL as a local service (systemd, brew, etc.) --------------
# Leave both DOCKER_* values empty; the local `mysql` client is used against
# DBHOST/DBPORT above.