13.10.2013, 14:52
Hello guys.I have problem,when my GameMode connecting to mysql.When it try to connect,I get this:
GameMode mysql code:
Can say to me whats wrong?
PHP код:
[20:15:05] >> mysql_connect( )
[20:15:05] CMySQLHandler::CMySQLHandler() - constructor called.
[20:15:05] CMySQLHandler::CMySQLHandler() - Connecting to "localhost" | DB: "samp15385" | Username: "samp15385" ...
[20:15:05] CMySQLHandler::Connect() - Access denied for user 'samp15385'@'localhost' (using password: YES) (Error ID: 1045)
PHP код:
public OnGameModeInit()
{
mysql_debug( true );
mysql_connect(MySQL_HOST,MySQL_USER,MySQL_DATA,MySQL_PASS);
if( mysql_ping( ) >= 1 )
{
print( "Connected to mysql succsesfull" );
}
else
{
print( "Connected to mysql failed" );
}
for(new p=0; p<MAX_STREAMED_OBJECT; p++)
{
myobject[p] = -1;
}
PHP код:
#define MySQL_HOST "127.0.0.1"
#define MySQL_USER "samp2514"
#define MySQL_DATA "samp2514"
#define MySQL_PASS "karoce"