12.10.2016, 02:48
Hello everyone,
I was using the old version of BlueG's MySQL (r20) and I had no problem with connection or anything. But i decided to update MySQL version. And it came with connection problem. I'm using that code;
When I start the server, it logs "Connection failed!". But with the older versions of MySQL plugin, I have no problem.
What could be causing this?
I was using the old version of BlueG's MySQL (r20) and I had no problem with connection or anything. But i decided to update MySQL version. And it came with connection problem. I'm using that code;
Код:
new MySQL:mysqlConn;
public OnGameModeInit()
{
print("[MySql] Connecting to database...");
mysqlConn = mysql_connect(SQL_HOST, SQL_USER, SQL_PASS, SQL_DATABASE);
mysql_log(ALL);
if (mysql_errno(mysqlConn) != 0)
{
print("[MySql] Connected!");
}
else
{
print("[MySql] Connection Failed!");
}
return 1;
}
What could be causing this?


