•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the MySQL section within the Web Development category of DaniWeb, a massive community of 375,198 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 1,976 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our MySQL advertiser:
Views: 454 | Replies: 3
![]() |
| |
•
•
Join Date: Mar 2008
Posts: 1
Reputation:
Rep Power: 0
Solved Threads: 0
Dear programers,
i am new to mysql and webhosting.
i have one website script,i want to instal the same script to my two domain
names(for example: domain1.com and domain2.com)
i dont want to add this two domain like addon domain.
i have two different hosting for this two domains.
for domain1 i have instal the script,during the installation the script asked
the following
i have filled the same below)
Host:Local host
Database name:xxx
User name:YYY
Password:ZZZ
the domain1 is working fine.
for domain2 i like to use the domain1 database(xxx)(it is in diff hosting)
1)i want to know how to use the same database for diff domains?
2)pls help me to fill the following for domain2,
Host:
Database name:
User name:
Password:
Regards,
john
i am new to mysql and webhosting.
i have one website script,i want to instal the same script to my two domain
names(for example: domain1.com and domain2.com)
i dont want to add this two domain like addon domain.
i have two different hosting for this two domains.
for domain1 i have instal the script,during the installation the script asked
the following
i have filled the same below)Host:Local host
Database name:xxx
User name:YYY
Password:ZZZ
the domain1 is working fine.
for domain2 i like to use the domain1 database(xxx)(it is in diff hosting)
1)i want to know how to use the same database for diff domains?
2)pls help me to fill the following for domain2,
Host:
Database name:
User name:
Password:
Regards,
john
•
•
Join Date: Dec 2004
Location: London or Slovakia
Posts: 1,924
Reputation:
Rep Power: 9
Solved Threads: 221
•
•
•
•
There shouldn't be a problem there. Use the same connection details for both domains.
Wrong, because DB
•
•
•
•
for domain2 i like to use the domain1 database(xxx)(it is in diff hosting)
John, you need to ask your provider (from the one with DB) if databases is enabled for external access.
If not ask if it is posible, many providers do it, many refuse it as they do not knnow how

Once external access enabled your provider should also give you details how to connect to DB, can be IP or URL string
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)
If we helped you to solve your problem, answered your question please mark your post as SOLVED.
Publilius Syrus
(~100 BC)
If we helped you to solve your problem, answered your question please mark your post as SOLVED.
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb MySQL Marketplace
•
•
•
•
amd avatar backup blue gene brands breach business chips daniweb data protection database development domains dos energy enterprise europe government hacker hardware ibm ibm. news internet ipv6 it legal linux marketing medicine memory microsoft news open source openoffice pc ps3 recession red hat security server sql sun supercomputer supercomputing survey trends ubuntu web working x86
- eGenre.com and OpenLiberal.com - Two domains being sold separately ($150 each) (Domain Names for Sale)
- 5 future Tech. .info Domains to invest in, dark-web.info, hdstation.info, etc.. (Domain Names for Sale)
- Northern VA - Expert Data Architect (Tech / IT Consultant Job Offers)
- Shopshot.com, iOwn.us & more quality domains .com .us & .info (Domain Names for Sale)
- 250 MB Disk / 40 GB Traffic Free PHP & MySQL Host (Web Hosting Deals)
- Impressive domains with REAL WORDS - Tech, Social, Web, etc. Take a look! (Domain Names for Sale)
- Need a good MySQL Database guy (Web Development Job Offers)
- MicroOLAP Database Designer for MySQL (Post your Resume)
- Radical Vision, LLC - 2 Months Free - 4 GB Disk Space / 45GB BW / Unlim. Domains (Web Hosting Deals)
Other Threads in the MySQL Forum
- Previous Thread: mysql and oledb .net problems
- Next Thread: how to generate a mysql query from a english question



Hybrid Mode