InnoDB - Why and how?
Upcoming SlideShare
Loading in...5
×
 

InnoDB - Why and how?

on

  • 4,310 views

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.

Statistics

Views

Total Views
4,310
Views on SlideShare
4,301
Embed Views
9

Actions

Likes
2
Downloads
38
Comments
0

3 Embeds 9

http://www.slideshare.net 4
http://www.linkedin.com 4
http://webcache.googleusercontent.com 1

Accessibility

Categories

Upload Details

Uploaded via as OpenOffice

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

InnoDB - Why and how? InnoDB - Why and how? Presentation Transcript

  • 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 = 32M innodb_file_per_table = 1
  • 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