【发布时间】:2014-04-17 14:46:16
【问题描述】:
Sequlize 在应用迁移时抛出错误。
# sequelize --config config/config.js -m
Loaded configuration file "config/config.js".
Loaded configuration file "config/config.js".
Unable to connect to database: Error: Failed to authenticate for MySQL. Please double check your settings.
Config.js
"db": {
"development": {
"username": "imvgm_dev",
"password": "imvgm_dev",
"database": "imvgm_development",
"host": "localhost"
},
"production": {
"username": "imvgm_production",
"password": "imvgm_production",
"database": "imvgm_production",
"host": "localhost"
},
"testing": {
"username": "imvgm_testing",
"password": "imvgm_testing",
"database": "imvgm_testing",
"host": "localhost"
}
我可以通过
轻松连接到dbmysql --host=localhost --user=imvgm_dev --password=imvgm_dev imvgm_development
有什么想法吗?
【问题讨论】:
标签: node.js ubuntu orm sequelize.js