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

Could not connect: Driver "MySQL" not found


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
spot
Senior Member
Join Date: May 2009
Old 06-17-2015 , 03:00   Could not connect: Driver "MySQL" not found
Reply With Quote #1

Hello, i get this error:
[multi1v1.smx] Could not connect: Driver "MySQL" not found

This is my database.cfg:
http://pastebin.com/Mt19PUmQ

Hope anyone can help me, i have followed the installation guide here:
https://github.com/splewis/csgo-mult....0.2/README.md

I know the ports and IP work, i use MySQL workbench to fix the tables.
I have tryed what this page recommended:
http://gaming.stackexchange.com/ques.../172408#172408

addons/sourcemod/extensions:
http://gyazo.com/f97bce53de27499253b41f9d4082af06

Hope anyone can help.
-spot
spot is offline
spot
Senior Member
Join Date: May 2009
Old 06-17-2015 , 06:41   Re: Could not connect: Driver "MySQL" not found
Reply With Quote #2

anyone?
spot is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 06-17-2015 , 12:06   Re: Could not connect: Driver "MySQL" not found
Reply With Quote #3

It sounds like the MySQL extension isn't loaded.

We're going to need to see the output of sm exts list from the serve rconsole or rcon sm exts list from the client console.
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
splewis
Veteran Member
Join Date: Feb 2014
Location: United States
Old 06-17-2015 , 13:39   Re: Could not connect: Driver "MySQL" not found
Reply With Quote #4

A suggestion from another thread was that the driver should be "mysql", not " MySQL" to match the actual driver extension name.
__________________

Last edited by splewis; 06-17-2015 at 13:39.
splewis is offline
jonitaikaponi
Senior Member
Join Date: Nov 2014
Location: Finland
Old 06-17-2015 , 14:07   Re: Could not connect: Driver "MySQL" not found
Reply With Quote #5

Also, if you are running on Linux, try to install lib32z1.

apt-get install lib32z1
jonitaikaponi is offline
Amroth
Senior Member
Join Date: Apr 2013
Location: /root
Old 06-17-2015 , 14:41   Re: Could not connect: Driver "MySQL" not found
Reply With Quote #6

if u use centos

yum install zlib.i386
Amroth is offline
spot
Senior Member
Join Date: May 2009
Old 06-17-2015 , 17:46   Re: Could not connect: Driver "MySQL" not found
Reply With Quote #7

Quote:
Originally Posted by Powerlord View Post
It sounds like the MySQL extension isn't loaded.

We're going to need to see the output of sm exts list from the serve rconsole or rcon sm exts list from the client console.
Here is a screenshot of sm exts list:
https://gyazo.com/724782683337576f97890e05cc3f72f0

Quote:
Originally Posted by splewis View Post
A suggestion from another thread was that the driver should be "mysql", not " MySQL" to match the actual driver extension name.
I have aswell renamed it "mysql" and added "localhost".

Quote:
Originally Posted by Amroth View Post
if u use centos
yum install zlib.i386
I use ubuntu (debian)

Quote:
Originally Posted by jonitaikaponi View Post
Also, if you are running on Linux, try to install lib32z1.
apt-get install lib32z1
Allready installed

Now i get the error message:
[multi1v1.smx] Could not connect: [2002]: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)

Is that becuase i have use localhost?
Thanks alot for replyes

Last edited by spot; 06-17-2015 at 18:25.
spot is offline
aeleos
Member
Join Date: Sep 2014
Old 06-18-2015 , 03:29   Re: Could not connect: Driver "MySQL" not found
Reply With Quote #8

I had this error a while ago, I don't remember exactly how I fixed it but it ended up being a problem with the socket that sourcemod was trying to use. I bet if you google the specific mysql error "Can't connect to local MySQL server through socket '/tmp/mysql.sock'" then you will be able to find more information, because its probably an ubuntu problem not a sourcemod problem.
__________________

Last edited by aeleos; 06-18-2015 at 03:29.
aeleos is offline
spot
Senior Member
Join Date: May 2009
Old 06-18-2015 , 06:33   Re: Could not connect: Driver "MySQL" not found
Reply With Quote #9

Quote:
Originally Posted by aeleos View Post
I had this error a while ago, I don't remember exactly how I fixed it but it ended up being a problem with the socket that sourcemod was trying to use. I bet if you google the specific mysql error "Can't connect to local MySQL server through socket '/tmp/mysql.sock'" then you will be able to find more information, because its probably an ubuntu problem not a sourcemod problem.
Reinstalling mysql, tryed allmost everything google had, no help.
Ill get back to you all, thanks alot!
spot is offline
spot
Senior Member
Join Date: May 2009
Old 06-18-2015 , 06:51   Re: Could not connect: Driver "MySQL" not found
Reply With Quote #10

After reinstalling mysql, i get the same message.
[multi1v1.smx] Could not connect: [2002]: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)

my.cnf don't mention anything about "mysql.sock", but there is:

[client]
port = 3306
socket = /var/run/mysqld/mysqld.sock

[mysqld_safe]
socket = /var/run/mysqld/mysqld.sock
nice = 0

[mysqld]
#
# * Basic Settings
#
user = mysql
pid-file = /var/run/mysqld/mysqld.pid
socket = /var/run/mysqld/mysqld.sock
port = 3306
basedir = /usr
datadir = /var/lib/mysql
tmpdir = /tmp
lc-messages-dir = /usr/share/mysql
skip-external-locking

Last edited by spot; 06-18-2015 at 06:55.
spot 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 10:27.


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