Your SlideShare is downloading. ×
0
InnoDB - Why and how?
InnoDB - Why and how?
InnoDB - Why and how?
InnoDB - Why and how?
InnoDB - Why and how?
InnoDB - Why and how?
InnoDB - Why and how?
InnoDB - Why and how?
InnoDB - Why and how?
InnoDB - Why and how?
InnoDB - Why and how?
InnoDB - Why and how?
InnoDB - Why and how?
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

InnoDB - Why and how?

2,702

Published on

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

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,702
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
39
Comments
0
Likes
2
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

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

×