Jump to content

Question

Posted (edited)

Salut, dintr-un motiv sau altul, primesc aceasta eroare in loguri si nu am idee de ce. Codul pare ok.

[ERROR] CMySQLQuery::Execute[CheckFMembers] - (error #2013) Lost connection to MySQL server during query (Query: "SELECT * FROM `users` WHERE `Member` = '1'")

[ERROR] CMySQLQuery::Execute[CheckFMembers] - (error #2003) Can't connect to MySQL server on 'ip_de_la_sv' (111) (Query: "SELECT * FROM `users` WHERE `Member` = '2'")

Functia in care apare eroarea este aceasta:

Size-ul de la gQuery este mare, deci nu are niciun motiv sa fie problema de la asta.

function GetFMembers() {
    for(new i = 1; i < 16; i++) {
        gQuery[0] = EOS;
        mysql_format(SQL, gQuery, sizeof(gQuery), "SELECT * FROM `users` WHERE `Member` = '%d'", i);
        mysql_tquery(SQL, gQuery, "CheckFMembers", "i", i);
    }
    return true;
}

EDIT: Tin sa mentionez ca eroarea nu apare de fiecare data cand functia este apelata.

Edited by TheGodfather

3 answers to this question

Recommended Posts

  • 0
Posted
On 6/28/2024 at 6:16 PM, AlexxAdv said:

L ai hostat pe propriul tau vps/dedicat ma gandesc, daca nu, vorbeste cu cei de la host sa ti rezolve.

Daca l ai hostat pe vps tau, ai aici o mica explicare https://stackoverflow.com/questions/1884859/lost-connection-to-mysql-server-during-query

Am vorbit cu cei de la host, dar iar a aparut eroarea.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.