AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   General (https://forums.alliedmods.net/forumdisplay.php?f=58)
-   -   Could not connect: Driver "MySQL" not found (https://forums.alliedmods.net/showthread.php?t=264474)

spot 06-17-2015 03:00

Could not connect: Driver "MySQL" not found
 
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 06-17-2015 06:41

Re: Could not connect: Driver "MySQL" not found
 
anyone? :D

Powerlord 06-17-2015 12:06

Re: Could not connect: Driver "MySQL" not found
 
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.

splewis 06-17-2015 13:39

Re: Could not connect: Driver "MySQL" not found
 
A suggestion from another thread was that the driver should be "mysql", not " MySQL" to match the actual driver extension name.

jonitaikaponi 06-17-2015 14:07

Re: Could not connect: Driver "MySQL" not found
 
Also, if you are running on Linux, try to install lib32z1.

apt-get install lib32z1

Amroth 06-17-2015 14:41

Re: Could not connect: Driver "MySQL" not found
 
if u use centos

yum install zlib.i386

spot 06-17-2015 17:46

Re: Could not connect: Driver "MySQL" not found
 
Quote:

Originally Posted by Powerlord (Post 2308875)
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 (Post 2308908)
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 (Post 2308934)
if u use centos
yum install zlib.i386

I use ubuntu (debian)

Quote:

Originally Posted by jonitaikaponi (Post 2308919)
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

aeleos 06-18-2015 03:29

Re: Could not connect: Driver "MySQL" not found
 
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.

spot 06-18-2015 06:33

Re: Could not connect: Driver "MySQL" not found
 
Quote:

Originally Posted by aeleos (Post 2309077)
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 06-18-2015 06:51

Re: Could not connect: Driver "MySQL" not found
 
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


All times are GMT -4. The time now is 19:38.

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