Conneciton timeout

Username (e.g. epiz_XXX) or Website URL

This account.

Error Message

errorno: ‘ETIMEDOUT’,
code: ‘ETIMEDOUT’,
syscall: ‘connect’,
fatal: true

Other Information

I am using the following data, I will censor the password. The error is not an incorrect password:

    "host": "185.27.134.10",
    "user": "epiz_27638044",
    "password": "G3GF78Q34GYW8Q347FYQVC3T3R5G9ERHGSHE5GSHERIGHSEIUGHSW45HGS54HS5HGIUSH5GIUSH5GIUSHE5IUGHSE5UIGQ389GH4H",
    "database": "epiz_27638044_Utility_Bot"

Also, I’m using discord.js bot making.

connection.end() might have been executed before the call back see if this help

const Discord = require('discord.js');

const config = require("./config.json");

const { Client } = require('discord.js');

const client = new Client();

const ms = require("ms");

const Gamedig = require('gamedig');

const { readSync } = require('fs');

const { circle } = require('jimp');

const { createConnection } = require('mysql');

// Prepare the mysql connection

let db = createConnection(config.mysql);

// Then we are going to connect to our MySQL database and we will test this on errors

db.connect(err => {

    // Console log if there is an error

    if (err) return console.log(err);

    // No error found?

    console.log(`MySQL has been connected!`);

});

client.on('ready', async () =>

{

    console.log(`Logged in as ${client.user.tag}!`);

});

   

client.on('message', async msg =>

{

    if(msg.author.bot) 

        return;

        

    if (msg.content === 'ping')

    {

        msg.reply('pong');

    }

});

client.login(config.token);

I don’t think that’s the case.

Remote MySQL is not supported in free hosting

3 Likes

You are you trying to connect MySql server within Infinity or is it Remote server?

If it’s local (Infinity Your account MySQL) then try using the password given in your Accounts page

Login to your account - InfinityFree epiz_xxxx/

Capture

he is trying to access it from Outside of Infinityfree network which is impossible.

2 Likes

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.