Remote connect to clearDB heroku database(远程连接到 clearDB heroku 数据库)
问题描述
我如何使用例如 MySQL 查询浏览器在 heroku 上远程连接到 ClearDB MySQL 数据库.在哪里获取url、端口、登录名和密码?
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?
推荐答案
在 heroku 网站中,转到我的应用程序并选择您已安装 ClearDB 的应用程序.
In heroku website, go to My Apps and select the app on which you have installed ClearDB.
在顶角点击插件,然后选择ClearDB MySQL 数据库.在那里,单击您的数据库并选择端点信息"选项卡.在那里你会看到你的用户名/密码.可以通过运行获取到数据库的 URLheroku config --app 在命令行中.
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 <YOUR-APP-NAME> in the command line.
就我而言,它类似于:mysql://user:pass@us-cdbr-east.cleardb.com/DATABASE?reconnect=true您需要的是这部分:us-cdbr-east.cleardb.com
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
这篇关于远程连接到 clearDB heroku 数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:远程连接到 clearDB heroku 数据库
基础教程推荐
- while 在触发器内循环以遍历 sql 中表的所有列 2022-01-01
- 从字符串 TSQL 中获取数字 2021-01-01
- 如何在 CakePHP 3 中实现 INSERT ON DUPLICATE KEY UPDATE aka upsert? 2021-01-01
- 带有WHERE子句的LAG()函数 2022-01-01
- MySQL根据从其他列分组的值,对两列之间的值进行求和 2022-01-01
- ORA-01830:日期格式图片在转换整个输入字符串之前结束/选择日期查询的总和 2021-01-01
- MySQL 5.7参照时间戳生成日期列 2022-01-01
- 使用 VBS 和注册表来确定安装了哪个版本和 32 位 2021-01-01
- CHECKSUM 和 CHECKSUM_AGG:算法是什么? 2021-01-01
- 带更新的 sqlite CTE 2022-01-01
