[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)
#define MYSQL_HOST "127.0.0.1"
#define MYSQL_USER "root"
#define MYSQL_DATABASE "tw_server"
#define MYSQL_PASSWORD "admin"
public OnGameModeInit()
{
mysql = mysql_connect("127.0.0.1", "root", "admin", "tw_server");
}
#define MYSQL_HOST "127.0.0.1"
#define MYSQL_USER "root"
#define MYSQL_DATABASE "tw_server"
#define MYSQL_PASSWORD ""
public OnGameModeInit()
{
mysql = mysql_connect("127.0.0.1", "root", "", "tw_server");
}
[12:08:22] [plugins/mysql] mysql_connect: no password specified
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 |
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 |
I'm using xampp but in the warning folder it had said
Код:
[12:08:22] [plugins/mysql] mysql_connect: no password specified |
public OnGameModeInit() { mysql = mysql_connect("localhost", "root", "admin", " "); }