On 29-Jul-2001 Brian Thompson wrote:
> I have my /var/ partition set to 400mb, but I need about 4 gigs for a mysql
> database im setting up
> 
> how can I relocate the data files in the users /home directory, or how can I
> fix this?
> 

Assume the datadir is /var/db/mysql

make a backup
shutdown your server (mysqladmin shutdown)

as root :

# mkdir /home/mysql
# chown mysql /home/mysql
# cp -Rp /var/db/* /home/mysql
# rm -rf /var/db/mysql
# ln -sf /home/mysql /var/db/mysql

restart your server & check for error messages.

Regards,
-- 
Don Read                                       [EMAIL PROTECTED]
-- It's always darkest before the dawn. So if you are going to 
   steal the neighbor's newspaper, that's the time to do it.
                            (53kr33t w0rdz: sql table query)

---------------------------------------------------------------------
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