MySQL failed to connect
#7

#EDIT

I MADE IT WORK WITH THIS

Код:
MHandle = mysql_connect(SQL_HOST, SQL_USER, SQL_DB, SQL_PASS);
    if(MHandle)
    {
        printf("[MYSQL]: Connection Success to database: %s !", SQL_DB);
        mysql_query("CREATE TABLE IF NOT EXISTS `players`(`id` int(11) NOT NULL auto_increment PRIMARY KEY,`Username` varchar(30) NOT NULL,`Password` varchar(50) NOT NULL,`Money` int(10) NOT NULL default '0')");
    }
    else
    {
        print("[MYSQL]: Failed to connect with using Following Informations: ");
        printf(" Host: %s | User: %s | Password: ****** | Database: %s", SQL_HOST, SQL_USER, SQL_DB);

    }
Reply


Messages In This Thread
MySQL failed to connect - by AndreiWow - 28.01.2017, 03:29
Re: MySQL failed to connect - by DerickClark - 28.01.2017, 03:30
Re: MySQL failed to connect - by AndreiWow - 28.01.2017, 03:37
Re: MySQL failed to connect - by DerickClark - 28.01.2017, 03:44
Re: MySQL failed to connect - by AndreiWow - 28.01.2017, 16:16
Re: MySQL failed to connect - by DerickClark - 28.01.2017, 16:26
Re: MySQL failed to connect - by AndreiWow - 28.01.2017, 21:10

Forum Jump:


Users browsing this thread: 1 Guest(s)