simplify the required mysql env vars

This commit is contained in:
c9s 2021-01-15 10:34:44 +08:00
parent 1ce3244c17
commit af269da47c

View File

@ -51,13 +51,7 @@ BINANCE_API_SECRET=
MAX_API_KEY= MAX_API_KEY=
MAX_API_SECRET= MAX_API_SECRET=
MYSQL_HOST=127.0.0.1 MYSQL_URL=root@tcp(127.0.0.1:3306)/bbgo?parseTime=true
MYSQL_PORT=3306
MYSQL_USERNAME=root
MYSQL_PASSWORD=
MYSQL_DATABASE=bbgo
# Make sure the following line is correct so you can migrate successfully
MYSQL_URL=root@tcp(127.0.0.1:3306)/bbgo
``` ```
Make sure you have [dotenv](https://github.com/bkeepers/dotenv). Then run the `migrate` command to initialize your database: Make sure you have [dotenv](https://github.com/bkeepers/dotenv). Then run the `migrate` command to initialize your database: