How to use Mysql commands with ClearDB in Heroku?

自作多情 提交于 2019-12-08 02:38:26
Jason Awbrey

Format:

mysql -h host -uuser -ppassword

example:

mysql -h us-cdbr-east.cleardb.com -ubxxxxxx7 -p3xxxxxxx

How to find login info

Use this command in your heroku repo: heroku config

Look for the CLEARDB_DATABASE_URL

Format:

mysql://**user**:**password**@**host**/heroku_db_name?...

Example:

mysql://bxxxxxx7:3xxxxxxx@us-cdbr-east.cleardb.com/heroku_xxxxxx?...

After connecting, just USE heroku_db_name and query away!

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!