09.12.2013, 18:07
PLEASE READ!
I have downloaded the StrickenKid MySQL library and have properly installed it (copied the files, added to plugins and included in my code)
I am trying to connect to my MySQL server (started using XAMPP).My username is root and there is no pass (blank field).
The code:
I have already created the DB.
I have downloaded the StrickenKid MySQL library and have properly installed it (copied the files, added to plugins and included in my code)
I am trying to connect to my MySQL server (started using XAMPP).My username is root and there is no pass (blank field).
Код:
[Mon Dec 09 21:10:07 2013] ------------------------- [Mon Dec 09 21:10:07 2013] Logging Started [Mon Dec 09 21:10:07 2013] ------------------------- [Mon Dec 09 21:10:07 2013] Error (0): Failed to connect. Access denied for user 'root'@'localhost' (using password: YES).
Код:
new MySQL:connection = mysql_init(LOG_ONLY_ERRORS, 1); mysql_connect("127.0.0.1", "root", "", "cnr", connection, 1); SetGameModeText("Cops And Robbers"); AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);