View Single Post
Old 29/07/2014, 11:18 PM   #5
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

Originally Posted by sammp View Post
Connection 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 or localhost

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