远程连接到clearDB heroku数据库

编程入门 行业动态 更新时间:2024-10-27 12:41:35
本文介绍了远程连接到clearDB heroku数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

如何在heroku上执行远程连接到ClearDB MySQL数据库,例如使用MySQL查询浏览器。在哪里可以获取网址,端口,登录和密码?

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数据库。 之后,点击您的数据库,选择端点信息标签。在那里你会看到你的用户名/密码。可以通过在命令行中运行 heroku config --app< YOUR-APP-NAME> 来获取数据库的URL。

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 / DATABASE ?reconnect = true 您需要的是这个部分: us-cdbr-east.cleardb

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

更多推荐

远程连接到clearDB heroku数据库

本文发布于:2023-10-18 12:03:59,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1504180.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:连接到   数据库   clearDB   heroku

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!