How can I connect databse from one domain to another domain? |
[eluser]suba[/eluser]
Hi all, I have two domain like www.one.com and www.two.com I want to access mysql database from one domain to another domain. Is it possible? If it is possible how do i need to setup? please advice me.
[eluser]Krzemo[/eluser]
Question no 1: Are both of them hosted on the same account/virtual server/box?
[eluser]suba[/eluser]
I have two options. one category is different account. one category is same account. pls give for two options.
[eluser]Yorick Peterse[/eluser]
You would connect to this server the same way as you normally would. I'm not sure if CI supports a socket based connection, but if you're running a plain MySQL server you'll just have to enter the details as you normally would do and you're done. For example: Code: $db['default']['hostname'] = "domain2.com";
[eluser]suba[/eluser]
Hi This setup I have done for which domain is running currently. After Login my page I want to create report . So I need to retrieve data from both table as well as from both domain database .
[eluser]metaltapimenye[/eluser]
easy .. Code: #system/application/config/database.php #@ www.one.com when you need to connect to www.two.com Code: $group_name['hostname'] = "remote.domain2.com"; .. of course you need to provide remote account at www.two.com |
Welcome Guest, Not a member yet? Register Sign In |