Changing DATADIR

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jean Vaillancourt

    #1

    Changing DATADIR

    Hi,

    I installed MySql with the default settings. But I'd like now to change
    the place where I keep my data files. I tried changing the DATADIR
    parameter in /etc/my.cfg but the server won't start. Is there any way
    to change only the data directory from /var/lib/mysql to
    /otherplace/mysql and leave everything else in it's place?

    Thanks

    Jean Vaillancourt

Working...