Server doesn't seem to connect to the MySQL database
#6

I have downloaded the latest version of mysql by BlueG and testing your script with some changes.
Try this!

Code:
new m_iHandle = mysql_connect(SQL_HOSTNAME, SQL_USERNAME, SQL_DATABASE, SQL_PASSWORD, 3306, true, 2);
	
	if(mysql_errno() != 0)
		printf("[SQL] Connection to \"%s\" failed! Please check the connection settings...\a", SQL_HOSTNAME);

	printf("[SQL] Connection to \"%s\" passed!", SQL_HOSTNAME);
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)