Duplicate connection detected [MYSQL WARNING]
#1

Hello guys, I don't know anything about this warning, please tell me a way to fix this issue. This always happens when I run 'gmx' command in server console and I didn't log out of the server, it just re-connects and then, it shows this warning.
Quote:

[WARNING] duplicate connection detected: handle id 1 already exists with host = 'localhost', username = 'root' and database = 'bare'

Reply
#2

Sorry for posting this without any effort to find out a solution, but now I found!
You just need to put 'mysql_close(MYSQL_HANDLE)' in 'public OnGamemodeExit()'
Reply
#3

If you have a filterscript which require to connect to your database, you will get the same warning.
You can use this in your OnGamemodeInit()
PHP код:
    
    mysql_global_options
(DUPLICATE_CONNECTIONStrue); 
Reply
#4

Quote:
Originally Posted by Dayrion
Посмотреть сообщение
If you have a filterscript which require to connect to your database, you will get the same warning.
You can use this in your OnGamemodeInit()
PHP код:
    
    mysql_global_options
(DUPLICATE_CONNECTIONStrue); 
I got it, thank you.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)