View Single Post
Old 24/07/2017, 07:19 AM   #6
AjaxM
Big Clucker
 
AjaxM's Avatar
 
Join Date: May 2016
Posts: 180
Reputation: 29
Default Re: Problem connection mysql r41-3

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.
__________________
Website | Forums| IP: 51.255.215.208:7817
AjaxM is offline   Reply With Quote