[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Error after change MySQL datadir


Because root partition low space and some database growing, today I've moved 
MySQL databases from /var/lib/mysql to /home/databases/mysql:

- Stopped mysql
- Moved database files (mv with -a option)
- Not moved ib* files.
- Change datadir in /etc/mysql/my.cnf
- Start mysql

MySQL works fine, but I get this error in /var/log/syslog:

Oct 22 20:34:53 itaca /etc/mysql/debian-start[28351]: Can't find data 
directory. Please restart with --datadir=path-to-data-dir

I don't locate information about this error.  Any idea?  Thanks :)



Reply to: