Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 Jan 2008 16:56:41 -0000
From:      "Barry Byrne" <barry.byrne@wbtsystems.com>
To:        "'zbigniew szalbot'" <zbigniew@szalbot.homedns.org>, <freebsd-questions@freebsd.org>
Subject:   RE: changing mysql datadir
Message-ID:  <016901c84ef2$c7945b60$c5010c0a@SUNYA>
In-Reply-To: <477E6215.8030309@szalbot.homedns.org>
References:  <477E6215.8030309@szalbot.homedns.org>

next in thread | previous in thread | raw e-mail | index | archive | help
> -----Original Message-----
> From: owner-freebsd-questions@freebsd.org 
> [mailto:owner-freebsd-questions@freebsd.org] On Behalf Of 

> Wonder if you know whether it is possible to change mysql server data 
> dir from the default /var/db/mysql. I looked through my-small.cnf but 
> found no option called datadir.
> 
> If anyone knows how to change or where to look for 
> compile-time options 
> to set a custom datadir, I'd very much appreciate a link. I 
> was able to 

Put the following in /etc/rc.conf

mysql_dbdir="/path/to/datadir"

 - barry 




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?016901c84ef2$c7945b60$c5010c0a>