Hai friends,
I had a main web site and a number of 15 ( also increasing ) child websites. I had a master database in my main website. Now I need to connect main database from the child websites. I had a code to connect the database from main website that is...
mysql_connect("localhost", "user_name","password") or die(mysql_error());
mysql_select_db("database_name") or die(mysql_error());
I tried this code on child website. But access denied error showing. I already set all privileges to the above user . I tried this code
mysql_connect("mydomain.com", "user_name","password") or die(mysql_error());
mysql_select_db("database_name") or die(mysql_error());
I also tried www.mydomain.com, http://mydomain.com, ip address of my domain insted of "localhost" . But cant connect...
Please give me a help in the above problem.
Thanks in advance
Rajeesh