you know databases, how hard can MySQL be?
Upcoming SlideShare
Loading in...5
×
 

you know databases, how hard can MySQL be?

on

  • 2,328 views

DBAs everywhere are being asked to support MySQL as a less costly alternative in Oracle's portfolio. Rest assured, (almost) everything you know about Oracle can be translated and applied to ...

DBAs everywhere are being asked to support MySQL as a less costly alternative in Oracle's portfolio. Rest assured, (almost) everything you know about Oracle can be translated and applied to supporting MySQL with some new vocabulary and some smart starting points.

This talk will touch on 5 things that are helpful to get right from the beginning. Through anecdotes i'll spotlight some common pitfalls, share paths to a fix If you've inherited a running system and offer a vocabulary lesson so those who speak Oracle can start understanding MySQL. I'll be touching on user management and security, backups and replicas, monitoring, storage engine choices, and probably monitoring again (because it is that important).

Statistics

Views

Total Views
2,328
Views on SlideShare
2,327
Embed Views
1

Actions

Likes
2
Downloads
33
Comments
0

1 Embed 1

http://www.linkedin.com 1

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

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
  • datadir
  • best practices including removing test users, requiring passwords, not logging in as root,
  • •❑ inno - row with exception •❑ myi - table -- fast in some cases and search cases ( fast inserts? without lock )•❑federated - replication not multiple master. •❑ blackhole handy for logging without inserting into db or skipping a db for fake muliple master
  • Much performance pain come into play with lock contention
  • Much performance pain come into play with lock contention Names changed to protect the innocent
  • Understand MTR and see if you meet that goal. tarball /dump / cpio not a valid backup
  • •❑ tarball /dump / cpio not a valid backup •❑ replication•❑innohot•❑lvm backup script... lvmbackup? •❑ mysqldump = 100% inno ok. single transaction .•❑xtrabackup -- free innohot
  • LVM and slaves give easy opportunities for creating clones for testing
  • If you’re worried about swapping, use huge page support for mysql (linux doesn’t swap out huge pages
  • •❑ disk•❑memory•❑up/down•❑cachehit -- baseline defiinition•❑replication •❑ mktablesync•❑mkchecksum

you know databases, how hard can MySQL be? you know databases, how hard can MySQL be? Presentation Transcript

  • you know databases (how hard can MySQL be?) sarah novotny – [email_address] open database services www .BlueGecko . net
    • language
    • user management and security
    • storage engines and locking
    • backups and replicas
    • monitoring
    • free tools
    www .BlueGecko . net
    • common language
    www .BlueGecko . net schema instance SGA/PGA/UGA filesystem layout
    • SGAish
    • max_memory =
    • thread_memory * max_connections
    • + query_cache_size
    • + innodb_buffer_pool_size
    • + innodb_additional_mem_pool_size
    • + innodb_log_buffer_size
    • + key_buffer_size
    www .BlueGecko . net
    • common language
    • UGAish
    • thread_memory =
    • thread_stack_size
    • + net_buffer_length
    • + max_allowed_packet
    • + read_buffer_size
    • + join_buffer_size
    • + tmp_table_size
    • + myisam_sort_buffer_size
    www .BlueGecko . net
    • common language
  • www .BlueGecko . net
    • common language
  • www .BlueGecko . net
    • common language
    • a short diversion
    • from High Performance
    • MySQL 2 nd Edition (HPM2e)
    • -Baron Schwartz, Peter Zaitsev,
    • Vadim Tkachenko, and Jeremy
    • Zawodny
    • (don’t mistake 1 st Edition for 2 nd.
    • 1 st is dangerously out of date
    • unless you’re running version 4.0)
    www .BlueGecko . net
  • www .BlueGecko . net
    • user management and security
    • user management and security
    • grant privilege on schema.table
    • to ‘username’@’ip’ ;
    • grant privilege on schema.table
    • to ‘username’@’host’;
    • grant privilege on schema.table
    • to ‘username’@’%’ ;
    • flush privileges;
    www .BlueGecko . net
    • user management and security
    • use minimal privileges
    www .BlueGecko . net
    • storage engines
    • InnoDB
    • MyISAM
    • merge
    • blackhole
    • archive
    • federated
    www .BlueGecko . net
    • and locking
    • InnoDB
    • MyISAM
    www .BlueGecko . net
    • and locking
    www .BlueGecko . net
    • backups
    • take them
    • test a restore
    www .BlueGecko . net
    • backups
    • mysqldump is not always a valid backup
    • replication is easiest
    • (and it gets you a warm standby)
    • InnoDB hot backup
    • XtraBackup
    • mylvmbackup
    www .BlueGecko . net
    • backups
    www .BlueGecko . net
    • monitoring
    • MySQL enterprise monitor
    • Nagios / Munin
    • key alerts -
    • connections,
    • caches, locking
    • server metrics
    www .BlueGecko . net
    • another
    • short
    • diversion
    • to swap or
    • not to swap
    • that is the
    • question
    www .BlueGecko . net
    • free tools
    • Innotop
    • maatkit
    • MySQL proxy
    • monitoring/trending
    • cacti templates
    • $monitoring_server
    • – the one you know
    www .BlueGecko . net
  • additional resources
    • irc.freenode.org
      • #mysql
      • #maatkit
    • mysql.com
    • HPM2e - Baron Schwartz, Peter Zaitsev, Vadim Tkachenko, and Jeremy Zawodny
    www .BlueGecko . net
  • credits
    • flickr
    • cardboard people – sindykids
    • no translating – mdid
    • security robot - kapungo
    • storage- shuttercat7
    • clones – adactio
    • license plate - severud
    • tools – meanestindian
    • console - hermzz
    • other
    • swap image
      • http://www.vocw.edu.vn/content/m10106/latest/
    www .BlueGecko . net
  • Blue Gecko and contact info
    • [email_address]
    • [email_address]
    • @sarahnovotny
    • @bluegecko
    • senk on #mysql
    • sarahnovotny on slideshare
    www .BlueGecko . net Blue Gecko provides Remote DBA services for companies around the world 7x24x365 support including monitoring, performance analysis, proactive maintenance and architectural guidance for small and large datasets.