Raised This Month: $51 Target: $400
 12% 

Database failure: Could not find driver "mysql"


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
mats
Senior Member
Join Date: Jan 2005
Old 05-05-2008 , 14:02   Database failure: Could not find driver "mysql"
Reply With Quote #1

I have a problem with sourcebans
Code:
L 05/05/2008 - 19:50:38: [sourcebans.smx] Database failure: Could not find driver "mysql"
L 05/05/2008 - 19:50:38: [sourcebans.smx] Database failure: Could not find driver "mysql"
L 05/05/2008 - 19:50:38: [sourcebans.smx] Database failure: Could not find driver "mysql"
L 05/05/2008 - 19:54:58: [sourcebans.smx] Database failure: Could not find driver "mysql"
L 05/05/2008 - 19:54:58: [sourcebans.smx] Database failure: Could not find driver "mysql"
L 05/05/2008 - 19:54:58: [sourcebans.smx] Database failure: Could not find driver "mysql"
L 05/05/2008 - 19:55:04: [sourcebans.smx] Database failure: Could not find driver "mysql"
L 05/05/2008 - 19:55:04: [sourcebans.smx] Database failure: Could not find driver "mysql"
L 05/05/2008 - 19:55:04: [sourcebans.smx] Database failure: Could not find driver "mysql"
Code:
L 05/05/2008 - 19:50:38: SourceMod error session started
L 05/05/2008 - 19:50:38: Info (map "de_dust") (file "errors_20080505.log")
L 05/05/2008 - 19:50:38: [SM] Unable to load extension "dbi.mysql.ext.so": No such file or directory
L 05/05/2008 - 19:50:38: [SM] Native "LogToFile" reported: Could not open file "/home/game17/cstrike/"
L 05/05/2008 - 19:50:38: [SM] Debug mode is not enabled for "sourcebans.smx"
L 05/05/2008 - 19:50:38: [SM] To enable debug mode, edit plugin_settings.cfg, or type: sm plugins debug 3 on
L 05/05/2008 - 19:54:58: SourceMod error session started
L 05/05/2008 - 19:54:58: Info (map "de_dust") (file "errors_20080505.log")
L 05/05/2008 - 19:54:58: [SM] Unable to load extension "dbi.mysql.ext.so": No such file or directory
L 05/05/2008 - 19:54:58: [SM] Native "LogToFile" reported: Could not open file "/home/game17/cstrike/"
L 05/05/2008 - 19:54:58: [SM] Debug mode is not enabled for "sourcebans.smx"
L 05/05/2008 - 19:54:58: [SM] To enable debug mode, edit plugin_settings.cfg, or type: sm plugins debug 3 on
L 05/05/2008 - 19:55:04: SourceMod error session started
L 05/05/2008 - 19:55:04: Info (map "de_dust") (file "errors_20080505.log")
L 05/05/2008 - 19:55:04: [SM] Unable to load extension "dbi.mysql.ext.so": No such file or directory
L 05/05/2008 - 19:55:04: [SM] Native "LogToFile" reported: Could not open file "/home/game17/cstrike/"
L 05/05/2008 - 19:55:04: [SM] Debug mode is not enabled for "sourcebans.smx"
L 05/05/2008 - 19:55:04: [SM] To enable debug mode, edit plugin_settings.cfg, or type: sm plugins debug 3 on
I have seen this page: http://bugs.alliedmods.net/?do=details&task_id=801

and my host used this command:
Code:
ldd -d -r addons/sourcemod/extensions/dbi.mysql.ext.so
also he put the rights on the file to: -rwxr-xr-x

but still getting the same error
I just installed sourcemod, and when I install the plugin local(windows vista), everything is working perfect
__________________

Last edited by mats; 05-05-2008 at 15:58.
mats is offline
DontWannaName
Veteran Member
Join Date: Jun 2007
Location: VALVe Land, WA
Old 05-05-2008 , 17:11   Re: Database failure: Could not find driver "mysql"
Reply With Quote #2

Post your database.cfg with your info blocked out so we can see the format its in cause I have done the format wrong before and it didnt work right at all. I dont know much about the whole SM Database system though.
__________________

DontWannaName is offline
mats
Senior Member
Join Date: Jan 2005
Old 05-05-2008 , 17:22   Re: Database failure: Could not find driver "mysql"
Reply With Quote #3

