View Single Post
Old 29/07/2014, 11:18 PM   #5
Emre__
Big Clucker
 
Join Date: Jun 2011
Posts: 89
Reputation: 0
Default Re: MySQL Plugin r39-2 Error: Can't connect to local MySQL server through socket

Quote:
Originally Posted by sammp View Post
Connection code!

pawn Code:
#define MYSQL_HOST      "localhost"
#define MYSQL_USER      "mysql_user_name"
#define MYSQL_PASS      "password"
#define MYSQL_DB        "db_name"

new dbHandle;

dbHandle = mysql_connect(MYSQL_HOST, MYSQL_USER, MYSQL_DB, MYSQL_PASS);

It doesn't work either 127.0.0.1 or localhost

Last edited by Emre__; 30/07/2014 at 10:03 AM.
Emre__ is offline   Reply With Quote