Quote:
Originally Posted by senseit
There was an error on boot. Make sure your database is setup correctly.
|
Does this require an entire server restart? We've changed maps since we last loaded the plugin in hopes that it would re-read the database.cfg but we are still getting the unknown command: my_ban problem. The database itself is fine.
I'm not sure where this is getting it's user/pass from.. certainly not database.cfg because I have the username/password and all of that setup correctly in there but here are the errors I get:
Code:
L 07/29/2012 - 11:26:48: SourceMod error session started
L 07/29/2012 - 11:26:48: Info (map "ctf_2fort") (file "errors_20120729.log")
L 07/29/2012 - 11:26:48: [mysqlt_bans.smx] [MYBans] Could Not Connect to Database, error: [1045]: Access denied for user 'root'@'localhost' (using password: NO)
L 07/29/2012 - 11:27:05: [mysqlt_bans.smx] [MYBans] Database Connection Error: [1045]: Access denied for user 'root'@'localhost' (using password: NO)
L 07/29/2012 - 11:27:35: [SM] Native "SQL_TQuery" reported: Invalid database Handle 0 (error: 4)
L 07/29/2012 - 11:27:35: [SM] Displaying call stack trace for plugin "mysqlt_bans.smx":
L 07/29/2012 - 11:27:35: [SM] [0] Line 95, /home/groups/alliedmodders/forums/files/5/8/2/6/8/106979.attach::OnClientPostAdminCheck()
L 07/29/2012 - 11:28:06: [SM] Native "SQL_TQuery" reported: Invalid database Handle 0 (error: 4)
L 07/29/2012 - 11:28:06: [SM] Displaying call stack trace for plugin "mysqlt_bans.smx":
L 07/29/2012 - 11:28:06: [SM] [0] Line 95, /home/groups/alliedmodders/forums/files/5/8/2/6/8/106979.attach::OnClientPostAdminCheck()
L 07/29/2012 - 11:28:30: [SM] Native "SQL_TQuery" reported: Invalid database Handle 0 (error: 4)
L 07/29/2012 - 11:28:30: [SM] Displaying call stack trace for plugin "mysqlt_bans.smx":
L 07/29/2012 - 11:28:30: [SM] [0] Line 95, /home/groups/alliedmodders/forums/files/5/8/2/6/8/106979.attach::OnClientPostAdminCheck()
L 07/29/2012 - 11:28:41: [SM] Native "SQL_TQuery" reported: Invalid database Handle 0 (error: 4)
L 07/29/2012 - 11:28:41: [SM] Displaying call stack trace for plugin "mysqlt_bans.smx":
L 07/29/2012 - 11:28:41: [SM] [0] Line 136, /home/groups/alliedmodders/forums/files/5/8/2/6/8/106979.attach::Command_Ban()
L 07/29/2012 - 11:29:11: [SM] Native "SQL_TQuery" reported: Invalid database Handle 0 (error: 4)
L 07/29/2012 - 11:29:11: [SM] Displaying call stack trace for plugin "mysqlt_bans.smx":
L 07/29/2012 - 11:29:11: [SM] [0] Line 136, /home/groups/alliedmodders/forums/files/5/8/2/6/8/106979.attach::Command_Ban()
Database is fine..
Code:
mysql> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| mysql |
| mysqlbans |
| sourcebans |
+--------------------+
4 rows in set (0.05 sec)
database.cfg is fine..
Code:
"Databases"
{
"driver_default" "mysql"
// When specifying "host", you may use an IP address, a hostname, or a socket file path
"default"
{
"driver" "mysql"
"host" "localhost"
"database" "sourcemod"
"user" "myaccount"
"pass" "mypassword"
}
"mysqlbans"
{
"driver" "mysql"
"host" "localhost"
"database" "mysqlbans"
"user" "user"
"pass" "pass"
//"timeout" "0"
"port" "3306"
}
}