Discord bot db error

Status
This thread has been locked.

5916

Feedback score
0
Posts
27
Reactions
6
Resources
0
Hi there! I have a bot that I downloaded from my OVH server, I want to upload it to Bloom.host, I made a new db and changed the db credentials the bot needed but it crashes with this error

> /home/container/handlers/db.js:14
> if (err) throw err;
> ^
>
> Error: getaddrinfo ENOTFOUND jackrussell.bloom.host:3306
> at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:66:26)
> --------------------
> at Protocol._enqueue (/home/container/node_modules/mysql/lib/protocol/Protocol.js:144:4:cool:
> at Protocol.handshake (/home/container/node_modules/mysql/lib/protocol/Protocol.js:51:23)
> at Connection.connect (/home/container/node_modules/mysql/lib/Connection.js:116:1:cool:
> at Object.<anonymous> (/home/container/handlers/db.js:13:5)
> at Module._compile (internal/modules/cjs/loader.js:999:30)
> at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
> at Module.load (internal/modules/cjs/loader.js:863:32)
> at Function.Module._load (internal/modules/cjs/loader.js:708:14)
> at Module.require (internal/modules/cjs/loader.js:887:19)
> at require (internal/modules/cjs/helpers.js:74:1:cool: {
> errno: 'ENOTFOUND',
> code: 'ENOTFOUND',
> syscall: 'getaddrinfo',
> hostname: 'jackrussell.bloom.host:3306',
> fatal: true
> }
> container@pterodactyl~ Server marked as offline...
>
> [Pterodactyl Daemon]: ---------- Detected server process in a crashed state! ----------



The new host (Bloom) mentioned: I would ask the developer if they tested it with external db hosts

If you could help me out, please add me on Discord using #T-34#7549
 
PebbleHost
High performance, consistent uptime and fast support. Minecraft hosting that just works.

rida

Software Developer https://rida.dev/
Premium
Feedback score
6
Posts
83
Reactions
54
Resources
0
getaddrinfo ENOTFOUND jackrussell.bloom.host:3306
This means that you're not hosting the database at that domain.

I went ahead and pinged the server, and it doesn't look like the port 3306 is online. So you're not hosting anything there. Make sure the database itself is actually live.
 
Status
This thread has been locked.
Top