Check in your MySQL data directory. If it has, each table will have it's own .idb fileHow to tell if innodb_file_per_table=1 has already been applied to a table?
Check in your MySQL data directory. If it has, each table will have it's own .idb file
No need for a dump. Set the variable (on a global basis) then do a no-op alter table:
alter table tbl_name engine=innodb;
Will move it out of the system tablespace.
Only problem is that it cannot reclaim the space in the system tablespace. The only way is to dump every database, and rebuild the MySQL InnoDB datafile and then do a reimport. Maybe in the future....Ah, I didn't know that - handy tip - thanks.![]()
Stop MySQL. Rename your current log files (ib_logfile0 and ib_logfile1 to something else - I generally put old on the end of them) and then restart MySQL. It should create the new log files at the size you've set in my.cnf
Rinse and repeat if you need to change the size again or want to experiment with the impact of different size logs.
+1 very important !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!You need to make a clean MySQL server stop with fully flushing the tasks if you intend to delete the log files. Otherwise innodb may complain after the restart.
You need to make a clean MySQL server stop with fully flushing the tasks if you intend to delete the log files. Otherwise innodb may complain after the restart.
It worked now, thanks for all the help!
I still have another problem. From day to day (depends how many users are online) the web-server still freezes. The hosting company says it's because of elasticsearch (version 0.18.7) which takes all the memory.
Maybe it has something to do with the configuration of ES?
Interesting tool, thanks for the info!I'd then look at downloading mysqltuner and running that against the DB to see what else is recommends tweaking.
We use essential cookies to make this site work, and optional cookies to enhance your experience.