Php 如何在Heroku中将Mysql命令与ClearDB一起使用?
我正在将Php 如何在Heroku中将Mysql命令与ClearDB一起使用?,php,mysql,heroku,cleardb,Php,Mysql,Heroku,Cleardb,我正在将ClearDB与Heroku一起使用。 我成功地进行了所需的迁移,但当我无法找到使用终端执行查询的方法时,如下所示: 从表中选择* 提前感谢。格式: mysql -h host -uuser -ppassword mysql://**user**:**password**@**host**/heroku_db_name?... 例如: mysql -h us-cdbr-east.cleardb.com -ubxxxxxx7 -p3xxxxxxx 如何查找登录信息 在heroku r
ClearDB
与Heroku
一起使用。
我成功地进行了所需的迁移,但当我无法找到使用终端执行查询的方法时,如下所示:
从表中选择*
提前感谢。格式:
mysql -h host -uuser -ppassword
mysql://**user**:**password**@**host**/heroku_db_name?...
例如:
mysql -h us-cdbr-east.cleardb.com -ubxxxxxx7 -p3xxxxxxx
如何查找登录信息
在heroku repo中使用此命令:heroku config
查找CLEARDB\u数据库\u URL
格式:
mysql -h host -uuser -ppassword
mysql://**user**:**password**@**host**/heroku_db_name?...
例如:
mysql://bxxxxxx7:3xxxxxxx@us-cdbr-east.cleardb.com/heroku_xxxxxx?...
连接后,只需使用heroku\u db\u name
即可查询