You can relocate an entire database with a symbolic link:

ln -s /path/to/database/files /var/lib/mysql/database_name

--jeff

----- Original Message -----
From: "Niranjan Patel" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, October 14, 2002 10:50 AM
Subject: Default data dir


> Hello
>
> In my case Default data files directory is
> /var/lib/mysql. I want to store all files of one
> database in another directory.
>
> Is there a way we can specify data directory per
> database. Or else can we change the entire data
> directoy of mysql.
> I tried to change it using my.cnf but I guess i missed
> something. can someone point me to exact steps
>
> Thanks
> Niranjan
>
>
> __________________________________________________
> Do you Yahoo!?
> Faith Hill - Exclusive Performances, Videos & More
> http://faith.yahoo.com
>
> ---------------------------------------------------------------------
> Before posting, please check:
>    http://www.mysql.com/manual.php   (the manual)
>    http://lists.mysql.com/           (the list archive)
>
> To request this thread, e-mail <[EMAIL PROTECTED]>
> To unsubscribe, e-mail
<[EMAIL PROTECTED]>
> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
>


---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to