What can I delete after moving MySQL database files location

Posted by kopeklan on Server Fault See other posts from Server Fault or by kopeklan
Published on 2010-12-23T15:19:22Z Indexed on 2010/12/23 15:55 UTC
Read the original article Hit count: 448

Filed under:

I'm trying to move the location of database files from /var/lib/mysql to /home/lib/mysql

I only changing database files. Socket is still /var/lib/mysql/mysql.sock (only changing datadir in my.cnf)

Now, all data in /var/lib/mysql has been copied to /home/lib/mysql

MySQL has been started and everything is fine. Now time to cleaning up data in /var/lib/mysql

but I'm not sure what data can and cannot be removed in /var/lib/mysql

this is data (except database name) in /var/lib/mysql:

ibdata1
ib_logfile0
ib_logfile1
mysql

© Server Fault or respective owner

Related posts about mysql