25.12.2014, 15:17
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:
This is what it prints:
What should I do?
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!");
Код:
[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!