21.08.2011, 11:52
Hello i have problem!
server log
mysql log
pawno
server log
Code:
---------- Loaded log file: "server_log.txt". ---------- SA-MP Dedicated Server ---------------------- v0.3c R2, ©2005-2011 SA-MP Team [14:51:52] filterscripts = "" (string) [14:51:52] [14:51:52] Server Plugins [14:51:52] -------------- [14:51:52] Loading plugin: mysql.dll [14:51:52] SA:MP MySQL Plugin v2.1.1 Loaded. [14:51:52] Loaded. [14:51:52] Loading plugin: sampmysql.dll [14:51:52] /************************************************/ /* SAMP-MySQL v0.1 Plugin loaded successfully ! */ /************************************************/ [14:51:52] Loaded. [14:51:52] Loading plugin: sscanf.dll [14:51:52] [MySQL] Thread running. Threadsafe: Yes. [14:51:52] [14:51:52] =============================== [14:51:52] sscanf plugin loaded. [14:51:52] © 2009 Alex "Y_Less" Cole [14:51:52] =============================== [14:51:52] Loaded. [14:51:52] Loading plugin: whirlpool.dll [14:51:52] [14:51:52] ================== [14:51:52] [14:51:52] Whirlpool loaded [14:51:52] [14:51:52] ================== [14:51:52] [14:51:52] Loaded. [14:51:52] Loaded 4 plugins. [14:51:52] [14:51:52] Filter Scripts [14:51:52] --------------- [14:51:52] Loaded 0 filter scripts. [14:51:52] [MySQL] Error (0): Failed to connect. Access denied for user 'root'@'localhost' (using password: YES). [14:51:52] Number of vehicle models: 0
Code:
[Sun Aug 21 14:51:52 2011] ------------------------- [Sun Aug 21 14:51:52 2011] Logging Started [Sun Aug 21 14:51:52 2011] ------------------------- [Sun Aug 21 14:51:52 2011] Error (0): Failed to connect. Access denied for user 'root'@'localhost' (using password: YES).
Code:
#define MySQL_host "localhost" #define MySQL_user "root" #define MySQL_pw "" #define MySQL_db "test" Connection = mysql_init(); mysql_connect(MySQL_host, MySQL_user, MySQL_pw, MySQL_db, Connection, 1);