Pomoc oko mysql

Započeo Lomenzi, Jun 06, 2023, 23:42:09 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 3 gostiju pregledaju ovu temu.

Problem(error/warning):ako moze neko help kako da povezem definisao sam localhost,user,pass,database i nece kad pokrenem kucni srw pise samo Cannot connect, shutting down i ugasi se
Deo skripte:/
Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log):
Slika/video ingame problema(obavezno ako je ingame problem):/
stock mysql_login() { new MySQLOpt: option_id = mysql_init_options(); mysql_set_option(option_id, AUTO_RECONNECT, true); mysql_set_option(option_id, SERVER_PORT, 7777); Database = mysql_connect(MYSQL_HOST, MYSQL_USER, MYSQL_PASS, MYSQL_DATABASE, option_id); if(Database == MYSQL_INVALID_HANDLE || mysql_errno(Database) != 0) { print("[DATABASE] * Cannot connect, shutting down."); SendRconCommand("exit"); return 1; } print("[DATABASE] * Successfully connected to the MySQL database!"); return true; }