Я все данные передаю правильно(user, password, database) такие же как при коннекте к mysql
I try to do db-migrate up but got next error: server/src/scripts on master [✘»!+?] via ⬢ v18.17.0 on ☁️ (eu-west-3)
❯ db-migrate up
Ignoring invalid configuration option passed to Connection: driver. This is currently a warning, but in future versions of MySQL2, an error will be thrown if you pass an invalid configuration option to a Connection
[ERROR] AssertionError [ERR_ASSERTION]: ifError got unwanted exception: getaddrinfo ENOTFOUND mysql
at module.exports (/Users/ruslanpostoiukstonly/Desktop/Work/pritunnel/server/node_modules/db-migrate/lib/commands/helper/assert.js:9:14)
at /Users/ruslanpostoiukstonly/Desktop/Work/pritunnel/server/node_modules/db-migrate/lib/commands/up.js:19:14
at /Users/ruslanpostoiukstonly/Desktop/Work/pritunnel/server/node_modules/db-migrate/connect.js:17:7
at /Users/ruslanpostoiukstonly/Desktop/Work/pritunnel/server/node_modules/db-migrate/lib/driver/index.js:95:9
at /Users/ruslanpostoiukstonly/Desktop/Work/pritunnel/server/node_modules/db-migrate-mysql/index.js:518:14
at Connection.<anonymous> (/Users/ruslanpostoiukstonly/Desktop/Work/pritunnel/server/node_modules/db-migrate-mysql/node_modules/mysql2/lib/connection.js:775:13)
at Object.onceWrapper (node:events:629:26)
at Connection.emit (node:events:514:28)
at Connection._notifyError (/Users/ruslanpostoiukstonly/Desktop/Work/pritunnel/server/node_modules/db-migrate-mysql/node_modules/mysql2/lib/connection.js:236:12)
at Connection._handleFatalError (/Users/ruslanpostoiukstonly/Desktop/Work/pritunnel/server/node_modules/db-migrate-mysql/node_modules/mysql2/lib/connection.js:167:10)
at Connection._handleNetworkError (/Users/ruslanpostoiukstonly/Desktop/Work/pritunnel/server/node_modules/db-migrate-mysql/node_modules/mysql2/lib/connection.js:180:10)
at Socket.emit (node:events:514:28)
at emitErrorNT (node:internal/streams/destroy:151:8)
at emitErrorCloseNT (node:internal/streams/destroy:116:3)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:108:26).
Это не ошибки СУБД, это клиент, решай эти проблемы на клиенте
Проверь хост БД
Обсуждают сегодня