Problem with mysql
#1

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


Messages In This Thread
Problem with mysql - by MindaugasL - 13.10.2013, 14:52
Re: Problem with mysql - by gtakillerIV - 13.10.2013, 15:01
Re: Problem with mysql - by MindaugasL - 13.10.2013, 16:55
Re: Problem with mysql - by Konstantinos - 13.10.2013, 16:57
Re: Problem with mysql - by MindaugasL - 13.10.2013, 17:01
Re: Problem with mysql - by Konstantinos - 13.10.2013, 21:27
Re: Problem with mysql - by DanishHaq - 13.10.2013, 21:30
Re: Problem with mysql - by iJumbo - 15.10.2013, 11:49

Forum Jump:


Users browsing this thread: 3 Guest(s)