Your SlideShare is downloading. ×
you know databases, how hard can MySQL be?
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

you know databases, how hard can MySQL be?

1,621
views

Published on

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).

Published in: Technology

0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
1,621
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
33
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
  • 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
  • Transcript

    • 1. you know databases (how hard can MySQL be?) sarah novotny – [email_address] open database services www .BlueGecko . net
    • 2.
      • language
      • user management and security
      • storage engines and locking
      • backups and replicas
      • monitoring
      • free tools
      www .BlueGecko . net
    • 3.
      • common language
      www .BlueGecko . net schema instance SGA/PGA/UGA filesystem layout
    • 4.
      • 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
    • 5.
      • 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
    • 6. www .BlueGecko . net
      • common language
    • 7. www .BlueGecko . net
      • common language
    • 8.
      • 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
    • 9. www .BlueGecko . net
      • user management and security
    • 10.
      • 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
    • 11.
      • user management and security
      • use minimal privileges
      www .BlueGecko . net
    • 12.
      • storage engines
      • InnoDB
      • MyISAM
      • merge
      • blackhole
      • archive
      • federated
      www .BlueGecko . net
    • 13.
      • and locking
      • InnoDB
      • MyISAM
      www .BlueGecko . net
    • 14.
      • and locking
      www .BlueGecko . net
    • 15.
      • backups
      • take them
      • test a restore
      www .BlueGecko . net
    • 16.
      • 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
    • 17.
      • backups
      www .BlueGecko . net
    • 18.
      • monitoring
      • MySQL enterprise monitor
      • Nagios / Munin
      • key alerts -
      • connections,
      • caches, locking
      • server metrics
      www .BlueGecko . net
    • 19.
      • another
      • short
      • diversion
      • to swap or
      • not to swap
      • that is the
      • question
      www .BlueGecko . net
    • 20.
      • free tools
      • Innotop
      • maatkit
      • MySQL proxy
      • monitoring/trending
      • cacti templates
      • $monitoring_server
      • – the one you know
      www .BlueGecko . net
    • 21. additional resources
      • irc.freenode.org
        • #mysql
        • #maatkit
      • mysql.com
      • HPM2e - Baron Schwartz, Peter Zaitsev, Vadim Tkachenko, and Jeremy Zawodny
      www .BlueGecko . net
    • 22. 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
    • 23. 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.