heroku cleardb客户端遗漏错误

时间:2018-05-09 08:38:20

标签: mysql node.js heroku knex.js cleardb

我正在尝试将mysql数据库迁移到heroku cleardb。我正在做节点服务 我试过的代码是,
knexfile.js

URL url = new URL("jar:file:/absolute/location/of/yourJar.jar!/1.txt");
InputStream is = url.openStream();

在heroku中,使用CLEARDB_DATABASE_URL.it设置配置。当我尝试运行时

production: {
client: "mysql",
connection: {
  host:     "us-cdbr-iron-east-04.cleardb.net",
  user:     "bcf521a*******",
  password: "9282****",
  database: "heroku_9c9d767dbb*****"
}    
}  

终端错误显示,

heroku run node_modules/.bin/knex migrate:latest
Running node_modules/.bin/knex migrate:latest on ⬢ hidden-taiga-65640
... up, run.7007 (Free)
Using environment: production  

如何解决这个问题?

0 个答案:

没有答案