If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > Reading db from another physical location

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-27-07, 20:39
anjanesh anjanesh is offline
Registered User
 
Join Date: Feb 2005
Location: Mumbai, India
Posts: 161
Reading db from another physical location

Hi

I have datadir=C:/MySQLData in my my.ini file.
I have an external harddisk that contains a huge mysql database.

Is there any way I can dynamically add another location to datadir ? (Say like F:\somefolder\)
Or atleast the new location temporarily instead of the one mentioned in the config file ?

Anjanesh
__________________
MySQL 5.1
Reply With Quote
  #2 (permalink)  
Old 05-28-07, 04:01
Frunkie Frunkie is offline
Gives Bad Advice
 
Join Date: Mar 2007
Location: 010101010110100
Posts: 791
Quote:
Originally Posted by anjanesh
Hi

I have datadir=C:/MySQLData in my my.ini file.
I have an external harddisk that contains a huge mysql database.

Is there any way I can dynamically add another location to datadir ? (Say like F:\somefolder\)
Or atleast the new location temporarily instead of the one mentioned in the config file ?

Anjanesh
I know that you can do this under UNIX but under windows I am not sure. I believe that all you would have to do is install the disk under your current windows installation and then mount the drive under Control Panel-> Admin Tools-> Computer Management --> Disk Management and install it there. This assumes that you are using 2K or XP.

Once the drive is installed and has a drive letter you should be able at that point to modify your my.conf file as you indicated to draw the db.
Reply With Quote
  #3 (permalink)  
Old 05-28-07, 06:15
anjanesh anjanesh is offline
Registered User
 
Join Date: Feb 2005
Location: Mumbai, India
Posts: 161
I dont think thats what Im looking for.
How can I add F:/somedbfolder to my C:\Windows\my.ini dynamically ?

Code:
datadir=C:/MySQLData; F:/somedbfolder
__________________
MySQL 5.1
Reply With Quote
  #4 (permalink)  
Old 05-28-07, 06:39
Frunkie Frunkie is offline
Gives Bad Advice
 
Join Date: Mar 2007
Location: 010101010110100
Posts: 791
I don't know of any way to "dynamically" add it to your my.ini file. You will need to add it manually as far as I am concerned but then again, I am certainley not the authority on windows.
Reply With Quote
  #5 (permalink)  
Old 05-29-07, 04:07
aschk aschk is offline
Registered User
 
Join Date: Mar 2007
Location: 636f6d7075746572
Posts: 770
Incidently, how do you do it under a Unix environment? I'm curious to find out.
Reply With Quote
  #6 (permalink)  
Old 05-29-07, 05:11
Frunkie Frunkie is offline
Gives Bad Advice
 
Join Date: Mar 2007
Location: 010101010110100
Posts: 791
Using a procedural language, one can do anything in a UNIX environment. Yes, I can dynamically add a path to my my.conf (Its not ini under UNIX) file but I'm not sure why I would want to.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On