Mysql heroku cleardb客户端丢失错误
我正在尝试将mysql数据库迁移到heroku cleardb中。我正在做节点服务。Mysql heroku cleardb客户端丢失错误,mysql,node.js,heroku,knex.js,cleardb,Mysql,Node.js,Heroku,Knex.js,Cleardb,我正在尝试将mysql数据库迁移到heroku cleardb中。我正在做节点服务。 我的代码是, knexfile.js production: { client: "mysql", connection: { host: "us-cdbr-iron-east-04.cleardb.net", user: "bcf521a*******", password: "9282****", database: "heroku_9c9d767dbb*****" }
我的代码是,
knexfile.js
production: {
client: "mysql",
connection: {
host: "us-cdbr-iron-east-04.cleardb.net",
user: "bcf521a*******",
password: "9282****",
database: "heroku_9c9d767dbb*****"
}
}
在heroku中,使用CLEARDB_DATABASE_URL设置配置。完成。当我试着跑的时候
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
终端错误显示
knex: Required configuration option 'client' is missing
如何解决这个问题 在heroku环境中是否有NODE_ENV=生产集?另外,您没有显示整个knex文件,因此可能也有一些问题。@MikaelLepistö,当我运行迁移时,它将环境作为生产。我尝试手动导入,这会导致当前的_时间戳错误。因为版本