-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdatabase.yml
49 lines (47 loc) · 1.4 KB
/
database.yml
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
---
development:
dialect: "mysql"
database: "gobuff_development"
host: "localhost"
port: "3306"
user: "root"
password: "root"
test:
dialect: "mysql"
#
# You can use a single URL string for the same configuration:
#
#url: "mysql://root:root@(localhost:3306)/gobuff_test?parseTime=true&multiStatements=true&readTimeout=3s"
#
# Note that if you use `url`, other configurations are silently ignored.
# In this case, the URL must contain all required connection parameters.
#
database: "gobuff_test"
host: "localhost"
port: "3306"
user: "root"
password: "root"
production:
#
# You can also use environmental variables to override values in this config.
#
#url: {{envOr "DATABASE_URL" "mysql://root:root@(localhost:3306)/gobuff_production?parseTime=true&multiStatements=true&readTimeout=3s"}}
#
dialect: "mysql"
database: "gobuff_production"
host: {{envOr "DATABASE_HOST" "localhost"}}
port: {{envOr "DATABASE_PORT" "3306"}}
user: {{envOr "DATABASE_USER" "root"}}
password: {{envOr "DATABASE_PASSWORD" "root"}}
#
# And you can also override connection parameters by setting it under options.
#
#options:
# parseTime: true
# multiStatements: true
# readTimeout: 3s
# collation: "utf8mb4_general_ci"
#
# CAUTION!
# `parseTime` and` multiStatements` must be set to `true` to work properly.
# If you are not sure, do not change (or set) these values.