MySQL plugin by BlueG
#1

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?
Reply
#2

You're probably adding it as
pawn Code:
mysql_connect("MYSQL_HOST",..
Remove the '"' around it, like this
[pawn]
mysql_connect(MYSQL_HOST,..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)