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

Connection timeout #10

Open
seonake opened this issue Dec 30, 2022 · 0 comments
Open

Connection timeout #10

seonake opened this issue Dec 30, 2022 · 0 comments

Comments

@seonake
Copy link

seonake commented Dec 30, 2022

Hi, thanks for the code... it seems I am doing something wrong, but i have no idea what is happening:

  1. I tried to run your code, but i got connection refused ( I think something wrong whith por number... server is listenning port 8080 and sequelize/database are using 3306 by default ).

  2. At models/index.js I just added a line to change the port:
    host: config.HOST,
    dialect: config.dialect,
    operatorsAliases: 0,
    port:'8080'

  3. Now connection is not refused, but i got a time out error

original: Error: connect ETIMEDOUT
at Connection._handleTimeoutError (C:[...]\node_modules\mysql2\lib\connection.js:189:17)
at listOnTimeout (node:internal/timers:559:17)
at processTimers (node:internal/timers:502:7) {
errorno: 'ETIMEDOUT',
code: 'ETIMEDOUT',
syscall: 'connect',
fatal: true
}
}

  1. I am using "mysql2": "^2.3.3" and "sequelize": "^6.28.0"... Maybe the error could be from differente versions of the packages?

Thanks in advance.
Cheers

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