Problem connection mysql r41-3
#6

Try this.

PHP Code:
handle mysql_connect(MYSQL_HOSTMYSQL_USERMYSQL_PASSMYSQL_DB);
Details for mysql_hostetc:
#if defined Server1
    #define MYSQL_HOST         ""
    #define MYSQL_USER         ""
    #define MYSQL_PASS         " "
    #define MYSQL_DB        ""
#endif
#if defined Server2
    #define MYSQL_HOST         "localhost"
    #define MYSQL_USER         "root"
    #define MYSQL_PASS         " " // SPACE IF NO PASS
    #define MYSQL_DB        "testx"
#endif 
Also, why you have not filled up MYSQL_HOST, MYSQL_USER, MYSQL_DB and MYSQL_PASS in Server1? It's totally unnecessary, remove the whole of Server1.
Reply


Messages In This Thread
Problem connection mysql r41-3 - by skuller12 - 21.07.2017, 14:47
Re: Problem connection mysql r41-3 - by skuller12 - 21.07.2017, 18:19
Re: Problem connection mysql r41-3 - by skuller12 - 22.07.2017, 06:44
Re: Problem connection mysql r41-3 - by skuller12 - 23.07.2017, 05:22
Re: Problem connection mysql r41-3 - by skuller12 - 24.07.2017, 06:42
Re: Problem connection mysql r41-3 - by AjaxM - 24.07.2017, 07:19
Re: Problem connection mysql r41-3 - by skuller12 - 24.07.2017, 08:44
Re: Problem connection mysql r41-3 - by Xeon™ - 24.07.2017, 09:06
Re: Problem connection mysql r41-3 - by skuller12 - 24.07.2017, 09:18
Re: Problem connection mysql r41-3 - by Xeon™ - 24.07.2017, 09:25
Re: Problem connection mysql r41-3 - by skuller12 - 24.07.2017, 09:26
Re: Problem connection mysql r41-3 - by Xeon™ - 24.07.2017, 09:30
Re: Problem connection mysql r41-3 - by skuller12 - 24.07.2017, 09:32
Re: Problem connection mysql r41-3 - by Xeon™ - 24.07.2017, 09:38
Re: Problem connection mysql r41-3 - by skuller12 - 24.07.2017, 09:39
Re: Problem connection mysql r41-3 - by Xeon™ - 24.07.2017, 09:41

Forum Jump:


Users browsing this thread: 2 Guest(s)