hi,
i have a small project for the report's section at present i have the mysql db
in my linux system now i need to use another mysql in another system ,
what are the changes should be done in the code level . i have use this code as
below .
this is the at present code .
----------------------------------------------------------------------------------------------------
if( !mysql_real_connect( mysql,192.168.100.1,yogeshdb, 123456, yog1,
3306, NULL, 0))
{ //localhost ->192.168.100.1
printf("\n!!!!!!!!!!!");
}
----------------------------------------------------------------------------------------------------
i change the code to the as below
----------------------------------------------------------------------------------------------------
if( !mysql_real_connect( mysql,192.168.100.78,yogeshdb, 123456, yog1, 3306,
NULL, 0))
{ //localhost ->192.168.100.1
printf("\n!!!!!!NEW!!!!!");
}
----------------------------------------------------------------------------------------------------
if i run the code it is connecting to the local database .it is not using the
another remote system database .
whats the problem in the code .
i am using gcc3.2 version ,Redhat Enterprise edition4 ,mysql 4.1.7 .i givent he
grant all permission to the database also .
kindly find a solution .what are the changes to be done in the code.
Thanks & Regards
Yogesh K
DISCLAIMER:
This communication may be confidential and privileged and the views expressed
herein may be personal and are not necessarily the views of ReDIM.
It is for the exclusive use of the intended recipient. If you are not the
intended recipient, please note that any distribution,
copying or use of this communication or the information in it is strictly
prohibited.If you have received this communication
in error, please notify us by email (info@xxxxxxxxx) and then delete the email
and any copies of it.