sourcebans.smx Database failure: Could not find driver "mysql"

sourcebans.smx Database failure: Could not find driver "mysql" - Man in Black Knit Cap Sitting on Car Seat

Hi I've been going at this for literally hours now.

I've currently running my game server on a VPS (Ubuntu 14.04 x64).

This is where I currently am.

-Meta mod 1.10 -Sourcemod 1.5.4-git4078.tar.gz -SourceBans 1.4.11

I've successfully completed the web installation. Although i am having trouble getting the game server to contact the webserver.

This is the output of the log.

L 06/12/2014 - 09:29:02: [sourcebans.smx] Database failure: Could not find driver "mysql". See FAQ: http://www.sourcebans.net/node/20

That link is dead not very usefull. Some people say to install apt-get install lib32z1 which I did (Do i need to configure it anyway?) which did not work unfortunatly.

From the VPS I did manage to connect to my external mysql database using the mysql installed.

Is there anything else I should do?

My databases file. I enter image description here



Best Answer

This means the mysql extension is not running correctly. Check that the following file exists:

addons/sourcemod/extensions/dbi.mysql.ext.so

If it does, make sure it has execute-permissions (chmod u+x dbi.mysql.ext.so).


If that doesn't help, the next most common problem (from this thread) seems to be missing the 32-bit zlib library. Try installing it on your system:

32-bit Debian or Ubuntu: apt-get install zlib1g
64-bit Debian or Ubuntu: apt-get install lib32z1
32/64-bit Fedora: yum install zlib.i686
32/64-bit Mandriva: urpmi zlib1
32-bit SUSE: zypper install libz1
64-bit SUSE: zypper install libz1-32bit

If that doesn't work, try running ldd -d -r dbi.mysql.ext.so to search for missing dependencies, then google how to install the appropriate dependency for your system.




Pictures about "sourcebans.smx Database failure: Could not find driver "mysql""

sourcebans.smx Database failure: Could not find driver "mysql" - Purple Porsche 911 Parked in Front of Man in Black Jacket
sourcebans.smx Database failure: Could not find driver "mysql" - Beach cleaner
sourcebans.smx Database failure: Could not find driver "mysql" - Car Steering






Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.

Images: Adrian Agpasa, Duren Williams, Lio Voo, ALEEM UL HASSAN