AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting (https://forums.alliedmods.net/forumdisplay.php?f=107)
-   -   MySQL: Invalid database Handle (https://forums.alliedmods.net/showthread.php?t=289916)

aequabit 11-01-2016 05:17

MySQL: Invalid database Handle
 
On Windows everything works fine, but on Linux I get the following error when calling SQL_TQuery:

HTML Code:

L 11/01/2016 - 10:14:41: [SM] Exception reported: Invalid database Handle 0 (error: 4)
L 11/01/2016 - 10:14:41: [SM] Blaming: mycoolplugin.smx
L 11/01/2016 - 10:14:41: [SM] Call stack trace:
L 11/01/2016 - 10:14:41: [SM]  [0] SQL_TQuery
L 11/01/2016 - 10:14:41: [SM]  [1] Line 18, D:\sourcemod\scripting\mycoolplugin.sp::OnPluginStart

The MySQL server is running on 127.0.0.1 and the credentials are also valid. Any ideas?

Neuro Toxin 11-01-2016 07:02

Re: MySQL: Invalid database Handle
 
Code:

if (hDatabase == null)
{
    // do something
    return;
}



All times are GMT -4. The time now is 14:57.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.