Help SQL

Well i haven't used pass but. .. it says used..
pawn Код:
#define SQL_HOST                "localhost"
    #define SQL_USER        "root"
    #define SQL_DB          "shrey"
    #define SQL_PASS        ""
** IT IS LOCALHOST's u cant use it as owns.... **
mysql_connect(SQL_HOST, SQL_USER, SQL_DB, SQL_PASS);
[19:02:10] [MySQL] Error (0): Failed to connect. Access denied for user 'root'@'localhost' (using password: YES).


Take a new user (you can create it) with a passwort.
If you need help ask here.

Well i have tried it 10+ - FAILED
Permission denied even i granted all to all the users....

Reset your MySQL root password.

// Edit

use console and type this

SET PASSWORD FOR 'root'@'localhost' = PASSWORD('password_here');

Using XAMPP.... Let me edit.

On the xampp control panel:

Click 'Shell'

the in shell, type "mysql"

Then change the password in there using MySQL. If you don't know how to do that, you shouldn't be usng MySQL

Well, xampp tells you to type this in the shell

mysqladmin.exe -u root password secret

Forum Jump:

Users browsing this thread: