Can I safely switch to Innodb file-per-table and delete ibdata1? Here’s my plan of attack. I have a recent backup of all data.
- I added innodb_file_per_table=1 to /etc/my.cnf, and restarted
- I ran ALTER tablename ENGINE=InnoDB; on each Innodb table
Next, I’d like to:
- Stop MySQL
- Delete ibdata1, ib_logfile0, ib_logfile1
- Start MySQL
Will this work?
According to the documentation:
The answer to your question: NO, you can’t delete ibdata1, ib_logfile0 or ib_logfile1, because just enabling the option does NOT move your existing data.