On Sat, Jul 07, 2001 at 10:36:08AM -0700, Michael Collins wrote:
>
> The MySQL manual mentions that the option file should be located at:
> DATADIR/my.cnf for Server-specific options. If I create two separate
> my.cnf files and locate them in the appropriate DATADIR for each of
> these, will there be any confusion over the options to be used? I am
> having problems doing so.
I've done it before.
Another thing I've done is to put a /etc/my.cnf file in place that ALL
the MySQL servers will read, and then override specific items in the
individual <datadir>/my.cnf files. Believe or not, it works pretty
well and makes the <datadir> files smaller.
> BTW, according to the manual:
>
> "DATADIR is the MySQL data directory (typically
> `/usr/local/mysql/data' for a binary installation or `/usr/local/var'
> for a source installation). Note that this is the directory that was
> specified at configuration time."
>
> Can I change this after installation and initial configuration?
I believe there's a command-line argument to mysql.server or
save_mysqld (don't recall which) that lets you specify a datadir at
runtime.
Should be easy to figure out which, since they're both shell
scripts. :-)
Jeremy
--
Jeremy D. Zawodny, <[EMAIL PROTECTED]>
Technical Yahoo - Yahoo Finance
Desk: (408) 349-7878 Fax: (408) 349-5454 Cell: (408) 439-9951
MySQL 3.23.29: up 21 days, processed 161,621,502 queries (86/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