MySQL problem
#10

I don't need that tutorial, I need my database to connect and it is not working, there is no difference from my code and that code...


Code:
public ConnectMySQL()
{

	MHandle = mysql_connect(SQL_HOST, SQL_USER, SQL_PASS, SQL_DB);
    if(mysql_errno() != 0)
    {
        print("[MYSQL]: Failed to connect with using Following Informations: ");
        printf(" Host: %s | User: %s | Password: ****** | Database: %s", SQL_HOST, SQL_USER, SQL_DB);
    }
    else
    {
        printf("[MYSQL]: Connection Success to database: %s !", SQL_DB);
    }
	return 1;
}
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: 2 Guest(s)