mysql 5.1.21 config file location problem...

Jeremy Chadwick koitsu at FreeBSD.org
Sat Sep 29 04:44:53 PDT 2007


On Sat, Sep 29, 2007 at 01:50:26PM +0300, Evren Yurtesen wrote:
> I recently upgraded to 5.1.21 and received the following message:
>
> 070929 06:48:41 mysqld_safe WARNING: Found /var/db/mysql/my.cnf
> The data directory is a deprecated location for my.cnf, please move it to
> /usr/local/my.cnf
>
> FreeBSD configuration files are located in /usr/local/etc thus mysql should 
> be looking the file at /usr/local/etc/my.cnf
>
> Perhaps there is a mistake somewhere?

Or you could do what I do: keep your my.cnf in your mysql data directory
(e.g. rc.conf variable `mysql_dbdir', default is /var/db/mysql) and not
worry about it.

-- 
| Jeremy Chadwick                                    jdc at parodius.com |
| Parodius Networking                           http://www.parodius.com/ |
| UNIX Systems Administrator                      Mountain View, CA, USA |
| Making life hard for others since 1977.                  PGP: 4BD6C0CB |



More information about the freebsd-ports mailing list