[MySQL] invalid connection handle
#10

Quote:
Originally Posted by Septikos
Посмотреть сообщение
I have spent the last half an hour or so to try and recreate your issue using your code. It doesn't seem to be working.



I am pretty sure this isn't true though, have you tried creating a small script that literally is a connection, then a function using information from the mysql and seeing if this works?

If this doesn't have the same issues then, I'm all out of ideas.

Best of luck.
Thank you for trying.

These are some of the includes I have in my gamemode:
Код:
#include <a_mysql>
#include <mysqlsettings> // Here lies the define MYSQL_HOST etc. along with the global variable "mysql".
#include <loginquery> //Here lies the loginquery script in the first post

OnGameModeInit() {
      mysql = mysql_connect(MYSQL_HOST, MYSQL_USER, MYSQL_DATABASE, MYSQL_PASSWORD);
}
I've also tried this inside the mysqlsettings.inc, but no success in removing the errors.
Код:
ConnectMySQL();
forward ConnectMySQL();
public ConnectMySQL()
{
 	mysql = mysql_connect(MYSQL_HOST, MYSQL_USER, MYSQL_DATABASE, MYSQL_PASSWORD);
	return 1;
}
Reply


Messages In This Thread
[MySQL] invalid connection handle - by introzen - 28.03.2016, 08:58
Re: [MySQL] invalid connection handle - by X337 - 28.03.2016, 13:26
Re: [MySQL] invalid connection handle - by introzen - 28.03.2016, 13:47
Re: [MySQL] invalid connection handle - by iKevin - 28.03.2016, 19:28
Re: [MySQL] invalid connection handle - by itsCody - 28.03.2016, 19:37
Re: [MySQL] invalid connection handle - by introzen - 28.03.2016, 20:31
Re: [MySQL] invalid connection handle - by Septikos - 29.03.2016, 03:29
Re: [MySQL] invalid connection handle - by introzen - 29.03.2016, 14:28
Re: [MySQL] invalid connection handle - by Septikos - 29.03.2016, 18:02
Re: [MySQL] invalid connection handle - by introzen - 29.03.2016, 19:20

Forum Jump:


Users browsing this thread: 1 Guest(s)