这是我的全部错误,我安装了所有的coorect依赖项,但我不明白为什么我仍然一次又一次地遇到同样的错误。
➜ 未解决的Git:(主)✗ node server.js
未处理的拒绝sequelizeconnectionerror:未知数据库“sequelize_library”位于/users/usersname/desktop/projects/node_modules/bluebird/js/release/util.js:16:23)
承诺时。(users/username/desktop/projects/node\u modules/bluebird/js/release/promise.js:547:31)承诺时。(users/username/desktop/projects/node\modules/bluebird/js/release/promise.js:604:18)承诺时(承诺时(users/users/username/desktop/projects/projects/node\u modules/blem/blues/blem/blues/promise/promise/在promise.在async.在drainqueuestep(/users/username/desktop/projects/node\u modules/bluebird/js/release/projects/node\js/js/release/async.js:93:12)在drainqueue(/users/username/desktop/projects/node\modules/bluebird/js/release/async.js:86:9)在async.在async.在drainqueues(/users/username/desktop/projects/node_modules/bluebird/js/release/async.js:102:5)在immediate.async.drainqueues[as(onimmediate)](/users/username/desktop/projects/node_modules/bluebird/js/release/async.js:15:14)在processimmediate(internal/timers.js:461:21)
1条答案
按热度按时间lkaoscv71#
在安装了所有正确的依赖项的情况下获取此错误。对我有效的是
(所有命令进入终端)
使用
/usr/local/mysql/bin/mysql -uroot -p
输入我的密码然后运行source schema.sql
它保存了我的创建数据库代码我
quit
sql&跑
node server.js