Just an FYI, but you can also specify at startup of mysqld by passing the "--datadir" option. This will override what is in your option file, until the next restart.
> -----Original Message----- > From: Arunas Milašauskas [mailto:[EMAIL PROTECTED] > Sent: Wednesday, November 12, 2003 8:26 AM > To: [EMAIL PROTECTED] > Subject: RE: Changing Data Directory > > > in my.cnf: > [mysqld] > datadir=/var/lib/mysql > > > -----Original Message----- > From: Daniel Kiss [mailto:[EMAIL PROTECTED] > Sent: Wednesday, November 12, 2003 3:21 PM > To: [EMAIL PROTECTED] > Subject: Changing Data Directory > > > Hi all, > > How can I change the directory of the databases? > I have tries the basedir switch in the my.cnf [mysqld] section, but it > did not work. > How should I do it? > > Thanks, > > > > -- > MySQL General Mailing List > For list archives: http://lists.mysql.com/mysql > To unsubscribe: > http://lists.mysql.com/[EMAIL PROTECTED] > > > -- > MySQL General Mailing List > For list archives: http://lists.mysql.com/mysql > To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED] > > > > -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED]