How to connect to a mysql remote host?
#1

Hi...
I'm trying to connect my samp server to my website's mysql...
I entered the server IP as exception for remote accesses...

On pawno I entered:
#define SQL_HOST "208.115.247.247"
#define SQL_DB "sgtadmin_hsaserver"
#define SQL_USER "sgtadmin_hsabot@sgt-site.tk"
#define SQL_PASS "example123"

mysql_connect(SQL_HOST,SQL_USER,SQL_DB,SQL_PASS);

however on the mysql log I get: CMySQLHandler::Connect() - Access denied for user 'sgtadmin_hsabot@'@'lizard.serverffs.com' (using password: YES) (Error ID: 1045)

(using gstyle's plugin)
so what I did wrong?
Reply
#2

#define SQL_HOST "208.115.247.247"
#define SQL_DB "sgtadmin_hsaserver"
#define SQL_USER "sgtadmin_hsabot"
#define SQL_PASS "example123"
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)