Jump to content
  • 0

Bug baza de date


TheGodfather

Question

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
Link to comment
Share on other sites

2 answers to this question

Recommended Posts

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.