11.01.2011, 09:16
Quote:
Why the server crashes, when i create over 3 connections to the same database ?
|
Example, you'd make some defines, like the
pawn Код:
#define HOST_ADDR "127.0.0.1"
#define HOST_USER "usernameofdatabasehere"
#define HOST_PASS "passwordhere"
#define HOST_DATA "databasehere"
pawn Код:
new MySQL:connection = mysql_init(LOG_ONLY_ERRORS);
mysql_connect(HOST_ADDR, HOST_USER, HOST_PASS, HOST_DATA, connection, 1);
pawn Код:
#define TABLENAME1 Accounts
#define TABLENAME2 Bans
#define TABLENAME3 Cars