Daren,
Wednesday, August 14, 2002, 11:49:22 PM, you wrote:

DC> My Linux installation only has about 1gb in the /var
DC> partition, so I need to relocate my databases to the
DC> /home partition. I'm pretty sure the following
DC> commands will shutdown mysql, move the data directory,
DC> create a symbolic link, and then restart mysql. My
DC> question is, is this complete, or do I need to
DC> chown/chgrp/chmod the new symbolic link directory?

DC> mysqladmin -u root -p shudown
DC> mv /var/lib/mysql /home
DC> ln -s /home/mysql /var/lib/mysql
DC> /etc/rc.d/init.d/mysqld start

If you want to have another data dir than /var/lib/mysql you can just
specify new data dir with --datadir=# option of mysqld or edit my.cnf
file.
Don't forget to check permissions on the new data dir.





-- 
For technical support contracts, goto https://order.mysql.com/?ref=ensita
This email is sponsored by Ensita.net http://www.ensita.net/
   __  ___     ___ ____  __
  /  |/  /_ __/ __/ __ \/ /    Egor Egorov
 / /|_/ / // /\ \/ /_/ / /__   [EMAIL PROTECTED]
/_/  /_/\_, /___/\___\_\___/   MySQL AB / Ensita.net
       <___/   www.mysql.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

Reply via email to