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

Database failure: Could not find driver "mysql"


Post New Thread Reply   
 
Thread Tools Display Modes
mats
Senior Member
Join Date: Jan 2005
Old 10-09-2008 , 08:35   Re: Database failure: Could not find driver "mysql"
Reply With Quote #31

We tried everything in this topic and nothing helps?
__________________
mats is offline
cheyenne
Junior Member
Join Date: Oct 2008
Old 10-14-2008 , 08:36   Re: Database failure: Could not find driver "mysql"
Reply With Quote #32

Quote:
Originally Posted by ulx View Post
I've got a similar prob:

22:15:21 L 08/08/2008 - 00:01:19: [sourcebans.smx] Database failure: Could not find driver "mysql"

output after that command line suggested in this thread (ldd -d -r addons/sourcemod/extensions/dbi.mysql.ext.so):

linux-gate.so.1 => (0xffffe000)
libz.so.1 => not found
libpthread.so.0 => /lib32/libpthread.so.0 (0xf7d32000)
libdl.so.2 => /lib32/libdl.so.2 (0xf7d2e000)
libm.so.6 => /lib32/libm.so.6 (0xf7d0a000)
libc.so.6 => /lib32/libc.so.6 (0xf7bdf000)
/lib/ld-linux.so.2 (0x56555000)

my hoster and me aren't able to fix it - we really tried out everything that came into our mind ... "libz.so.1" is present with chmod 777 in the appropriate folder (/usr/lib) and several other folders meanwhile as well. also, "dbi.mysql.ext.so" is in the appropriate sourcemod extensions folder.

OS: Deb Etch 64bit, kernel 2.6.24.2 ... seems we have a prob without a solution here ...
i have same problems like u on debian etch amd64...

when i run 'ldd -d -r addons/sourcemod/extensions/dbi.mysql.ext.so' in 'dod' directory i got:
linux-gate.so.1 => (0xffffe000)
libz.so.1 => not found
libpthread.so.0 => /lib32/libpthread.so.0 (0xf7d3f000)
libdl.so.2 => /lib32/libdl.so.2 (0xf7d3a000)
libm.so.6 => /lib32/libm.so.6 (0xf7d16000)
libc.so.6 => /lib32/libc.so.6 (0xf7beb000)
/lib/ld-linux.so.2 (0x56555000)
so i think my problem is 'libz.so.1' file which is in /urs/lib and its a symlink to 'libz.so.1.2.3'...

any ideas?

thx
cheyenne is offline
BAILOPAN
Join Date: Jan 2004
Old 10-14-2008 , 21:32   Re: Database failure: Could not find driver "mysql"
Reply With Quote #33

Code:
apt-get install lib32z1
as root
__________________
egg
BAILOPAN is offline
cheyenne
Junior Member
Join Date: Oct 2008
Old 10-15-2008 , 04:01   Re: Database failure: Could not find driver "mysql"
Reply With Quote #34

Quote:
Originally Posted by BAILOPAN View Post
Code:
apt-get install lib32z1
as root
thx mate that was it!

then i was having lil problems runing ./srcds_run:
libgcc_s.so.1 must be installed for pthread_cancel to work
./srcds_run: line 346: 3673 Aborted (core dumped) $HL_CMD
but was able to solve this reinstalling ia32-libs with:
apt-get install ia32-libs
now its working
thx again
cheyenne is offline
LIONz
AlliedModders Donor
Join Date: Jun 2006
Location: Latvia
Old 12-29-2008 , 12:00   Re: Database failure: Could not find driver "mysql"
Reply With Quote #35

apt-get install lib32z1
-bash: apt-get: command not found
I am using gentoo

EDIT:Fixed it for me by
emerge emul-linux-x86-baselibs
__________________




Last edited by LIONz; 12-30-2008 at 15:27. Reason: update
LIONz is offline
Trayken
Junior Member
Join Date: Nov 2010
Old 08-30-2011 , 18:44   Re: Database failure: Could not find driver "mysql"
Reply With Quote #36

<FAILED> file "dbi.mysql.ext.so": libz.so.1: cannot open shared object file: No such file or directory

bug fix with: apt-get install lib32z1
Trayken is offline
rautamiekka
Veteran Member
Join Date: Jan 2009
Location: Finland
Old 08-31-2011 , 03:14   Re: Database failure: Could not find driver "mysql"
Reply With Quote #37

Quote:
Originally Posted by LIONz View Post
apt-get install lib32z1
-bash: apt-get: command not found
I am using gentoo
APT is mainly for DPkg-using systems like Debian.
__________________
Links to posts I received Karma from:
Big thanks to all who gave Karma
rautamiekka is offline
Send a message via ICQ to rautamiekka Send a message via AIM to rautamiekka Send a message via MSN to rautamiekka Send a message via Yahoo to rautamiekka Send a message via Skype™ to rautamiekka
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 08-31-2011 , 12:00   Re: Database failure: Could not find driver "mysql"
Reply With Quote #38

Quote:
Originally Posted by Trayken View Post
<FAILED> file "dbi.mysql.ext.so": libz.so.1: cannot open shared object file: No such file or directory

bug fix with: apt-get install lib32z1
You really should apt-get install ia32-libs which is a meta package that includes lib32z1 and other 32-bit libraries. At least it does on Ubuntu, I'm assuming that's also true on Debian.
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
IceCucumber
Member
Join Date: Dec 2011
Old 04-05-2013 , 11:50   Re: Database failure: Could not find driver "mysql"
Reply With Quote #39

So yeah. I'm getting this error. Is there something wrong with my databases.cfg? : | I have doublechecked that my IP and login credentials are correct.

Code:
"Databases"
{
    "driver_default"        "mysql"
    
    // When specifying "host", you may use an IP address, a hostname, or a socket file path
    
    "default"
    {
        "driver"            "default"
        "host"                "my remote SQL server IP"
        "database"        "database name"
        "user"                "username"
        "pass"                "password"
        //"timeout"            "0"
        //"port"            "0"
    }
        
    "storage-local"
    {
    "driver"            "sqlite"
    "database"        "sourcemod-local"
    }

    "clientprefs"
    {
        "driver"            "sqlite"
        "host"                "localhost"
        "database"            "clientprefs-sqlite"
        "user"                "root"
        "pass"                ""
        //"timeout"            "0"
        //"port"            "0"
    }
}
IceCucumber is offline
XpoHuk
Junior Member
Join Date: Apr 2013
Old 04-21-2016 , 14:53   Re: Database failure: Could not find driver "mysql"
Reply With Quote #40

Solution for CentOS
HTML Code:
yum install zlib.i686
helped me
XpoHuk 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 22:55.


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