Raised This Month: $32 Target: $400
 8% 

Connection to database failed: Could not find driver "mysql"


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
FlockWGlock
New Member
Join Date: May 2021
Old 01-16-2023 , 16:14   Connection to database failed: Could not find driver "mysql"
Reply With Quote #1

Hello,
I just want to use a Sticker plugin on my Server but it doesnt work with the Database.

[csgo_weaponstickers.smx] (WeaponStickers) Connection to database failed: Could not find driver "mysql"

Also get this error

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

PHP 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"                "localhost"
        "database"            "sourcemod"
        "user"                "root"
        "pass"                ""
        
//"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"
    
}
    
"cksurf"
    
{
        
"driver"            "sqlite"
        "database"            "cksurf-local"
        "user"                "root"
        "pass"                ""
    
}

    
"csgo_weaponstickers"
    
{
        
"driver"            "mysql"
        "host"                "176.**.1**.***"
        "database"            "db_********"
        "user"                "db_*********"
        "pass"                "**********"
        
//"timeout"            "0"
        
"port"                "3306"
    
}



and when I type sm exts list then this is the Output:

"Automatic Updater" (1.11.0.6927) by AlliedModders LLC: Updates SourceMod gamedata files
"Webternet" (1.11.0.6927) by AlliedModders LLC: Extension for interacting with URLs
"CS Tools" (1.11.0.6927) by AlliedModders LLC: CS extended functionality
"BinTools" (1.11.0.6927) by AlliedModders LLC: Low-level C/C++ Calling API
"SDK Tools" (1.11.0.6927) by AlliedModders LLC: Source SDK Tools
"PTaH" (1.1.3) by Phoenix (˙·٠●Феникс●٠·˙): Additional CS:GO Hooks and Natives
"SDK Hooks" (1.11.0.6927) by AlliedModders LLC: Source SDK Hooks
"Top Menus" (1.11.0.6927) by AlliedModders: Creates sorted nested menus
"Regex" (1.11.0.6927) by AlliedModders LLC: Provides regex natives for plugins
"REST in Pawn" (1.2.1) by Tsunami: Provides HTTP and JSON natives for plugins
"Client Preferences" (1.11.0.6927) by AlliedModders: Saves client preference settings
"SQLite" (1.11.0.6927) by AlliedModders LLC: SQLite Driver
"DHooks" (1.11.0.6927) by AlliedModders LLC: Dynamic Hooks
Thanks for help.

Btw all the people that want to answer it with:
"apt-get install lib32z1" im not the owner of the server. The owner is a company

TY

Last edited by FlockWGlock; 01-16-2023 at 16:40.
FlockWGlock is offline
oqyh
Senior Member
Join Date: May 2019
Location: United Arab Emirates
Old 01-17-2023 , 02:21   Re: Connection to database failed: Could not find driver "mysql"
Reply With Quote #2

talk to company if they include mysql database or use free host
https://www.freemysqlhosting.net/
__________________
.:[ >> My Plugins << ]:.

My discord : oqyh
oqyh is offline
El Diablo War3Evo
Veteran Member
Join Date: Jun 2013
Old 01-28-2023 , 07:32   Re: Connection to database failed: Could not find driver "mysql"
Reply With Quote #3

Just note, that you could get your server banned from CSGO for using that unapproved plug-in. https://www.mail-archive.com/csgo_se.../msg11235.html

With that said, why not just use sqlite?

Code:
"Databases"
{
    "driver_default"        "sqlite"
    
    // When specifying "host", you may use an IP address, a hostname, or a socket file path
    
    "default"
    {
        "driver"            "default"
        "host"                "localhost"
        "database"            "sourcemod"
        "user"                "root"
        "pass"                ""
        //"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"
    }
    "cksurf"
    {
        "driver"            "sqlite"
        "database"            "cksurf-local"
        "user"                "root"
        "pass"                ""
    }

    "csgo_weaponstickers"
    {
        "driver"            "sqlite"
        "host"                "localhost"
        "database"            "db_********"
        "user"                "root"
        "pass"                ""
        //"timeout"            "0"
        "port"                "3306"
    }


}
__________________
El Diablo War3Evo is offline
Natan
BANNED
Join Date: Aug 2015
Location: Usa
Old 02-24-2023 , 16:12   Re: Connection to database failed: Could not find driver "mysql"
Reply With Quote #4

You do need "apt-get install lib32z1" (if linux Debian).
for that, you need SSH access (root or sudo).

If not..
Try to change web/VDS providers.
Natan is offline
Send a message via ICQ to Natan Send a message via AIM to Natan Send a message via Yahoo to Natan Send a message via Skype™ to Natan
F1F88
Junior Member
Join Date: Nov 2022
Old 03-03-2023 , 01:11   Re: Connection to database failed: Could not find driver "mysql"
Reply With Quote #5

I've also encountered this error on CentOS 8.
Maybe you can try "yum install zlib.i686" or "sudo yum install zlib.i686"
F1F88 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 00:03.


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