Mo Zhu
05/09/2022, 4:51 PMfleet prepare db
but the error failed to start: creating db connection: default addr for network '<http://us-cdbr-east-05.cleadb.net/asdfasdfasdf|us-cdbr-east-05.cleadb.net/asdfasdfasdf>' unknown
. It seems to not know the URL for that db, but that’s the url provided by heroku in their server env variables.Michal Nicpon
05/09/2022, 5:27 PMMo Zhu
05/09/2022, 7:02 PMFLEET_MYSQL_ADDRESS: <mysql://xxx:xxx@us-cdbr-east-05.cleardb.net/heroku_e825c9bd49d3cbb?reconnect=true>
mysql://
address is given by the cleardb mysql heroku add-on.fleet prepare db
will do the rest?Michal Nicpon
05/09/2022, 7:07 PMFLEET_MYSQL_ADDRESS
, FLEET_MYSQL_DATABASE
, FLEET_MYSQL_USERNAME
, FLEET_MYSQL_PASSWORD
. See https://fleetdm.com/docs/deploying/configuration#my-sqlMo Zhu
05/09/2022, 7:09 PMFLEET_MYSQL_ADDRESS
, FLEET_MYSQL_DATABASE
, FLEET_MYSQL_USERNAME
, FLEET_MYSQL_PASSWORD
. But are you saying that they need to be specific strings that match the set up of the db?Michal Nicpon
05/09/2022, 7:10 PMFLEET_MYSQL_ADDRESS
. In this case, you need to do
FLEET_MYSQL_ADDRESS=<http://us-cdbr-east-05.cleardb.net:3306|us-cdbr-east-05.cleardb.net:3306>
FLEET_MYSQL_DATABASE=heroku_e825c9bd49d3cbb
FLEET_MYSQL_USERNAME=xxx
FLEET_MYSQL_PASSWORD=xxx
Mo Zhu
05/09/2022, 7:10 PMMichal Nicpon
05/09/2022, 7:20 PMMo Zhu
05/09/2022, 7:22 PM