List:MySQL on Win32« Previous MessageNext Message »
From:Tony White Date:January 10 2010 7:55pm
Subject:RE: How to have one data file per database
View as plain text  

Absolutely possible. You are on the right track with creating a new
service. Bearing in mind that on your dev box you will have to alter the
.ini file of the new service to use a different data directory and a
different port. Sort the errors out on the second instance - bear in
mind that your connection string will have to include the -P option to
specify the new port and you will have what you are trying to achieve.

Tony White 
Tel : 01252 390063 

-----Original Message-----
From: Gerry Whitmarsh [mailto:gerry.whitmarsh@stripped] 
Sent: 10 January 2010 17:10
To: win32@stripped
Subject: How to have one data file per database

Hi, maybe this is a daft question and I am missing something, but here

I have two applications - app A and app B with two databases - db A and
B. I have a server running and ODBC connections to the two databases. I
run the applications and app A accesses db A and app B access db B. I
need to deploy these two applications to two different users but there
only one ibdata1 file.

Is there a way to keep the two databases apart and have one ibdata1(or
another name) file per database?

I have tried creating a new service pointing to a different ini file
innodb_data_home_dir points to a different location but I just get all
of errors.

I am running MySQL 5.1.

Any help would be greatly appreciated.

Life's journey is not to arrive at the grave safely, in a well-preserved
body,  but rather to slide in sideways, totally worn out, shouting ****,
what a ride!!!
The opinions expressed are those of the individual and not the company.
Internet communications are not secure and therefore Thomson Directories Limited ("the
company") does not accept liability for any claims arising as a result of the use of this
medium for transmissions by or to the company.   
This email and any files transmitted with it are confidential. If you are not the intended
recipient, you are hereby notified that any disclosure, distribution or copying of this
communication is strictly prohibited. 
Whilst we take every reasonable precaution to screen out computer viruses from emails,
attachments to the email may contain such viruses.  We cannot accept liability for loss or
damage resulting from such viruses.
Thomson Directories Ltd. Registered Office: Thomson House, 296 Farnborough Road,
Farnborough, Hants. GU14 7NU. Incorporated in England. Registered No. 902438
How to have one data file per databaseGerry Whitmarsh10 Jan
  • RE: How to have one data file per databaseJorge Bastos10 Jan
  • RE: How to have one data file per databaseJohn Bonnett10 Jan
    • Re: How to have one data file per databaseGerry Whitmarsh11 Jan
      • Re: How to have one data file per databaseShawn Green4 Feb
RE: How to have one data file per databaseTony White10 Jan
Re: How to have one data file per databaseGerry Whitmarsh11 Jan