PDA

View Full Version : [MYSQL] Connecting error


Marc Johnson
20/06/2013, 01:53 PM
Connecting:
mysql = mysql_init(LOG_ALL);

// Connect to the database.
mysql_connect(SQL_HOST, SQL_USER, SQL_PASS, SQL_DB, mysql);

Log:
[Thu Jun 20 15:52:55 2013] Logging Started
[Thu Jun 20 15:52:55 2013] -------------------------
[Thu Jun 20 15:52:55 2013] Function: mysql_init executed with result: "0".
[Thu Jun 20 15:52:55 2013] Connected (0) to juracityrp @ db4free.net via TCP/IP.
[Thu Jun 20 15:52:55 2013] MySQL Server Version 5.6.12-log.
[Thu Jun 20 15:52:55 2013] Function: mysql_init executed with result: "1".
[Thu Jun 20 15:52:56 2013] Connected (1) to juracityrp @ db4free.net via TCP/IP.
[Thu Jun 20 15:52:56 2013] MySQL Server Version 5.6.12-log.
[Thu Jun 20 15:52:56 2013] Function: mysql_init executed with result: "2".
[Thu Jun 20 15:52:56 2013] Connected (2) to juracityrp @ db4free.net via TCP/IP.
[Thu Jun 20 15:52:56 2013] MySQL Server Version 5.6.12-log.
[Thu Jun 20 15:52:57 2013] Function: mysql_init executed with result: "3".
[Thu Jun 20 15:52:57 2013] Connected (3) to juracityrp @ db4free.net via TCP/IP.
[Thu Jun 20 15:52:57 2013] MySQL Server Version 5.6.12-log.
[Thu Jun 20 15:52:58 2013] Max connections (4) reached, could not connect.

Josh_Main
20/06/2013, 02:28 PM
Is your server updated to 0.3x?

Marc Johnson
20/06/2013, 02:30 PM
yes...........