MYSQL Connect - Error
#1

Код:
[11:59:21] [plugins/mysql] CConnection::CConnection - establishing connection to MySQL database failed: #1045 'Access denied for user 'root'@'localhost' (using password: YES)'
[11:59:21] [plugins/mysql] CConnection::CConnection - establishing connection to MySQL database failed: #1045 'Access denied for user 'root'@'localhost' (using password: YES)'
[11:59:21] [plugins/mysql] CConnection::CConnection - establishing connection to MySQL database failed: #1045 'Access denied for user 'root'@'localhost' (using password: YES)'
[11:59:21] [plugins/mysql] CConnection::CConnection - establishing connection to MySQL database failed: #1045 'Access denied for user 'root'@'localhost' (using password: YES)
pawn Код:
#define    MYSQL_HOST        "127.0.0.1"
#define    MYSQL_USER        "root"
#define    MYSQL_DATABASE    "tw_server"
#define    MYSQL_PASSWORD    "admin"


pawn Код:
public OnGameModeInit()
{
    mysql = mysql_connect("127.0.0.1", "root", "admin", "tw_server");
}
Reply
#2

are u using xaamp or something like that ?

then remove password

PHP код:
#define    MYSQL_HOST        "127.0.0.1"
#define    MYSQL_USER        "root"
#define    MYSQL_DATABASE    "tw_server"
#define    MYSQL_PASSWORD    "" 
PHP код:
public OnGameModeInit()
{
    
mysql mysql_connect("127.0.0.1""root""""tw_server");

Reply
#3

I'm using xampp but in the warning folder it had said

Код:
[12:08:22] [plugins/mysql] mysql_connect: no password specified
does it means something?
Reply
#4

try login using phpadmin
Reply
#5

try to do like this
#define SQL_HOST "127.0.0.1"
#define SQL_USER "root"
#define SQL_PASS "admin"
#define SQL_DB "tw_server"//

public OnGameModeInit()
{
profileStuff();
connection = mysql_init(LOG_ONLY_ERRORS, 1);

mysql_connect("127.0.0.1", "root", "admin", "tw_server", connection, 1);
}
but make sure that u have change local host pass to admin
Reply
#6

Quote:
Originally Posted by KNIGHT786
Посмотреть сообщение
try to do like this
#define SQL_HOST "127.0.0.1"
#define SQL_USER "root"
#define SQL_PASS "admin"
#define SQL_DB "tw_server"//

public OnGameModeInit()
{
profileStuff();
connection = mysql_init(LOG_ONLY_ERRORS, 1);

mysql_connect("127.0.0.1", "root", "admin", "tw_server", connection, 1);
}
but make sure that u have change local host pass to admin
what the hell

Kill me please
Reply
#7

Quote:
Originally Posted by KNIGHT786
Посмотреть сообщение
try to do like this
#define SQL_HOST "127.0.0.1"
#define SQL_USER "root"
#define SQL_PASS "admin"
#define SQL_DB "tw_server"//

public OnGameModeInit()
{
profileStuff();
connection = mysql_init(LOG_ONLY_ERRORS, 1);

mysql_connect("127.0.0.1", "root", "admin", "tw_server", connection, 1);
}
but make sure that u have change local host pass to admin
best answer ever
Reply
#8

Quote:
Originally Posted by DerickClark
Посмотреть сообщение
I'm using xampp but in the warning folder it had said

Код:
[12:08:22] [plugins/mysql] mysql_connect: no password specified
does it means something?
Код:
public OnGameModeInit()
{
    mysql = mysql_connect("localhost", "root", "admin", " "); 
}
try this.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)