Confused
#1

OK, I am trying to connect to the MySQL database on the local host (127.0.0.1) but it fails everytime.
This is my code:
pawn Код:
mysql_init();
 new mysql = mysql_connect("127.0.0.1","root","mydatabase","mypass");
if(mysql == 0) return print("MySQL Connection was not established!");
This is what it prints:
Код:
[17:25:24] [MySQL] Error (0): Failed to connect. Can't connect to MySQL server on '127.0.0.1' (10061).
[17:25:24] MySQL Connection not established!
What should I do?
Reply


Messages In This Thread
Confused - by iFiras - 25.12.2014, 15:17
Re: Confused - by M4D - 25.12.2014, 15:48

Forum Jump:


Users browsing this thread: 1 Guest(s)