MySQL Forums
Forum List  »  Newbie

Port Error on Mac
Posted by: Carl Devan
Date: April 23, 2023 08:15AM

I'm a student and i had to install MySQL on my Macbook using homebrew which gave me no issues however when i run npm start, it gives me this error. I have tried everything to resolve and troubleshoot this error. Does anyone know what this error means?? Please help me as I can't afford to switch to Windows this far into school and i kinda blew my money on a macbook anyways so pls help. Thank you!

> server@1.0.0 start
> nodemon index.js

[nodemon] 2.0.22
[nodemon] to restart at any time, enter `rs`
[nodemon] watching path(s): *.*
[nodemon] watching extensions: js,mjs,json
[nodemon] starting `node index.js`
/Users/carljeremiah/Desktop/school/Full Stack/Week 1/server/node_modules/sequelize/lib/dialects/mysql/connection-manager.js:98
throw new SequelizeErrors.HostNotReachableError(err);
^

HostNotReachableError [SequelizeHostNotReachableError]: connect EHOSTUNREACH 0.0.12.234:3306 - Local (192.168.79.13:50016)
at ConnectionManager.connect (/Users/carljeremiah/Desktop/school/Full Stack/Week 1/server/node_modules/sequelize/lib/dialects/mysql/connection-manager.js:98:17)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async ConnectionManager._connect (/Users/carljeremiah/Desktop/school/Full Stack/Week 1/server/node_modules/sequelize/lib/dialects/abstract/connection-manager.js:222:24)
at async /Users/carljeremiah/Desktop/school/Full Stack/Week 1/server/node_modules/sequelize/lib/dialects/abstract/connection-manager.js:174:32
at async ConnectionManager.getConnection (/Users/carljeremiah/Desktop/school/Full Stack/Week 1/server/node_modules/sequelize/lib/dialects/abstract/connection-manager.js:197:7)
at async /Users/carljeremiah/Desktop/school/Full Stack/Week 1/server/node_modules/sequelize/lib/sequelize.js:305:26
at async MySQLQueryInterface.tableExists (/Users/carljeremiah/Desktop/school/Full Stack/Week 1/server/node_modules/sequelize/lib/dialects/abstract/query-interface.js:102:17)
at async Tutorial.sync (/Users/carljeremiah/Desktop/school/Full Stack/Week 1/server/node_modules/sequelize/lib/model.js:939:21)
at async Sequelize.sync (/Users/carljeremiah/Desktop/school/Full Stack/Week 1/server/node_modules/sequelize/lib/sequelize.js:377:9) {
parent: Error: connect EHOSTUNREACH 0.0.12.234:3306 - Local (192.168.79.13:50016)
at internalConnect (node:net:1066:16)
at defaultTriggerAsyncIdScope (node:internal/async_hooks:464:18)
at GetAddrInfoReqWrap.emitLookup [as callback] (node:net:1323:9)
at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:109:8) {
errno: -65,
code: 'EHOSTUNREACH',
syscall: 'connect',
address: '0.0.12.234',
port: 3306,
fatal: true
},
original: Error: connect EHOSTUNREACH 0.0.12.234:3306 - Local (192.168.79.13:50016)
at internalConnect (node:net:1066:16)
at defaultTriggerAsyncIdScope (node:internal/async_hooks:464:18)
at GetAddrInfoReqWrap.emitLookup [as callback] (node:net:1323:9)
at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:109:8) {
errno: -65,
code: 'EHOSTUNREACH',
syscall: 'connect',
address: '0.0.12.234',
port: 3306,
fatal: true
}
}

Node.js v18.16.0
[nodemon] app crashed - waiting for file changes before starting...

Options: ReplyQuote


Subject
Written By
Posted
Port Error on Mac
April 23, 2023 08:15AM


Sorry, only registered users may post in this forum.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.