Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/mysql/62.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/google-apps-script/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Mysql heroku应用程序-登录时崩溃_Mysql_Sql_Heroku_Go_Cleardb - Fatal编程技术网

Mysql heroku应用程序-登录时崩溃

Mysql heroku应用程序-登录时崩溃,mysql,sql,heroku,go,cleardb,Mysql,Sql,Heroku,Go,Cleardb,我正在尝试让我的应用程序在Heroku上运行。我用围棋建立了我的程序。我正在使用clearDB作为我的SQL数据库 Heroku显示我的web应用程序的第一个页面,这是一个登录页面。但是,当我输入用户名和密码注册时,页面上会显示“应用程序错误”通知。这是我运行Heroku日志时出现的错误消息: 2014-08-21T16:22:21.444654+00:00 heroku[web.1]: State changed from crashed to starting 2014-08-21T16:2

我正在尝试让我的应用程序在Heroku上运行。我用围棋建立了我的程序。我正在使用clearDB作为我的SQL数据库

Heroku显示我的web应用程序的第一个页面,这是一个登录页面。但是,当我输入用户名和密码注册时,页面上会显示“应用程序错误”通知。这是我运行Heroku日志时出现的错误消息:

2014-08-21T16:22:21.444654+00:00 heroku[web.1]: State changed from crashed to starting
2014-08-21T16:22:22.993357+00:00 heroku[web.1]: Starting process with command `twitter`
2014-08-21T16:22:24.503757+00:00 heroku[web.1]: State changed from starting to up
2014-08-21T16:22:21.231175+00:00 heroku[api]: Release v8 created by xxxx@gmail.com
2014-08-21T16:22:46.419654+00:00 heroku[router]: at=info method=GET path="/" host=stark-sierra-5001.herokuapp.com request_id=c6f5b0a6-b56a-425e-a359-ca3817b6e4bd fwd="118.200.62.108 ,220.255.1.18"dyno=web.1 connect=7ms service=4ms status=200 bytes=866
2014-08-21T16:22:47.195639+00:00 heroku[router]: at=info method=GET path="/stylesheets/log.css"host=stark-sierra-5001.herokuapp.com request_id=6360fc0e-c822-491d-89d2-663ce743ba04 fwd="118.200.62.108 ,220.255.1.18" dyno=web.1 connect=2ms service=5ms status=200 bytes=889
2014-08-21T16:23:01.541153+00:00 heroku[router]: at=error code=H13 desc="Connection closed without response" method=POST path="/login" host=stark-sierra-5001.herokuapp.com request_id=31763bf8-0e4e-4fa9-903b-ff6b2eda9a31 fwd="118.200.62.108 ,220.255.1.18" dyno=web.1 connect=2ms service=4ms status=503 bytes=1036
2014-08-21T16:23:01.530628+00:00 app[web.1]: Fatal error Default addr for network 'us-cdbr-iron-east-01.cleardb.net' unknown

我怀疑这是一个数据库错误。但我的数据库似乎没有问题。我该怎么办?

你能试着用这个作为地址吗:
54.227.215.252
?这只是us-cdbr-iron-east-01.cleardb.net的IP地址,根据,请尝试以下格式配置主机:
HOST=locahost:3306
谢谢,我如何配置?我不确定(我从未使用过Heroku或Go)它在本地工作吗?