Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
Switching to InnoDB But how?
Transactions Crash recovery Table 'node_revisions' is marked as crashed and should be repaired
 
> ALTER TABLE tablename ENGINE=InnoDB;
mysql_convert_table_format --type=InnoDB databasename
 
Buffer pool Tablespace Transaction log
[mysqld] default_storage_engine = InnoDB innodb_buffer_pool_size = 512M innodb_log_buffer_size = 8M innodb_log_file_size =...
innodb_flush_method = O_DIRECT (on Linux)
> SET GLOBAL innodb_fast_shutdown=0; $ mv /var/lib/mysql/ib_logfile* /somewhere/safe $ /etc/init.d/mysql restart
log = … log_bin = ... expire_log_days =
read_buffer_size = 1M read_rnd_buffer_size = 1M query_cache_limit = 128K query_cache_size = 8M
ourdelta.org
Upcoming SlideShare
Loading in …5
×

InnoDB - Why and how?

3,190 views

Published on

Why should you start using InnoDB to store your data in MySQL and how do you switch?

Why the default InnoDB settings on your favourite distro suck and what you should change, at a minimum.

Published in: Technology
  • Be the first to comment

InnoDB - Why and how?

  1. 1. Switching to InnoDB But how?
  2. 2. Transactions Crash recovery Table 'node_revisions' is marked as crashed and should be repaired
  3. 4. > ALTER TABLE tablename ENGINE=InnoDB;
  4. 5. mysql_convert_table_format --type=InnoDB databasename
  5. 7. Buffer pool Tablespace Transaction log
  6. 8. [mysqld] default_storage_engine = InnoDB innodb_buffer_pool_size = 512M innodb_log_buffer_size = 8M innodb_log_file_size = 32M innodb_file_per_table = 1
  7. 9. innodb_flush_method = O_DIRECT (on Linux)
  8. 10. > SET GLOBAL innodb_fast_shutdown=0; $ mv /var/lib/mysql/ib_logfile* /somewhere/safe $ /etc/init.d/mysql restart
  9. 11. log = … log_bin = ... expire_log_days =
  10. 12. read_buffer_size = 1M read_rnd_buffer_size = 1M query_cache_limit = 128K query_cache_size = 8M
  11. 13. ourdelta.org

×