Link to home
Start Free TrialLog in
Avatar of futr_vision
futr_vision

asked on

Is there a way to share a single database between two different OS's

I'm building a test system that I will be installing Server 2003 and Ubuntu on. I'm setting up both systems to test which one I would prefer to use as a web server. Sharing the same web page files between the two shouldn't be a problem(or maybe it is) but I was wondering if there is a way to share the same database between the two. I'm guessing that any sharing that is going to happen has to be limited to what both OS's will allow to be installed.
Avatar of Piloute
Piloute
Flag of France image

Hi,

Since you want to have one single database that is shared, you only have to care about the choice of a database that you can install on one of the two systems.

The other system (OS) will be able to query your database form a distinct OS, since there's no relation between running a database (that is running the binaries of your rdbms) and accessing the data of that database. Most of the databases can be accessed from any OS these days (using JDBC, ODBC, etc...).

Now, if you determine you want to keep the database from 'the other' machine on your final server, you will still need to copy the data over. Again, most of the dbs have clean exporting/dumping features that will allow you to copy the data over.

Cheers,
P
PS. And sharing your pages should be pretty easy if you store them on a drive that is accessible to both systems...

;)
Avatar of futr_vision
futr_vision

ASKER

One quick note. I'm not sure if I made this clear but both OS's will be o the same system and I will be booted into only one of them at a time. I referred to the two OS's being on systems when I really should have said they will be on partitions (actually their own hard drives) in a single system. A common  repository for the web pages and their assets is easy enough but can you do the equivalent with the DB?
OK. I thought it would be 2 distinct machines. In this case are you using virtual machines ? In other words, are they running in the same time ? If yes, my previous answer is the right one.

If your system is a dual boot, and you wish to boot either to one or the other OS, then there's no way to do it with a single machine AND one single database.

You have 2 solutions :
- you install the database 'outside' your OSes and access it from them when you run tests. You need a 2nd computer for that.
- you install a virtualization tool, such VMware and you will be able to have both systems up and running in the same time. Once done, see my prevoius answer.

A database is a 'program' that runs and that needs a running OS in order to be available. So either you install it on a single OS, but this one must be always available. OR you install one database on each of the OSes, and then you duplicate the data (you will have 2 databases).


Cheers,
P
Thanks. Since one OS is Linux and the other is Windows I think MySQL is the only option I have unless of course there is a way to replicate the data between the two. if I used both MySQL and MS SQL Server how would I share the data between the two if that is possible. If i use MySQL on both what are my options?
ASKER CERTIFIED SOLUTION
Avatar of Piloute
Piloute
Flag of France image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial