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?

2,718

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
0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
2,718
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
39
Comments
0
Likes
2
Embeds 0
No embeds

No notes for slide

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
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×