hello friend i have two site hosted on different host both support php in site a currently i am using one database application in site b (hosted on different server) i dont purchased database so i want to access database from site a, is it possible thank you
you'll have to allow remote database connections to the server site A is on.. then connect via IP instead of "localhost" from site b
Thanks for your reply i do the same thing but i dont get success i get flowing error Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'usernamefromsitea'@'corp4.net4india.com' (using password: YES) in /webcorp1/www/corpusers/a/s/domain.com/includes/Database.class.php on line 7 when i try with different domain on same server its connect successfully but if i try to connect different domain and different server, its cant connect.
You have to add the user and allow access from the remote host as well. What method of managing your database are you using, phpmyadmin, ssh, etc...?
I am using cpanel phpmyadmin how to add user and allow access from remote host i am using same username and password for site b as i am using for site a
Its working now i add IP with percentage in remote host and its is working now like 123.173.12.% instead of 123.173.12.142 Thank you all of you for help