Remote connect to clearDB heroku database

前端 未结 13 1859
故里飘歌
故里飘歌 2020-11-30 18:26

How can i perform a remote connect to ClearDB MySQL database on heroku using for example MySQL Query Browser. Where to get url, port, login and password?

13条回答
  •  春和景丽
    2020-11-30 18:53

    In heroku website, go to My Apps and select the app on which you have installed ClearDB.

    On the top corner click on Addons and then select ClearDB MySQL Database. Once there, click on your database and choose the 'Endpoint Information' tab. There you see your username/password. The URL to the database can be acquired by running heroku config --app in the command line.

    In my case, it was something like: mysql://user:pass@us-cdbr-east.cleardb.com/DATABASE?reconnect=true What you need is this part: us-cdbr-east.cleardb.com

提交回复
热议问题