Mysql DB issue
#1

I've been scripting/learning Mysql lately I've scripted a few basic things and To check Them I've download WAMP server and created a DB
But when i Opened samp_Server.exe it showed me this
Код:
SA-MP Dedicated Server
----------------------
v0.3x-R2, ©2005-2013 SA-MP Team

[22:22:51] filterscripts = ""  (string)
[22:22:51] 
[22:22:51] Server Plugins
[22:22:51] --------------
[22:22:51]  Loading plugin: mysql
[22:22:51]  SA:MP MySQL Plugin v2.1.1 Loaded.
[22:22:51]   Loaded.
[22:22:51]  Loading plugin: sscanf
[22:22:51] 

[22:22:51]  ===============================

[22:22:51]       sscanf plugin loaded.     

[22:22:51]          Version:  2.8.1        

[22:22:51]    © 2012 Alex "******" Cole  

[22:22:51]  ===============================

[22:22:51]   Loaded.
[22:22:51]  Loaded 2 plugins.

[22:22:51] [MySQL] Thread running. Threadsafe: Yes.
[22:22:51] 
[22:22:51] Filterscripts
[22:22:51] ---------------
[22:22:51]   Loaded 0 filterscripts.

[22:22:51] [MySQL] Error (0): Failed to connect. Access denied for user 'root'@'localhost' (using password: YES).
[22:22:51] 
----------------------------------
[22:22:51]  Blank Gamemode by your name here
[22:22:51] ----------------------------------

[22:22:51] Number of vehicle models: 0
Reply
#2

show us the script lines where the mysql Hosts exist
Reply
#3

check ur login and password of bd in gamemode
Reply
#4

There you go sir,
pawn Код:
#define mysql_host "localhost" //your destination server
#define mysql_user "root" //default user name of wampserver
#define mysql_password "" //wampserver has no default password unless you have set one.
#define mysql_database "sa-mpsql"//the name of your database
Reply
#5

try to set password for db, edit it on gm and try again
Reply
#6

I've uninstalled WAMP and tried XAMPP instead but still its showing me that error :/
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)