Either put
datadir=/home/mydatadir
in the [mysqld] paragraph of the my.cnf file,
or move the data directory and create a symbolic link pointing the new
to the old.
Either way, shut down the server first.
tpchan wrote:
> Dear all,
>
> I installed mysql version 3.22.32 on Red Hat 6.2 using the rpm package.
> Since mysql data directory is stay in /var/lib/, plus my database is growing
> bigger day by day, my problem now is that the '/var' partition running short
> of free hard disk space.
>
> What I'm trying to do is to transfer the data directory to a new partition
> '/home' which had bigger space. Is there any way to solve this without
> reinstall back mysql server? Will the symbolic link solve this problem? If
> so, how?
>
> Thank you in advance.
>
> Emanduel Chan Tain Por
> System Engineer
> DotCom Consulting Sdn Bhd
> DID : 603-62763230 ext. 112
>
>
> ---------------------------------------------------------------------
> 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
--
Gerald L. Clark
[EMAIL PROTECTED]
---------------------------------------------------------------------
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