On Fri, Jul 27, 2001 at 03:13:58PM -0400, [EMAIL PROTECTED] wrote:
>
> Is it possible to have a single mysql server with multiple data
> directories? I would like to be able to specify where a database is
> physically located. I know that I can do this for all databases by
> setting the 'datadir' environment variable, but I have not seen a
> way to do this for multiple locations.
>
> Any ideas?
Right now, the only way is to symlink individual database directories
(or the table/index/frm files) from where MySQL thinks they should be
to the various locations you want them to be.
If MySQL wants to put the "foobar" database in
/home/mysql/data/foobar
and you want it in
/var/blah/data/foobar
you'll need to run
ln -s /var/blah/data/foobar /home/mysql/data/foobar
MySQL respects the symlinks just fine.
Jeremy
--
Jeremy D. Zawodny, <[EMAIL PROTECTED]>
Technical Yahoo - Yahoo Finance
Desk: (408) 349-7878 Fax: (408) 349-5454 Cell: (408) 685-5936 <-- NEW
MySQL 3.23.29: up 43 days, processed 339,389,854 queries (89/sec. avg)
---------------------------------------------------------------------
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