Raised This Month: $ Target: $400
 0% 

Could not connect to database "default": Driver "mysql" not found


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
nezinu5
Member
Join Date: Feb 2005
Old 02-03-2008 , 12:22   Could not connect to database "default": Driver "mysql" not found
Reply With Quote #1

I get this error trying to refresh admins list from sql
19:09:14 L 02/03/2008 - 19:028: [admin-sql-prefetch.smx] Could not connect to database "default": Driver "mysql" not found

[SM] Displaying 5 extensions:
[01] Top Menus (1.0.0.1772): Creates sorted nested menus
[02] SDK Tools (1.0.0.1865): Source SDK Tools
[03] BinTools (1.0.0.1656): Low-level C/C++ Calling API
[04] GeoIP (1.0.0.1656): Geographical IP information
[05] <FAILED> file "dbi.mysql.ext.so": No such file or directory
Why i cant turn on sql managed admins plugins? And there IS file dbi.mysql.ext.so under extensions directory and it has all permissions to run. What could be wrong?

So i found this article ( http://bugs.alliedmods.net/?do=details&task_id=801 ), but it doesnt help me. i have libz and zlib libraries already installed (Debian etch Linux). But they are under /lib64 not /lib32 I tried to symlink libz.so.1 from /lib64 to /lib32 but sourcemod still says the same - [05] <FAILED> file "dbi.mysql.ext.so": No such file or directory

Last edited by nezinu5; 02-04-2008 at 03:21.
nezinu5 is offline
BAILOPAN
Join Date: Jan 2004
Old 02-04-2008 , 10:46   Re: Could not connect to database "default": Driver "mysql" not found
Reply With Quote #2

Do you have SSH access? If so, as the user srcds runs as, do the following commands:

Code:
cd <srcds>
export LD_LIBRARY_PATH=".:bin:$LD_LIBRARY_PATH"
ldd -d -r <game>/addons/sourcemod/extensions/dbi.mysql.ext.so
And show the output. <srcds> should be the path that contains srcds_run and <game> should be the game's folder.
__________________
egg
BAILOPAN is offline
chemicstry
Junior Member
Join Date: Jan 2010
Old 01-04-2010 , 08:53   Re: Could not connect to database "default": Driver "mysql" not found
Reply With Quote #3

Hello, I'm having the same issue right now, the above procedure didnt help me, it still says:

15:15:43 L 01/04/2010 - 17:15:58: [sql-admin-manager.smx] Could not connect to database: Driver "mysql" not found
15:15:43 [SM] Could not connect to the database.

Maybe i need some linux packages that i dont know?

This happened after linux reinstall. I hope someone will help me

EDIT: solved

Last edited by chemicstry; 01-05-2010 at 17:09.
chemicstry is offline
CookieB
Member
Join Date: Apr 2016
Location: Germany
Old 09-29-2016 , 23:48   Re: Could not connect to database "default": Driver "mysql" not found
Reply With Quote #4

I know this thread is fucking old but I encountered this problem and wanted to leave a solution.

First of all check the reason for this error by typing this in the server console during operation:

sm exts list

in my case it showed that zlib wasn't found, go figure I remembered that the steam appliation is 32 bit while my server is 64.

so the solution is to add the i386 architecture and install the zlib1g:i386 package.
CookieB 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 23:04.


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