Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

大神,我所有的环境按照你的教程安装了,但是好像连接不上数据库,就是不能自动创建表。 #13

Open
Coder-Ali opened this issue Apr 18, 2019 · 1 comment

Comments

@Coder-Ali
Copy link

一直报错误Unhandled rejection SequelizeConnectionError: connect ETIMEDOUT at Utils.Promise.tap.then.catch.err (/Users/ali/Projects/nodejs-koa2-mysql-sequelize-jwt/node_modules/sequelize/lib/dialects/mysql/connection-manager.js:149:19)

@Coder-Ali
Copy link
Author

后台登录接口报这个错误

Error
Looks like something broke!

SequelizeConnectionError: connect ETIMEDOUT
at Utils.Promise.tap.then.catch.err (/Users/ali/Projects/nodejs-koa2-mysql-sequelize-jwt/node_modules/sequelize/lib/dialects/mysql/connection-manager.js:149:19)
at tryCatcher (/Users/ali/Projects/nodejs-koa2-mysql-sequelize-jwt/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/Users/ali/Projects/nodejs-koa2-mysql-sequelize-jwt/node_modules/bluebird/js/release/promise.js:512:31)
at Promise._settlePromise (/Users/ali/Projects/nodejs-koa2-mysql-sequelize-jwt/node_modules/bluebird/js/release/promise.js:569:18)
at Promise._settlePromise0 (/Users/ali/Projects/nodejs-koa2-mysql-sequelize-jwt/node_modules/bluebird/js/release/promise.js:614:10)
at Promise._settlePromises (/Users/ali/Projects/nodejs-koa2-mysql-sequelize-jwt/node_modules/bluebird/js/release/promise.js:689:18)
at Async._drainQueue (/Users/ali/Projects/nodejs-koa2-mysql-sequelize-jwt/node_modules/bluebird/js/release/async.js:133:16)
at Async._drainQueues (/Users/ali/Projects/nodejs-koa2-mysql-sequelize-jwt/node_modules/bluebird/js/release/async.js:143:10)
at Immediate.Async.drainQueues (/Users/ali/Projects/nodejs-koa2-mysql-sequelize-jwt/node_modules/bluebird/js/release/async.js:17:14)
at runCallback (timers.js:789:20)
at tryOnImmediate (timers.js:751:5)
at processImmediate [as _immediateCallback] (timers.js:722:5)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant