Jump to content

Question

Posted

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)
 

2 answers to this question

Recommended Posts

  • 0
Posted
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!

  • 0
Posted
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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • 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.