Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/mysql/60.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/2/node.js/39.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 cleardb客户端丢失错误_Mysql_Node.js_Heroku_Knex.js_Cleardb - Fatal编程技术网

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*****" }

我正在尝试将mysql数据库迁移到heroku cleardb中。我正在做节点服务。
我的代码是,
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ö,当我运行迁移时,它将环境作为生产。我尝试手动导入,这会导致当前的_时间戳错误。因为版本