Raised This Month: $ Target: $400
 0% 

Could not find driver "mysql"


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Addicted.
AlliedModders Donor
Join Date: Dec 2013
Location: 0xA9D0DC
Old 09-23-2014 , 14:16   Could not find driver "mysql"
Reply With Quote #1

Hi guys,

I am trying to connect to a mysql database for a plugin but when my server tries to connect I get this error
Code:
Connection to SQL database has failed, Reason: Could not find driver "mysql"
My databases.cfg file:
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"
	}
	"store"
	{
    		"driver"        		"mysql"
    		"host"          		"23.***.***.****"
    		"database"      		"****"
    		"user"          		"****"
    		"pass"          		"****"
	}

}
Addicted. is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 09-23-2014 , 14:23   Re: Could not find driver "mysql"
Reply With Quote #2

Can you show us the output of sm exts list
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
floube
SourceMod Donor
Join Date: Jan 2013
Location: Austria
Old 09-23-2014 , 14:24   Re: Could not find driver "mysql"
Reply With Quote #3

Check this.
__________________
floube is offline
Addicted.
AlliedModders Donor
Join Date: Dec 2013
Location: 0xA9D0DC
Old 09-23-2014 , 14:31   Re: Could not find driver "mysql"
Reply With Quote #4

Quote:
Originally Posted by Powerlord View Post
Can you show us the output of sm exts list
Code:
SM] Displaying 12 extensions:
[01] Automatic Updater (1.7.0-dev+4888): Updates SourceMod gamedata files
[02] Webternet (1.7.0-dev+4888): Extension for interacting with URLs
[03] CS Tools (1.7.0-dev+4888): CS extended functionality
[04] BinTools (1.7.0-dev+4888): Low-level C/C++ Calling API
[05] SDK Tools (1.7.0-dev+4888): Source SDK Tools
[06] Top Menus (1.7.0-dev+4888): Creates sorted nested menus
[07] <FAILED> file "steamtools.ext.so": /home/client4316/service3869/csgo/csgo/addons/sourcemod/extensions/steamtools.ext.so: cannot open shared object file: No such file or directory
[08] SDK Hooks (1.7.0-dev+4888): Source SDK Hooks
[09] SMJansson (2.3.1/3): JSON parser/writer
[10] Client Preferences (1.7.0-dev+4888): Saves client preference settings
[11] SQLite (1.7.0-dev+4888): SQLite Driver
[12] Regex (1.7.0-dev+4888): Provides regex natives for plugins
Addicted. is offline
Addicted.
AlliedModders Donor
Join Date: Dec 2013
Location: 0xA9D0DC
Old 09-23-2014 , 14:32   Re: Could not find driver "mysql"
Reply With Quote #5

Quote:
Originally Posted by floube View Post
How can I run that command if my server is being hosted by another company?
Addicted. is offline
floube
SourceMod Donor
Join Date: Jan 2013
Location: Austria
Old 09-23-2014 , 14:48   Re: Could not find driver "mysql"
Reply With Quote #6

Quote:
Originally Posted by oaaron99 View Post
Code:
SM] Displaying 12 extensions:
[01] Automatic Updater (1.7.0-dev+4888): Updates SourceMod gamedata files
[02] Webternet (1.7.0-dev+4888): Extension for interacting with URLs
[03] CS Tools (1.7.0-dev+4888): CS extended functionality
[04] BinTools (1.7.0-dev+4888): Low-level C/C++ Calling API
[05] SDK Tools (1.7.0-dev+4888): Source SDK Tools
[06] Top Menus (1.7.0-dev+4888): Creates sorted nested menus
[07] <FAILED> file "steamtools.ext.so": /home/client4316/service3869/csgo/csgo/addons/sourcemod/extensions/steamtools.ext.so: cannot open shared object file: No such file or directory
[08] SDK Hooks (1.7.0-dev+4888): Source SDK Hooks
[09] SMJansson (2.3.1/3): JSON parser/writer
[10] Client Preferences (1.7.0-dev+4888): Saves client preference settings
[11] SQLite (1.7.0-dev+4888): SQLite Driver
[12] Regex (1.7.0-dev+4888): Provides regex natives for plugins
You're missing
Code:
[13] MySQL-DBI (1.6.2-dev+4568): MySQL driver implementation for DBI
Quote:
Originally Posted by oaaron99 View Post
How can I run that command if my server is being hosted by another company?
Have you checked if
Code:
addons/sourcemod/extensions/dbi.mysql.ext.so
exists? If yes, try to load it with sm exts load dbi.mysql.ext.so
__________________
floube is offline
Addicted.
AlliedModders Donor
Join Date: Dec 2013
Location: 0xA9D0DC
Old 09-23-2014 , 15:00   Re: Could not find driver "mysql"
Reply With Quote #7

The file is there.

When I enter sm exts load dbi.mysql.ext.so it returns:
Code:
[SM] Loaded extension dbi.mysql.ext.so successfully.
But when I print the list again it says:
Code:
[SM] Displaying 13 extensions:
[01] Automatic Updater (1.7.0-dev+4888): Updates SourceMod gamedata files
[02] Webternet (1.7.0-dev+4888): Extension for interacting with URLs
[03] CS Tools (1.7.0-dev+4888): CS extended functionality
[04] BinTools (1.7.0-dev+4888): Low-level C/C++ Calling API
[05] SDK Tools (1.7.0-dev+4888): Source SDK Tools
[06] Top Menus (1.7.0-dev+4888): Creates sorted nested menus
[07] <FAILED> file "steamtools.ext.so": /home/client4316/service3869/csgo/csgo/addons/sourcemod/extensions/steamtools.ext.so: cannot open shared object file: No such file or directory
[08] SDK Hooks (1.7.0-dev+4888): Source SDK Hooks
[09] SMJansson (2.3.1/3): JSON parser/writer
[10] Client Preferences (1.7.0-dev+4888): Saves client preference settings
[11] SQLite (1.7.0-dev+4888): SQLite Driver
[12] Regex (1.7.0-dev+4888): Provides regex natives for plugins
[13] <FAILED> file "dbi.mysql.ext.so": service3869/csgo/csgo/addons/sourcemod/extensions/dbi.mysql.ext.so: undefined symbol: _ZTVN10__cxxabiv120__si_class_type_infoE

Last edited by Addicted.; 09-23-2014 at 15:02.
Addicted. is offline
Addicted.
AlliedModders Donor
Join Date: Dec 2013
Location: 0xA9D0DC
Old 09-23-2014 , 15:31   Re: Could not find driver "mysql"
Reply With Quote #8

I got it working I just downloaded a new version of dbi.mysql.ext.so

Thx for your help!!
Addicted. 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 01:58.


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