Raised This Month: $52 Target: $400
 13% 

Default Unable to load extension "dbi.mysql.ext"


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
HiddenConn1
AlliedModders Donor
Join Date: Aug 2009
Location: Cambridge, UK
Old 01-21-2016 , 16:28   Default Unable to load extension "dbi.mysql.ext"
Reply With Quote #1

Hi.

I am getting an error with my SB Database. For some reason it's saying unable to load extension "dbi.mysql.ext.so". Our dedicated server is running Linux CentOS 6.7.
Code:
L 01/21/2016 - 21:10:27: SourceMod error session started
L 01/21/2016 - 21:10:27: Info (map "de_dust2") (file "errors_20160121.log")
L 01/21/2016 - 21:10:27: [SM] Unable to load extension "dbi.mysql.ext": libz.so.1: cannot open shared object file: No such file or directory
L 01/21/2016 - 21:10:27: [SM] Plugin encountered error 25: Call was aborted
L 01/21/2016 - 21:10:27: [SM] Native "SetFailState" reported: Failed to connect to SourceBans DB, Could not find driver "mysql"
L 01/21/2016 - 21:10:27: [SM] Displaying call stack trace for plugin "sbchecker.smx":
L 01/21/2016 - 21:10:27: [SM]   [0]  Line 70, sbchecker.sp::OnDatabaseConnected()
L 01/21/2016 - 21:10:27: [SM] Unable to load plugin "sb_admins.smx": Native "SB_Init" was not found
L 01/21/2016 - 21:10:27: [SourceSleuth.smx] SourceSleuth: Database connection error: Could not find driver "mysql"
L 01/21/2016 - 21:10:27: [SM] Unable to load plugin "sb_bans.smx": Native "SB_Init" was not found
L 01/21/2016 - 21:10:59: Error log file session closed.
L 01/21/2016 - 21:10:59: SourceMod error session started
L 01/21/2016 - 21:10:59: Info (map "de_dust2") (file "errors_20160121.log")
L 01/21/2016 - 21:10:59: [SM] Plugin encountered error 25: Call was aborted
L 01/21/2016 - 21:10:59: [SM] Native "SetFailState" reported: Failed to connect to SourceBans DB, Could not find driver "mysql"
L 01/21/2016 - 21:10:59: [SM] Displaying call stack trace for plugin "sbchecker.smx":
L 01/21/2016 - 21:10:59: [SM]   [0]  Line 70, sbchecker.sp::OnDatabaseConnected()
L 01/21/2016 - 21:10:59: [SM] Unable to load plugin "sb_admins.smx": Native "SB_Init" was not found
L 01/21/2016 - 21:10:59: [SM] Unable to load plugin "sb_bans.smx": Native "SB_Init" was not found
L 01/21/2016 - 21:11:04: [SM] Native "SQL_TQuery" reported: Invalid database Handle 0 (error: 4)
L 01/21/2016 - 21:11:04: [SM] Displaying call stack trace for plugin "SourceSleuth.smx":
L 01/21/2016 - 21:11:04: [SM]   [0]  Line 166, SourceSleuth.sp::OnClientPostAdminCheck()
Database config:
Code:
"Databases"
{
	"driver_default"		"mysql"
	
	"sourcebans"
	{
		"driver"			"mysql"
		"host"				"37.59.9.200"
		"database"			"tcompute_bans"
		"user"				"tcompute_bans"
		"pass"				"SNIP"
		//"timeout"			"0"
		"port"			"3306"
	}
	
	"storage-local"
	{
		"driver"			"sqlite"
		"database"			"sourcemod-local"
	}
}
EDIT: I've already added the IP into cPanel's MySQL Remote Host. (Just in case). I've done everything I can think of except for installing that mysql lib in the root of our dedicated server terminal shell.

Last edited by HiddenConn1; 01-21-2016 at 16:32.
HiddenConn1 is offline
Send a message via Skype™ to HiddenConn1
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 01-23-2016 , 18:29   Re: Default Unable to load extension "dbi.mysql.ext"
Reply With Quote #2

Did you try searching for your error message?

[SM] Unable to load extension "dbi.mysql.ext": libz.so.1: cannot open shared object file: No such file or directory

Because it's hard to NOT find the several hundred previous threads on the issue.
__________________

Last edited by asherkin; 01-23-2016 at 18:30.
asherkin is offline
fragnichtnach
AlliedModders Donor
Join Date: Oct 2008
Old 05-06-2019 , 02:53   Re: Default Unable to load extension "dbi.mysql.ext"
Reply With Quote #3

as google like to redirect you always to threads where people answer there are 1000s of previous threads:

https://forums.alliedmods.net/showth...os#post2412966
here are solutions for debian&ubuntu&centos
fragnichtnach is offline
raj kaul
Senior Member
Join Date: Mar 2018
Location: India Mumbai
Old 05-07-2019 , 07:14   Re: Default Unable to load extension "dbi.mysql.ext"
Reply With Quote #4

apt-get install lib32z1


As root
__________________

Last edited by raj kaul; 05-07-2019 at 07:44.
raj kaul is offline
Reply


Thread Tools
Display Modes

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 10:26.


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