SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 02/08/2015, 01:57 PM   #1
LocMax
Huge Clucker
 
LocMax's Avatar
 
Join Date: Jul 2012
Location: Croatia
Posts: 340
Reputation: 40
Default MySQL plugin by BlueG

So I've been converting my gamemode from strickenkid's MySQL to the newest version of BlueG's plugin, however there's an error:
"[15:41:38] [ERROR] CMySQLConnection::Connect - (error #2005) Unknown MySQL server host 'MYSQL_HOST'"

#define MYSQL_HOST "127.0.0.1"

The database is located on the same host as the server, it was working properly with strickenkid's MySQL, however now the errors appear.
Any ideas how to resolve this? What are the possible solutions?
LocMax is offline   Reply With Quote
Old 02/08/2015, 02:19 PM   #2
xVIP3Rx
High-roller
 
xVIP3Rx's Avatar
 
Join Date: Feb 2013
Location: Egypt
Posts: 1,096
Reputation: 96
Default Re: MySQL plugin by BlueG

You're probably adding it as
pawn Code:
mysql_connect("MYSQL_HOST",..

Remove the '"' around it, like this
[pawn]
mysql_connect(MYSQL_HOST,..
xVIP3Rx is offline   Reply With Quote
Reply

Thread Tools
Display Modes

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
[MySQL] From StickenKid's plugin to BlueG's plugin jessejanssen Scripting Help 2 15/06/2014 01:20 AM
BlueG MySQL plugin - Failed (plugins/mysql.so: undefined symbol: _Z13stringvprintfPKcPc) linuxthefish Plugin Development 10 13/07/2013 10:56 AM
help with blueg's mysql plugin(r7) thefatshizms Scripting Help 3 04/07/2012 02:27 PM
Need help with BlueG's mysql plugin DeathTone Server Support 2 11/03/2012 03:02 AM


All times are GMT. The time now is 11:03 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.