Jump to content
  • 0

Eroare baza de date


TheGodfather

Question

Salut, primesc aceste erori in logurile serverului si cred ca e de aici, dar nu stiu ce trebuie pus la nume_variabila

case 0: SQL = mysql_connect("nume_variabila", "user phpmyadmin", "nume baza de date", "parola baza de date"), print("Server: Oficial");

[01:17:24 03/04/22] [ERROR] CMySQLConnection::Connect - (error #2003) Can't connect to MySQL server on '127.0.0.1' (111)
[01:17:24 03/04/22] [ERROR] CMySQLConnection::Connect - (error #2003) Can't connect to MySQL server on '127.0.0.1' (111)
[01:24:04 03/04/22] [ERROR] CMySQLConnection::Connect - (error #2003) Can't connect to MySQL server on '136.243.219.108' (111)
[01:24:04 03/04/22] [ERROR] CMySQLConnection::Connect - (error #2003) Can't connect to MySQL server on '136.243.219.108' (111)
[01:24:04 03/04/22] [ERROR] CMySQLConnection::Connect - (error #2003) Can't connect to MySQL server on '136.243.219.108' (111)
[01:24:04 03/04/22] [ERROR] CMySQLConnection::Connect - (error #2003) Can't connect to MySQL server on '136.243.219.108' (111)
[01:28:36 03/04/22] [ERROR] CMySQLConnection::Connect - (error #2005) Unknown MySQL server host '136.243.219.101:3306' (2)
[01:28:36 03/04/22] [ERROR] CMySQLConnection::Connect - (error #2005) Unknown MySQL server host '136.243.219.101:3306' (0)
[01:28:36 03/04/22] [ERROR] CMySQLConnection::Connect - (error #2005) Unknown MySQL server host '136.243.219.101:3306' (0)
[01:28:36 03/04/22] [ERROR] CMySQLConnection::Connect - (error #2005) Unknown MySQL server host '136.243.219.101:3306' (0)
[01:31:47 03/04/22] [ERROR] CMySQLConnection::Connect - (error #2005) Unknown MySQL server host 'localhost:3306' (2)
[01:31:47 03/04/22] [ERROR] CMySQLConnection::Connect - (error #2005) Unknown MySQL server host 'localhost:3306' (0)
[01:31:47 03/04/22] [ERROR] CMySQLConnection::Connect - (error #2005) Unknown MySQL server host 'localhost:3306' (0)
[01:31:47 03/04/22] [ERROR] CMySQLConnection::Connect - (error #2005) Unknown MySQL server host 'localhost:3306' (0)
[01:34:05 03/04/22] [ERROR] CMySQLConnection::Connect - (error #2002) Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
[01:34:05 03/04/22] [ERROR] CMySQLConnection::Connect - (error #2002) Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
[01:34:05 03/04/22] [ERROR] CMySQLConnection::Connect - (error #2002) Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
[01:34:05 03/04/22] [ERROR] CMySQLConnection::Connect - (error #2002) Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
 

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0
On 3/4/2022 at 1:38 AM, TheGodfather said:

Salut, primesc aceste erori in logurile serverului si cred ca e de aici, dar nu stiu ce trebuie pus la nume_variabila

case 0: SQL = mysql_connect("nume_variabila", "user phpmyadmin", "nume baza de date", "parola baza de date"), print("Server: Oficial");

[01:17:24 03/04/22] [ERROR] CMySQLConnection::Connect - (error #2003) Can't connect to MySQL server on '127.0.0.1' (111)
[01:17:24 03/04/22] [ERROR] CMySQLConnection::Connect - (error #2003) Can't connect to MySQL server on '127.0.0.1' (111)
[01:24:04 03/04/22] [ERROR] CMySQLConnection::Connect - (error #2003) Can't connect to MySQL server on '136.243.219.108' (111)
[01:24:04 03/04/22] [ERROR] CMySQLConnection::Connect - (error #2003) Can't connect to MySQL server on '136.243.219.108' (111)
[01:24:04 03/04/22] [ERROR] CMySQLConnection::Connect - (error #2003) Can't connect to MySQL server on '136.243.219.108' (111)
[01:24:04 03/04/22] [ERROR] CMySQLConnection::Connect - (error #2003) Can't connect to MySQL server on '136.243.219.108' (111)
[01:28:36 03/04/22] [ERROR] CMySQLConnection::Connect - (error #2005) Unknown MySQL server host '136.243.219.101:3306' (2)
[01:28:36 03/04/22] [ERROR] CMySQLConnection::Connect - (error #2005) Unknown MySQL server host '136.243.219.101:3306' (0)
[01:28:36 03/04/22] [ERROR] CMySQLConnection::Connect - (error #2005) Unknown MySQL server host '136.243.219.101:3306' (0)
[01:28:36 03/04/22] [ERROR] CMySQLConnection::Connect - (error #2005) Unknown MySQL server host '136.243.219.101:3306' (0)
[01:31:47 03/04/22] [ERROR] CMySQLConnection::Connect - (error #2005) Unknown MySQL server host 'localhost:3306' (2)
[01:31:47 03/04/22] [ERROR] CMySQLConnection::Connect - (error #2005) Unknown MySQL server host 'localhost:3306' (0)
[01:31:47 03/04/22] [ERROR] CMySQLConnection::Connect - (error #2005) Unknown MySQL server host 'localhost:3306' (0)
[01:31:47 03/04/22] [ERROR] CMySQLConnection::Connect - (error #2005) Unknown MySQL server host 'localhost:3306' (0)
[01:34:05 03/04/22] [ERROR] CMySQLConnection::Connect - (error #2002) Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
[01:34:05 03/04/22] [ERROR] CMySQLConnection::Connect - (error #2002) Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
[01:34:05 03/04/22] [ERROR] CMySQLConnection::Connect - (error #2002) Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
[01:34:05 03/04/22] [ERROR] CMySQLConnection::Connect - (error #2002) Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
 

Salut, iti voi lasa un mic exemplu pentru mysql_connect, in loc de nume_variabila, pune ,,localhost",uite un exemplu. 

case 0: SQL    = mysql_connect("nume_variabila", "user phpmyadmin", "nume baza de date", "parola baza de date"), print("Server: Oficial");  // Ceea ce ai oferit tu

case 1: SQL   = mysql_connect("localhost", "root", "test", ""), print("Server: Beta");  // localhost (test fiind numele bazei de date, eu asa i-am pus in exemplu,tu poti schimba oricand cu numele db-ului tau.

 case 2: SQL  = mysql_connect("193.203.45.212", "client851_samp", "client851_samp", "FJDKMFRI2aDFrt2Fg"), print("Server: NORMAL");  // Ex. Date Host

//DB_Connect = mysql_connect(SERVER_HOST,   SERVER_USER,        SERVER_DB,           SERVER_PASS); // ca sa intelegi mai bine cum sunt structurate.

Iar in cazul in care ai date pentru host-ul respectiv,modifici datele de la case 2: SQL = mysql_connect, te iei dupa model cu datele tale de la Host si cam asta ar trebuii sa fie legat de conexiunea ta, Cheers!

Link to comment
Share on other sites

  • 0
10 hours ago, Aesma said:
Salut, iti voi lasa un mic exemplu pentru mysql_connect, in loc de nume_variabila, pune ,,localhost",uite un exemplu. 

case 0: SQL    = mysql_connect("nume_variabila", "user phpmyadmin", "nume baza de date", "parola baza de date"), print("Server: Oficial");  // Ceea ce ai oferit tu

case 1: SQL   = mysql_connect("localhost", "root", "test", ""), print("Server: Beta");  // localhost (test fiind numele bazei de date, eu asa i-am pus in exemplu,tu poti schimba oricand cu numele db-ului tau.

 case 2: SQL  = mysql_connect("193.203.45.212", "client851_samp", "client851_samp", "FJDKMFRI2aDFrt2Fg"), print("Server: NORMAL");  // Ex. Date Host

//DB_Connect = mysql_connect(SERVER_HOST,   SERVER_USER,        SERVER_DB,           SERVER_PASS); // ca sa intelegi mai bine cum sunt structurate.

Iar in cazul in care ai date pentru host-ul respectiv,modifici datele de la case 2: SQL = mysql_connect, te iei dupa model cu datele tale de la Host si cam asta ar trebuii sa fie legat de conexiunea ta, Cheers!

Ordinea datelor e ca la case 2, folosesc datele de la host si tot primesc acea eroare.

Link to comment
Share on other sites

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.