Quote:
Originally Posted by DontWannaName View Post
Post your database.cfg with your info blocked out so we can see the format its in cause I have done the format wrong before and it didnt work right at all. I dont know much about the whole SM Database system though.
Code:
"Databases"
{
	"driver_default"		"mysql"
	
	"default"
	{
		"driver"			"default"
		"host"				"localhost"
		"database"			"sourcemod"
		"user"				"root"
		"pass"				""
		//"timeout"			"0"
		//"port"			"0"
	}
	
		"sourcebans"
	{
		"driver"			"default"
		"host"				"77.75.***.***"
		"database"			"mats_bans"
		"user"				"mats_bans"
		"pass"				"****"
		//"timeout"			"0"
		"port"			"3306"
	}
	
	"storage-local"
	{
		"driver"			"sqlite"
		"database"			"sourcemod-local"
	}
}
__________________
mats is offline
W][LDF][RE
Member
Join Date: Nov 2007
Location: Virginia,USA
Old 05-05-2008 , 18:39   Re: Database failure: Could not find driver "mysql"
Reply With Quote #4

Take this out and try again....
"default"
{
"driver" "default"
"host" "localhost"
"database" "sourcemod"
"user" "root"
"pass" ""
//"timeout" "0"
//"port" "0"
}

Also, when you logon to your webhost cpanel...see if they have remote sql in the database area. If they do than add your game server ip there to allow access. Also, check that your database mat_bans has all permissions in databases.

Last edited by W][LDF][RE; 05-05-2008 at 18:46.
W][LDF][RE is offline
mats
Senior Member
Join Date: Jan 2005
Old 05-05-2008 , 18:57   Re: Database failure: Could not find driver "mysql"
Reply With Quote #5

Quote:
Originally Posted by W][LDF][RE View Post
Take this out and try again....
"default"
{
"driver" "default"
"host" "localhost"
"database" "sourcemod"
"user" "root"
"pass" ""
//"timeout" "0"
//"port" "0"
}

Also, when you logon to your webhost cpanel...see if they have remote sql in the database area. If they do than add your game server ip there to allow access. Also, check that your database mat_bans has all permissions in databases.
when I remove it, it still do not work

the database server is not located at my gameserver hosting company, but on my webhosting company, I'm using the database for my cs1.6 servers and there its working perfect

I changed to driver to: sqlite

and now I'm getting this error:
Code:
L 05/06/2008 - 00:57:03: [sourcebans.smx] Failed to retrieve groups from the database, no such table: sb_srvgroups
L 05/06/2008 - 00:57:03: [sourcebans.smx] Failed to retrieve admins from the database near "SELECT": syntax error
Code:
L 05/06/2008 - 00:57:03: [sourcebans.smx] Failed to retrieve admins from the database, near "SELECT": syntax error
L 05/06/2008 - 01:02:18: [sourcebans.smx] [SourceBans] Query failed! no such table: sb_bans
but the tables do exist so sqlite is not working i think
__________________

Last edited by mats; 05-05-2008 at 19:03.
mats is offline
W][LDF][RE
Member
Join Date: Nov 2007
Location: Virginia,USA
Old 05-05-2008 , 19:02   Re: Database failure: Could not find driver "mysql"
Reply With Quote #6

I gathered that much from your config... and why I posted this...
Also, when you logon to your webhost cpanel...see if they have remote sql in the database area. If they do than add your game server ip there to allow access. Also, check that your database mat_bans has all permissions in databases.
W][LDF][RE is offline
mats
Senior Member
Join Date: Jan 2005
Old 05-05-2008 , 20:16   Re: Database failure: Could not find driver "mysql"
Reply With Quote #7

Quote:
Originally Posted by W][LDF][RE View Post
I gathered that much from your config... and why I posted this...
Also, when you logon to your webhost cpanel...see if they have remote sql in the database area. If they do than add your game server ip there to allow access. Also, check that your database mat_bans has all permissions in databases.
remote access is all set to the right ip (as I said, no problems on the cs1.6 servers) and the db has all permissions
__________________
mats is offline
zerak
Senior Member
Join Date: Feb 2008
Old 05-06-2008 , 13:37   Re: Database failure: Could not find driver "mysql"
Reply With Quote #8

When you wrote the command "ldd -d -r addons/sourcemod/extensions/dbi.mysql.ext.so "
you didn't get "libz.so.1 => not found" ?

Now I will hijack the thread. My libz.so.1 is installed but I still get the above error and this will cause mysql drivers fail to load. Running Ubuntu server.
How do I set the right path or make it find the file?
zerak is offline
mats
Senior Member
Join Date: Jan 2005
Old 05-06-2008 , 14:37   Re: Database failure: Could not find driver "mysql"
Reply With Quote #9

Quote:
Originally Posted by zerak View Post
When you wrote the command "ldd -d -r addons/sourcemod/extensions/dbi.mysql.ext.so "
you didn't get "libz.so.1 => not found" ?

Now I will hijack the thread. My libz.so.1 is installed but I still get the above error and this will cause mysql drivers fail to load. Running Ubuntu server.
How do I set the right path or make it find the file?
no I don't get that message ;)
cstrike # ldd -d -r addons/sourcemod/extensions/dbi.mysql.ext.so
linux-gate.so.1 => (0xffffe000)
libz.so.1 => /lib/libz.so.1 (0xf7df1000)
libpthread.so.0 => /lib/libpthread.so.0 (0xf7dd9000)
libdl.so.2 => /lib/libdl.so.2 (0xf7dd5000)
libm.so.6 => /lib/libm.so.6 (0xf7daf000)
libc.so.6 => /lib/libc.so.6 (0xf7c80000)


please can someone help me
__________________

Last edited by mats; 05-06-2008 at 14:45.
mats is offline
zerak
Senior Member
Join Date: Feb 2008
Old 05-06-2008 , 14:45   Re: Database failure: Could not find driver "mysql"
Reply With Quote #10

What does it give you then? You did execute it in cstrike folder as it said in the thread?
zerak is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:39.


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