MySQL problem
#5

Quote:
Originally Posted by AndreiWow
View Post
Why not use R41-2? the lastest MySQL




R41-2 code

Code:
#define    MYSQL_HOST        "127.0.0.1"
#define    MYSQL_USER        "root"
#define    MYSQL_DATABASE    "databasename"
#define    MYSQL_PASSWORD    ""

    mysql = mysql_connect("127.0.0.1", "root", "", "dataname");
    if(mysql_errno() != 0) // checks if the server failed to connected or not
    {
        print("[MYSQL]: Failed to connect with using Following Informations: ");
        printf(" Host: %s | User: %s | Password: ****** | Database: %s", MYSQL_HOST, MYSQL_USER, MYSQL_DATABASE);
    }
    else
    {
        printf("[MYSQL]: Connection Success to database: %s !", MYSQL_DATABASE);
    }
Reply


Messages In This Thread
MySQL problem - by AndreiWow - 27.01.2017, 23:46
Re: MySQL problem - by renatog - 27.01.2017, 23:54
Re: MySQL problem - by AndreiWow - 27.01.2017, 23:58
Re: MySQL problem - by renatog - 28.01.2017, 01:18
Re: MySQL problem - by DerickClark - 28.01.2017, 01:25
Re: MySQL problem - by AndreiWow - 28.01.2017, 01:39
Re: MySQL problem - by DerickClark - 28.01.2017, 01:40
Re: MySQL problem - by AndreiWow - 28.01.2017, 01:42
Re: MySQL problem - by DerickClark - 28.01.2017, 01:44
Re: MySQL problem - by AndreiWow - 28.01.2017, 01:45
Re: MySQL problem - by renatog - 28.01.2017, 01:57
Re: MySQL problem - by DerickClark - 28.01.2017, 02:01
Re: MySQL problem - by AndreiWow - 28.01.2017, 03:00
Re: MySQL problem - by DerickClark - 28.01.2017, 03:02
Re: MySQL problem - by AndreiWow - 28.01.2017, 03:04
Re: MySQL problem - by renatog - 28.01.2017, 11:13
Re: MySQL problem - by Snich - 05.02.2017, 21:18
Re: MySQL problem - by Vince - 05.02.2017, 21:58
Re: MySQL problem - by BlackBank - 05.02.2017, 22:43
Re: MySQL problem - by DRIFT_HUNTER - 05.02.2017, 23:32
Re: MySQL problem - by X337 - 06.02.2017, 02:34

Forum Jump:


Users browsing this thread: 3 Guest(s)