Welcome Guest ( Log In | Register )



 
Reply to this topicStart new topic
> Mysql Question...
Flawless
post Nov 22 2007, 10:40 PM
Post #1


Newbie [ Level 2 ]
Group Icon

Group: Members
Posts: 16
Joined: 6-January 07
Member No.: 19,171



I was wondering if you could use mysql databases to combine with a totally different host.

Example...

I do not want to move my files from my 1and1 hosting.

But I am out of databases i need 2 more.

Would I be able to use these ones if i decide to sign up for hosting with my 1and1 hosting? like the file is on my 1and1 hosting, just upload myphp or w/e and tables etc to the other mysql...?
Go to the top of the page
 
+Quote Post
vujsa
post Nov 23 2007, 12:12 AM
Post #2


Absolute Newbie
Group Icon

Group: Admin
Posts: 887
Joined: 20-February 05
From: Indianapolis, Indiana, USA (Midwest)
Member No.: 2,714



Why don't you just use the same database over!

If you add a different prefix for your tables, then you can get away with only one database for several scripts or even several installations of the same script.

For example this forum system, Invision Power Board, uses "ibf_" as a prefix for all of the tables it uses. So, in the same database, I could use the same set of tables for a second installation except use a different prefix like "ibf2_".

It is very difficult to get one host to connect to an MySQL server on a different host. Most host block such a connect to prevent security problems.

vujsa
Go to the top of the page
 
+Quote Post
Flawless008
post Nov 23 2007, 12:39 AM
Post #3


Newbie [ Level 2 ]
Group Icon

Group: Members
Posts: 12
Joined: 22-November 07
Member No.: 26,376



QUOTE(vujsa @ Nov 23 2007, 12:12 AM) *
Why don't you just use the same database over!

If you add a different prefix for your tables, then you can get away with only one database for several scripts or even several installations of the same script.

For example this forum system, Invision Power Board, uses "ibf_" as a prefix for all of the tables it uses. So, in the same database, I could use the same set of tables for a second installation except use a different prefix like "ibf2_".

It is very difficult to get one host to connect to an MySQL server on a different host. Most host block such a connect to prevent security problems.

vujsa


Thank you so much for your help, I am a PHP/MySQL Newbie so I had no idea, thanks biggrin.gif
Go to the top of the page
 
+Quote Post
TavoxPeru
post Nov 27 2007, 09:27 PM
Post #4


Super Member
Group Icon

Group: [HOSTED]
Posts: 750
Joined: 8-April 06
From: Lima - Peru
Member No.: 12,579



Yes you could do that but what vujsa says is correct and it is the best way to avoid a lot of problems.

Check the following topics for more information about:Best regards,

Go to the top of the page
 
+Quote Post
takashiro
post Dec 24 2007, 05:29 AM
Post #5


Member [ Level 1 ]
Group Icon

Group: [HOSTED]
Posts: 44
Joined: 26-August 07
Member No.: 24,372



I don't think it is possible to do so. As I know, connecting with MySQL shouldn't cross domains.
Go to the top of the page
 
+Quote Post
TavoxPeru
post Dec 25 2007, 12:45 AM
Post #6


Super Member
Group Icon

Group: [HOSTED]
Posts: 750
Joined: 8-April 06
From: Lima - Peru
Member No.: 12,579



QUOTE(takashiro @ Dec 24 2007, 12:29 AM) *
I don't think it is possible to do so. As I know, connecting with MySQL shouldn't cross domains.

Yes, it is possible to do, but it is not recommended.

Best regards and merry christmas,
Go to the top of the page
 
+Quote Post
Miles
post Dec 26 2007, 02:46 PM
Post #7


Advanced Member
Group Icon

Group: [HOSTED]
Posts: 177
Joined: 25-December 07
Member No.: 27,129



QUOTE(takashiro @ Dec 24 2007, 05:29 AM) *
I don't think it is possible to do so. As I know, connecting with MySQL shouldn't cross domains.

It is possible.

It all depends on your host, if they permit you to use their mySQL databases on a different website hosted outside of them, feel free to. Otherwise, do as vujsa says and use different table prefixes.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. MySQL - Trouble With Bulk Insert Statements(3)
  2. MySQL Realtime Replication(4)
  3. Question About Professional 3d Animating(21)
  4. Recover Tables From A MySQL .frm File(8)
  5. Mp3 Questions(14)
  6. Need Help With A PHP - MySQL Registration Script(13)
  7. How To Install Applications In Fedora(12)
  8. [PHP + MySQL] Encrypting Data(9)
  9. MySQL Output Database Question(18)
  10. VB.NET / MS Access Question(6)
  11. What's The Best CMS(35)
  12. MySQL, Multiple Tables(24)
  13. Ipod Hardware And Software Question(9)
  14. PHP & MySQL: Displaying Content From A Given ID(6)
  15. Navcat For MySQL(8)
  1. Qupis : Free Cpanel Web Hosting (one Line Text Ad At Bottom)(10)
  2. Login System Using A Mysql Db(5)
  3. Do Google Search Better Than Yahoo?(15)
  4. Simple Java Question(3)
  5. Mysql Database Entry By Excel Sheets(2)
  6. Can You Link Game Maker With Mysql/php(0)
  7. Mysql On Computer(9)
  8. How To: Display A Members/user List.(3)
  9. Any Website Provide Free Host Mysql Host?(4)
  10. Mysql Multiple Tables(1)
  11. Question About Opengl Codes.(0)
  12. Css Minus The <p>(9)
  13. What You Need Before You Can Create A Text-based Game..(7)


 



- Lo-Fi Version Time is now: 8th September 2008 - 03:09 AM