The Blackhole and Federated Storage Engines: The Coolest Kids on the Block
|
|
- Baldwin Shepherd
- 5 years ago
- Views:
Transcription
1 The Blackhole and Federated Storage Engines: The Coolest Kids on the Block Kai Voigt, Senior Instructor, MySQL AB Giuseppe Maxia, QA Developer, MySQL AB
2 Kai Voigt Mister B MySQL Instructor and Consultant Based in Kiel, Germany Will Trade Advice for Beer
3 Giuseppe Maxia Mister F MySQL QA Developer Based in Sardinia, Italy Plays Chess, but cheats!
4 Kai Voigt & Giuseppe Maxia according to Google Maps, they are both excellent swimmers
5 Kai Voigt & Giuseppe Maxia according to Google Maps, they are both excellent swimmers
6 Kai Voigt & Giuseppe Maxia according to Google Maps, they are both excellent swimmers
7 Kai Voigt & Giuseppe Maxia according to Google Maps, they are both excellent swimmers
8 Agenda Storage Engines Blackhole Overview Federated Overview Blackhole Scenarios Federated gotchas Federated Scenarios Questions & Answers
9 MySQL Storage Engine Concept Table Level Different Media, different Features Most popular: InnoDB, MyISAM, Memory, Cluster SQL Layer Disk Memory Cluster Nowhere Remote Database
10 Blackhole and Federated Storage Engines Storage Engines... without Storage Blackhole: Every data you put into it disappears Federated: Cockoo table that takes storage from a remote database
11 Agenda Storage Engines Blackhole Overview Federated Overview Blackhole Scenarios Federated gotchas Federated Scenarios Questions & Answers
12 Blackhole Overview Storage Media: Trashbin, aka /dev/null Simple implementation, bugfree INSERT, UPDATE and DELETE statements are very fast! SELECT statements too Backup is easy, so is Recovery Most common question: Why the heck do I need that Storage Engine?
13 Blackhole Example [test]> CREATE TABLE bh (a INT) ENGINE=BLACKHOLE; Query OK, 0 rows affected (0.00 sec) root@localhost [test]> INSERT INTO bh (a) VALUES (42); Query OK, 1 row affected (0.00 sec) root@localhost [test]> SELECT * FROM bh; Empty set (0.00 sec)
14 Storage Engines Code Size $ ls -l */ha_*.cc -rw-r--r-- 1 k k Jan 30 08:34 archive/ha_archive.cc -rw-r--r-- 1 k k 5770 Jan 30 08:34 blackhole/ha_blackhole.cc -rw-r--r-- 1 k k Jan 30 08:34 csv/ha_tina.cc -rw-r--r-- 1 k k Jan 30 08:34 example/ha_example.cc -rw-r--r-- 1 k k Jan 30 08:34 federated/ha_federated.cc -rw-r--r-- 1 k k Jan 30 08:34 heap/ha_heap.cc -rw-r--r-- 1 k k Jan 30 08:34 myisam/ha_myisam.cc -rw-r--r-- 1 k k Jan 30 08:34 myisammrg/ha_myisammrg.cc
15 Implementation Example int ha_blackhole::write_row(byte * buf) { DBUG_ENTER("ha_blackhole::write_row"); DBUG_RETURN(0); }
16 Features Available ACID-Transactions... A+C+I, no D Full Character Set Support Not Available Table Level Locks AUTO INCREMENT
17 Agenda Storage Engines Blackhole Overview Federated Overview Blackhole Scenarios Federated gotchas Federated Scenarios Questions & Answers
18 What s a Federated table?
19 Creating a Federated table # REMOTE SERVER CREATE TABLE City ( ID int(11) NOT NULL auto_increment, Name char(35) NOT NULL, CountryCode char(3) NOT NULL, District char(20) NOT NULL, Population int(11) NOT NULL, PRIMARY KEY (ID) ) ENGINE = MyISAM;
20 Creating a Federated table # LOCAL SERVER CREATE TABLE City ( ID int(11) NOT NULL auto_increment, Name char(35) NOT NULL, CountryCode char(3) NOT NULL, District char(20) NOT NULL, Population int(11) NOT NULL, PRIMARY KEY (ID) ) ENGINE = FEDERATED CONNECTION='mysql://user:pass@remote.com: 3306/world/City';
21 Creating a Federated table ENGINE = FEDERATED CONNECTION= 'mysql:// user:pass@remote.com:3306/world/city';
22 Creating a Federated table ENGINE = FEDERATED CONNECTION= 'mysql:// user:pass@remote.com:3306/world/city'; Username and password host port schema table name
23 Creating a Federated table (>= ) # LOCAL SERVER (1) CREATE SERVER my_server OPTIONS ( user = 'user', password= 'password', host='remote.com', port = 3306, database = 'world', ) ;
24 Creating a Federated table (>= ) # LOCAL SERVER (2) CREATE TABLE City ( ID int(11) NOT NULL auto_increment, Name char(35) NOT NULL, CountryCode char(3) NOT NULL, District char(20) NOT NULL, Population int(11) NOT NULL, PRIMARY KEY (ID) ) ENGINE = FEDERATED CONNECTION='my_server';
25 What happens when you create a Federated table # REMOTE SERVER general log 7 Connect remote_user@your_host on test 7 Query SELECT * FROM City WHERE 1=0 7 Quit
26 FMM (Federated Missing Manual) FMM Rule # 1 The remote server does not know it s being federated
27 FMM (Federated Missing Manual) FMM Rule # 2 Creating a federated table is an inexpensive operation
28 Agenda Storage Engines Blackhole Overview Federated Overview Blackhole Scenarios Federated gotchas Federated Scenarios Questions & Answers
29 Blackhole Scenarios Good Laughter in Classes Submitting Talk for the User Conference Benchmarking and Testing SQL Layer Multi Level Replication Real Time Data Warehousing!
30 Benchmarking and Testing SQL Layer Stored Procedure or Query takes a long time. Is it the SQL Layer taking the time? Or is it the Storage Layer? Use Blackhole Storage Engine Storage Time goes down to Zero Time for SQL Layer remains Testing SQL Layer Will the Dump File execute on the new MySQL version?
31 Multi Level Replication Master Slave/ Master Slave/ Master Slave/ Master Slave Slave Slave Slave Slave Slave Slave Slave Slave Slave Slave Slave
32 Multi Level Replication Transactions on the Master InnoDB Read Requests on the Slaves MyISAM No Data needed on Relay Systems Blackhole Binary Log will still be created
33 Real Time Data Warehousing Triggers work on Blackhole Tables Automatically fill Summary Tables Avoiding expensive Joins Only work with INSERT Statements No DELETE or UPDATE
34 Agenda Storage Engines Blackhole Overview Federated Overview Blackhole Scenarios Federated gotchas Federated Scenarios Questions & Answers
35 First operation with a Federated table (local) # LOCAL SERVER SHOW TABLES; Tables_in_test City
36 First operation with a Federated table (remote) # REMOTE SERVER general log 8 Connect server2usr@localhost on test # REMOTE SERVER show processlist; Id User Host db remote_user your_host:46443 test 8 root localhost test
37 Creating a second Federated table # LOCAL SERVER CREATE TABLE City2 ( ID int(11) NOT NULL auto_increment, Name char(35) NOT NULL, CountryCode char(3) NOT NULL, District char(20) NOT NULL, Population int(11) NOT NULL, PRIMARY KEY (ID) ) ENGINE = FEDERATED CONNECTION='mysql://user:pass@remote.com: 3306/world/City';
38 After creating the second Federated table (remote) # REMOTE SERVER general log 8 Connect server2usr@localhost on test 10 Connect server2usr@localhost on test # REMOTE SERVER show processlist; Id User Host db remote_user your_host:46443 test 10 remote_user your_host:46456 test 8 root localhost test
39 FMM (Federated Missing Manual) FMM Rule # 3 Each federated table creates a permanent connection to the remote server (even if using the same table)
40 TROUBLE with Federated Let s the trouble begin
41 Naively using a Federated table # LOCAL SERVER SELECT * FROM City WHERE ID = 1; ID Name CountryCode District Population Kabul AFG Kabol
42 Naively using a Federated table # LOCAL SERVER SELECT * FROM City WHERE ID = 1; ID Name CountryCode District Population Kabul AFG Kabol # REMOTE SERVER general log 8 Query SELECT ID,Name,CountryCode,District,Population FROM City WHERE ID = 1
43 Naively using a Federated table # LOCAL SERVER SELECT * FROM City WHERE ID = 1; ID Name CountryCode District Population Kabul AFG Kabol # REMOTE SERVER general log 8 Query SELECT ID,Name,CountryCode,District,Population FROM City WHERE ID = 1 SO FAR, SO GOOD
44 Naively using a Federated table # LOCAL SERVER SELECT * FROM City WHERE Name = 'Kabul'; ID Name CountryCode District Population Kabul AFG Kabol
45 Naively using a Federated table # LOCAL SERVER SELECT * FROM City WHERE Name = 'Kabul'; ID Name CountryCode District Population Kabul AFG Kabol # REMOTE SERVER general log 8 Query SELECT ID,Name,CountryCode,District,Population FROM City
46 Naively using a Federated table # LOCAL SERVER SELECT * FROM City WHERE Name = 'Kabul'; ID Name CountryCode District Population Kabul AFG Kabol # REMOTE SERVER general log 8 Query SELECT ID,Name,CountryCode,District,Population FROM City DISASTER! (no WHERE clause)
47 FMM (Federated Missing Manual) FMM Rule # 4 The WHERE clause is honored only when using an index
48 TROUBLE with Federated Cheating the system
49 Re-creating the Federated table (alter table not supported) # LOCAL SERVER CREATE TABLE City ( ID int(11) NOT NULL auto_increment, Name char(35) NOT NULL, CountryCode char(3) NOT NULL, District char(20) NOT NULL, Population int(11) NOT NULL, PRIMARY KEY (ID), KEY (Name) # Let's cheat it ) ENGINE = FEDERATED CONNECTION='mysql://user:pass@remote.com: 3306/world/City';
50 Smartly using a Federated table # LOCAL SERVER SELECT * FROM City WHERE City = 'Kabul'; ID Name CountryCode District Population Kabul AFG Kabol
51 Smartly using a Federated table # LOCAL SERVER SELECT * FROM City WHERE City = 'Kabul'; ID Name CountryCode District Population Kabul AFG Kabol # REMOTE SERVER general log 8 Query SELECT ID,Name,CountryCode,District,Population FROM City WHERE Name = 'Kabul'
52 Smartly using a Federated table # LOCAL SERVER SELECT * FROM City WHERE City = 'Kabul'; ID Name CountryCode District Population Kabul AFG Kabol # REMOTE SERVER general log 8 Query SELECT ID,Name,CountryCode,District,Population FROM City WHERE Name = 'Kabul' Now you're talking!
53 TROUBLE with Federated more trouble...
54 Naively using a Federated table # LOCAL SERVER SELECT COUNT(*) FROM City; COUNT(*)
55 Naively using a Federated table # LOCAL SERVER SELECT COUNT(*) FROM City; COUNT(*) # REMOTE SERVER general log 8 Query SELECT ID,Name,CountryCode,District,Population FROM City
56 Naively using a Federated table # LOCAL SERVER SELECT COUNT(*) FROM City; COUNT(*) # REMOTE SERVER general log 8 Query SELECT ID,Name,CountryCode,District,Population FROM City Disaster again!
57 FMM (Federated Missing Manual) FMM Rule # 5 Aggregate functions in federated tables are EXTREMELY EXPENSIVE
58 TROUBLE with Federated Getting smarter
59 Getting smarter with Federated tables
60 Getting smarter with Federated tables # REMOTE SERVER CREATE VIEW CityCount AS SELECT COUNT(*) AS c FROM City;
61 Getting smarter with Federated tables # REMOTE SERVER CREATE VIEW CityCount AS SELECT COUNT(*) AS c FROM City; # LOCAL SERVER CREATE TABLE CityCount ( c INT(11) ) ENGINE = FEDERATED CONNECTION='mysql://user:pass@remote.com: 3306/world/CityCount';
62 Smarter usage of a Federated table # LOCAL SERVER SELECT * FROM CityCount c
63 Smarter usage of a Federated table # LOCAL SERVER SELECT * FROM CityCount c # REMOTE SERVER general log 8 Query SELECT c FROM CityCount
64 Smarter usage of a Federated table # LOCAL SERVER SELECT * FROM CityCount c # REMOTE SERVER general log 8 Query SELECT c FROM CityCount Cheated at its own game!
65 FMM (Federated Missing Manual) FMM Rule # 6 You can federate a VIEW instead of a table
66 Agenda Storage Engines Blackhole Overview Federated Overview Blackhole Scenarios Federated gotchas Federated Scenarios Questions & Answers
67 Federating different things
68 Using nested queries in MySQL 3.23! # LOCAL SERVER (5.0.37) mysql> SELECT * -> FROM City -> WHERE CountryCode = ( -> SELECT Code FROM Country WHERE Name = 'Afghanistan'); ID Name CountryCode District Population Kabul AFG Kabol Qandahar AFG Qandahar Herat AFG Herat Mazar-e-Sharif AFG Balkh
69 Using nested queries in MySQL 3.23! # REMOTE SERVER ( ) general log 2 Query SELECT `Code`, `Name`,... FROM `Country` WHERE (`Name` = 'Afghanistan') 1 Query SELECT `ID`, `Name`,... FROM `City` WHERE (`CountryCode` = 'AFG')
70 FMM (Federated Missing Manual) FMM Rule # 7 You can federate any MySQL table, regardless of the remote server version
71 Cool usage of Federated tables (replication) help in replication failover (1)
72 Cool usage of Federated tables (replication) help in replication failover (2)
73 Cool usage of Federated tables (replication) help in replication failover (3)
74 Cool usage of Federated tables (replication) help in replication failover (4)
75 Cool usage of Federated tables (run remotely)
76 Remote execution with Federated tables
77 Remote execution with Federated tables # REMOTE SERVER (1) CREATE TABLE params_table (y int)
78 Remote execution with Federated tables # REMOTE SERVER (1) CREATE TABLE params_table (y int) # LOCAL SERVER (1) CREATE TABLE params_table (y int) ENGINE = FEDERATED CONNECTION='mysql://user:pass@remote.com: 3306/test/params_table'
79 Remote execution with Federated tables
80 Remote execution with Federated tables # REMOTE SERVER (2) CREATE FUNCTION my_function() RETURNS INT BEGIN INSERT INTO some_table (x) VALUES ((SELECT y FROM params_table)); RETURN 1; END;
81 Remote execution with Federated tables # REMOTE SERVER (2) CREATE FUNCTION my_function() RETURNS INT BEGIN INSERT INTO some_table (x) VALUES ((SELECT y FROM params_table)); RETURN 1; END; # LOCAL SERVER (2) no action required
82 Remote execution with Federated tables
83 Remote execution with Federated tables # REMOTE SERVER (3) CREATE VIEW run_it AS SELECT 1 FROM Dummy WHERE my_function();
84 Remote execution with Federated tables # REMOTE SERVER (3) CREATE VIEW run_it AS SELECT 1 FROM Dummy WHERE my_function(); # LOCAL SERVER (3) CREATE TABLE run_it (x int) ENGINE = FEDERATED CONNECTION='mysql://user:pass@remote.com: 3306/test/run_it'
85 Remote execution with Federated tables
86 Remote execution with Federated tables # LOCAL SERVER (4) DELETE FROM params_table; INSERT INTO params_table VALUES (1); SELECT * FROM run_it; # This command will execute my_function() on the remote server
87 Agenda Storage Engines Blackhole Overview Federated Overview Blackhole Scenarios Federated gotchas Federated Scenarios Questions & Answers
88 Questions & Answers You know what happens if you ask a Blackhole table... I don t know anything. You know what happens if you ask a Federated table... I have to ask someone else.
89 Thank you! See you next year!
1Z MySQL 5 Database Administrator Certified Professional Exam, Part II Exam.
Oracle 1Z0-874 MySQL 5 Database Administrator Certified Professional Exam, Part II Exam TYPE: DEMO http://www.examskey.com/1z0-874.html Examskey Oracle 1Z0-874 exam demo product is here for you to test
More informationA quick tour of MySQL 8.0 roles
A quick tour of MySQL 8.0 roles Giuseppe Maxia Software explorer #fosdem #mysqldevroom 1 About me Who's this guy? Giuseppe Maxia, a.k.a. "The Data Charmer" QA Architect at VMware Several decades development
More informationDelegates must have a working knowledge of MariaDB or MySQL Database Administration.
MariaDB Performance & Tuning SA-MARDBAPT MariaDB Performance & Tuning Course Overview This MariaDB Performance & Tuning course is designed for Database Administrators who wish to monitor and tune the performance
More informationDatabases and SQL. Lecture outline. CSE 190 M (Web Programming) Spring 2008 University of Washington
Databases and SQL CSE 190 M (Web Programming) Spring 2008 University of Washington References: SQL syntax reference, w3schools tutorial Except where otherwise noted, the contents of this presentation are
More informationGetting started with MySQL Proxy
Getting started with MySQL Proxy Giuseppe Maxia QA Developer - MySQL AB Sofia - OpenFest 2007 Agenda Overview Some fun Injecting queries Filtering and rewriting queries Working with results Proxy for logging
More informationOracle 1Z MySQL 5.6 Database Administrator. Download Full Version :
Oracle 1Z0-883 MySQL 5.6 Database Administrator Download Full Version : http://killexams.com/pass4sure/exam-detail/1z0-883 D. The mysqld binary was not compiled with SSL support. E. The server s SSL certificate
More informationOracle Exam 1z0-883 MySQL 5.6 Database Administrator Version: 8.0 [ Total Questions: 100 ]
s@lm@n Oracle Exam 1z0-883 MySQL 5.6 Database Administrator Version: 8.0 [ Total Questions: 100 ] Oracle 1z0-883 : Practice Test Question No : 1 Consider the Mysql Enterprise Audit plugin. You are checking
More informationMySQL Query Tuning 101. Sveta Smirnova, Alexander Rubin April, 16, 2015
MySQL Query Tuning 101 Sveta Smirnova, Alexander Rubin April, 16, 2015 Agenda 2 Introduction: where to find slow queries Indexes: why and how do they work All about EXPLAIN More tools Where to find more
More informationMySQL Database Administrator Training NIIT, Gurgaon India 31 August-10 September 2015
MySQL Database Administrator Training Day 1: AGENDA Introduction to MySQL MySQL Overview MySQL Database Server Editions MySQL Products MySQL Services and Support MySQL Resources Example Databases MySQL
More informationMySQL Replication. Rick Golba and Stephane Combaudon April 15, 2015
MySQL Replication Rick Golba and Stephane Combaudon April 15, 2015 Agenda What is, and what is not, MySQL Replication Replication Use Cases Types of replication Replication lag Replication errors Replication
More informationMySQL for Database Administrators Ed 3.1
Oracle University Contact Us: 1.800.529.0165 MySQL for Database Administrators Ed 3.1 Duration: 5 Days What you will learn The MySQL for Database Administrators training is designed for DBAs and other
More informationAdvanced MySQL Query Tuning
Advanced MySQL Query Tuning Alexander Rubin July 21, 2013 About Me My name is Alexander Rubin Working with MySQL for over 10 years Started at MySQL AB, then Sun Microsystems, then Oracle (MySQL Consulting)
More informationMySQL Cluster An Introduction
MySQL Cluster An Introduction Geert Vanderkelen O Reilly MySQL Conference & Expo 2010 Apr. 13 2010 In this presentation we'll introduce you to MySQL Cluster. We ll go through the MySQL server, the storage
More informationThe Hazards of Multi-writing in a Dual-Master Setup
The Hazards of Multi-writing in a Dual-Master Setup Jay Janssen MySQL Consulting Lead November 15th, 2012 Explaining the Problem Rules of the Replication Road A given MySQL instance: Can be both a master
More informationDatabase Systems. phpmyadmin Tutorial
phpmyadmin Tutorial Please begin by logging into your Student Webspace. You will access the Student Webspace by logging into the Campus Common site. Go to the bottom of the page and click on the Go button
More informationWhat is SQL? Toolkit for this guide. Learning SQL Using phpmyadmin
http://www.php-editors.com/articles/sql_phpmyadmin.php 1 of 8 Members Login User Name: Article: Learning SQL using phpmyadmin Password: Remember Me? register now! Main Menu PHP Tools PHP Help Request PHP
More informationITS. MySQL for Database Administrators (40 Hours) (Exam code 1z0-883) (OCP My SQL DBA)
MySQL for Database Administrators (40 Hours) (Exam code 1z0-883) (OCP My SQL DBA) Prerequisites Have some experience with relational databases and SQL What will you learn? The MySQL for Database Administrators
More informationCO MySQL for Database Administrators
CO-61762 MySQL for Database Administrators Summary Duration 5 Days Audience Administrators, Database Designers, Developers Level Professional Technology Oracle MySQL 5.5 Delivery Method Instructor-led
More informationCovering indexes. Stéphane Combaudon - SQLI
Covering indexes Stéphane Combaudon - SQLI Indexing basics Data structure intended to speed up SELECTs Similar to an index in a book Overhead for every write Usually negligeable / speed up for SELECT Possibility
More information<Insert Picture Here> Boosting performance with MySQL partitions
Boosting performance with MySQL partitions Giuseppe Maxia MySQL Community Team Lead at Oracle 1 about me -Giuseppe Maxia a.k.a. The Data Charmer MySQL Community Team Lead Long time
More informationDATABASE SYSTEMS. Database programming in a web environment. Database System Course, 2016
DATABASE SYSTEMS Database programming in a web environment Database System Course, 2016 AGENDA FOR TODAY Advanced Mysql More than just SELECT Creating tables MySQL optimizations: Storage engines, indexing.
More informationTired of MySQL Making You Wait? Alexander Rubin, Principal Consultant, Percona Janis Griffin, Database Evangelist, SolarWinds
Tired of MySQL Making You Wait? Alexander Rubin, Principal Consultant, Percona Janis Griffin, Database Evangelist, SolarWinds Who Am I? Senior DBA / Performance Evangelist for Solarwinds Janis.Griffin@solarwinds.com
More informationMySQL usage of web applications from 1 user to 100 million. Peter Boros RAMP conference 2013
MySQL usage of web applications from 1 user to 100 million Peter Boros RAMP conference 2013 Why MySQL? It's easy to start small, basic installation well under 15 minutes. Very popular, supported by a lot
More informationMigrating to Aurora MySQL and Monitoring with PMM. Percona Technical Webinars August 1, 2018
Migrating to Aurora MySQL and Monitoring with PMM Percona Technical Webinars August 1, 2018 Introductions Introduction Vineet Khanna (Autodesk) Senior Database Engineer vineet.khanna@autodesk.com Tate
More informationMySQL 5.0 Certification Study Guide
MySQL 5.0 Certification Study Guide Paul DuBois, Stefan Hinz, and Carsten Pedersen MySQC Press 800 East 96th Street, Indianapolis, Indiana 46240 USA Table of Contents Introduction 1 About This Book 1 Sample
More informationMySQL High Availability. Michael Messina Senior Managing Consultant, Rolta-AdvizeX /
MySQL High Availability Michael Messina Senior Managing Consultant, Rolta-AdvizeX mmessina@advizex.com / mike.messina@rolta.com Introduction Michael Messina Senior Managing Consultant Rolta-AdvizeX, Working
More informationMysql Information Schema Update Time Null >>>CLICK HERE<<< doctrine:schema:update --dump-sql ALTER TABLE categorie
Mysql Information Schema Update Time Null I want to update a MySQL database schema (with MySQL code) but I am unfortunately not sure 'name' VARCHAR(64) NOT NULL 'password' VARCHAR(64) NOT NULL fieldname
More information<Insert Picture Here> Introduction to MySQL
Introduction to MySQL Giuseppe Maxia MySQL Community Team Lead at Oracle about me -Giuseppe Maxia a.k.a. The Data Charmer MySQL Community Team Lead Long time hacking with MySQL features
More informationJargons, Concepts, Scope and Systems. Key Value Stores, Document Stores, Extensible Record Stores. Overview of different scalable relational systems
Jargons, Concepts, Scope and Systems Key Value Stores, Document Stores, Extensible Record Stores Overview of different scalable relational systems Examples of different Data stores Predictions, Comparisons
More informationMySQL for Database Administrators Ed 4
Oracle University Contact Us: (09) 5494 1551 MySQL for Database Administrators Ed 4 Duration: 5 Days What you will learn The MySQL for Database Administrators course teaches DBAs and other database professionals
More informationNoVA MySQL October Meetup. Tim Callaghan VP/Engineering, Tokutek
NoVA MySQL October Meetup TokuDB and Fractal Tree Indexes Tim Callaghan VP/Engineering, Tokutek 2012.10.23 1 About me, :) Mark Callaghan s lesser-known but nonetheless smart brother. [C. Monash, May 2010]
More informationChapter 8: Working With Databases & Tables
Chapter 8: Working With Databases & Tables o Working with Databases & Tables DDL Component of SQL Databases CREATE DATABASE class; o Represented as directories in MySQL s data storage area o Can t have
More information1 Copyright 2011, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 8
1 Copyright 2011, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 8 ADVANCED MYSQL REPLICATION ARCHITECTURES Luís
More informationMySQL for Beginners Ed 3
MySQL for Beginners Ed 3 Duration: 4 Days What you will learn The MySQL for Beginners course helps you learn about the world's most popular open source database. Expert Oracle University instructors will
More informationEffective Testing for Live Applications. March, 29, 2018 Sveta Smirnova
Effective Testing for Live Applications March, 29, 2018 Sveta Smirnova Table of Contents Sometimes You Have to Test on Production Wrong Data SELECT Returns Nonsense Wrong Data in the Database Performance
More informationMySQL Schema Best Practices
MySQL Schema Best Practices 2 Agenda Introduction 3 4 Introduction - Sample Schema Key Considerations 5 Data Types 6 Data Types [root@plive-2017-demo plive_2017]# ls -alh action*.ibd -rw-r-----. 1 mysql
More informationTips from the Trenches Preventing downtime for the over extended DBA. Andrew Moore Senior Remote DBA Percona Managed Services
Tips from the Trenches Preventing downtime for the over extended DBA Andrew Moore Senior Remote DBA Percona Managed Services Your Presenter Andrew Moore @mysqlboy on twitter 1+ year in Manager Services
More informationMySQL Utilities, part 1. Sheeri Cabral. Senior DB Admin/Architect,
MySQL Utilities, part 1 Sheeri Cabral Senior DB Admin/Architect, Mozilla @sheeri www.sheeri.com A set of tools What are they? What are they? A set of tools Like Percona toolkit, Open Ark Kit What are they?
More informationJens Bollmann. Welcome! Performance 101 for Small Web Apps. Principal consultant and trainer within the Professional Services group at SkySQL Ab.
Welcome! Jens Bollmann jens@skysql.com Principal consultant and trainer within the Professional Services group at SkySQL Ab. Who is SkySQL Ab? SkySQL Ab is the alternative source for software, services
More information1Z Oracle. MySQL 5 Database Administrator Certified Professional Part I
Oracle 1Z0-873 MySQL 5 Database Administrator Certified Professional Part I Download Full Version : http://killexams.com/pass4sure/exam-detail/1z0-873 A. Use the --log-queries-indexes option. B. Use the
More information2) One of the most common question clients asks is HOW the Replication works?
Replication =============================================================== 1) Before setting up a replication, it could be important to have a clear idea on the why you are setting up a MySQL replication.
More informationCommon MySQL Scalability Mistakes AUTHOR
Common MySQL Scalability Mistakes Ronald Bradford http://ronaldbradford.com 2011.04 EffectiveMySQL.com - Its all about Performance and Scalability EffectiveMySQL.com - Its all about Performance and Scalability
More informationAdvanced MySQL Query Tuning
Advanced MySQL Query Tuning Alexander Rubin August 6, 2014 About Me My name is Alexander Rubin Working with MySQL for over 10 years Started at MySQL AB, then Sun Microsystems, then Oracle (MySQL Consulting)
More informationManual Mysql Query Cache Hit Rate 0
Manual Mysql Query Cache Hit Rate 0 B) why the Table cache hit rate is only 56% How can i achieve better cache hit rate? (OK) Currently running supported MySQL version 5.5.43-0+deb7u1-log or complex to
More informationWhat's new in MySQL 5.5 and 5.6 replication
What's new in MySQL 5.5 and 5.6 replication Giuseppe Maxia Continuent, Inc Continuent 2012. 1 AGENDA 5.5 semi-synchronous replication 5.6 delayed replication server UUID crash-safe slave multi-thread slave
More informationMastering phpmyadmiri 3.4 for
Mastering phpmyadmiri 3.4 for Effective MySQL Management A complete guide to getting started with phpmyadmin 3.4 and mastering its features Marc Delisle [ t]open so 1 I community experience c PUBLISHING
More informationDatabases (MariaDB/MySQL) CS401, Fall 2015
Databases (MariaDB/MySQL) CS401, Fall 2015 Database Basics Relational Database Method of structuring data as tables associated to each other by shared attributes. Tables (kind of like a Java class) have
More informationSwitching to Innodb from MyISAM. Matt Yonkovit Percona
Switching to Innodb from MyISAM Matt Yonkovit Percona -2- DIAMOND SPONSORSHIPS THANK YOU TO OUR DIAMOND SPONSORS www.percona.com -3- Who We Are Who I am Matt Yonkovit Principal Architect Veteran of MySQL/SUN/Percona
More informationAdvanced SQL. Nov 21, CS445 Pacific University 1
Advanced SQL Nov 21, 2017 http://zeus.cs.pacificu.edu/chadd/cs445f17/advancedsql.tar.gz Pacific University 1 Topics Views Triggers Stored Procedures Control Flow if / case Binary Data Pacific University
More informationChapter 10: MySQL & PHP. PHP and MySQL CIS 86 Mission College
Chapter 10: MySQL & PHP PHP and MySQL CIS 86 Mission College Tonight s agenda Drop the class? Login file Connecting to a MySQL database Object-oriented PHP Executing a query Fetching a result Fetching
More informationUsing the MySQL Document Store
Using the MySQL Document Store Alfredo Kojima, Sr. Software Dev. Manager, MySQL Mike Zinner, Sr. Software Dev. Director, MySQL Safe Harbor Statement The following is intended to outline our general product
More informationInnoDB Scalability Limits. Peter Zaitsev, Vadim Tkachenko Percona Inc MySQL Users Conference 2008 April 14-17, 2008
InnoDB Scalability Limits Peter Zaitsev, Vadim Tkachenko Percona Inc MySQL Users Conference 2008 April 14-17, 2008 -2- Who are the Speakers? Founders of Percona Inc MySQL Performance and Scaling consulting
More information1Copyright 2012, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12
1 Insert Information Protection Policy Classification from Slide 12 Getting Started with MySQL Santo Leto Principal Technical Support Engineer, MySQL Jesper Wisborg Krogh Principal Technical Support Engineer,
More informationOracle 1Z0-882 Exam. Volume: 100 Questions. Question No: 1 Consider the table structure shown by this output: Mysql> desc city:
Volume: 100 Questions Question No: 1 Consider the table structure shown by this output: Mysql> desc city: 5 rows in set (0.00 sec) You execute this statement: SELECT -,-, city. * FROM city LIMIT 1 What
More informationRelational databases and SQL
Relational databases and SQL Relational Database Management Systems Most serious data storage is in RDBMS Oracle, MySQL, SQL Server, PostgreSQL Why so popular? Based on strong theory, well-understood performance
More informationOral Questions and Answers (DBMS LAB) Questions & Answers- DBMS
Questions & Answers- DBMS https://career.guru99.com/top-50-database-interview-questions/ 1) Define Database. A prearranged collection of figures known as data is called database. 2) What is DBMS? Database
More informationIn-Memory Computing Essentials
In-Memory Computing Essentials for Architects and Developers: Part 1 Denis Magda Ignite PMC Chair GridGain Director of Product Management Agenda Apache Ignite Overview Clustering and Deployment Distributed
More informationManual Trigger Sql Server 2008 Update Inserted Rows
Manual Trigger Sql Server 2008 Update Inserted Rows Am new to SQL scripting and SQL triggers, any help will be appreciated Does it need to have some understanding of what row(s) were affected, sql-serverperformance.com/2010/transactional-replication-2008-r2/
More informationMySQL HA Solutions. Keeping it simple, kinda! By: Chris Schneider MySQL Architect Ning.com
MySQL HA Solutions Keeping it simple, kinda! By: Chris Schneider MySQL Architect Ning.com What we ll cover today High Availability Terms and Concepts Levels of High Availability What technologies are there
More informationMySQL 05/29/ :46:01 AM
MySQL Using Transactions In MySQL (Part 1) Contributed by icarus, (c) Melonfire 2003 11 03 [ Send Me Similar Content When Posted ] [ Add Developer Shed Headlines To Your Site ] DISCUSS NEWS SEND PRINT
More informationProgrammatic Queries. openark.org
Programmatic Queries Things you can code with SQL Shlomi Noach Percona Live, London 2011 SQL SQL, or the Structured Query Language, is often referred to as a declarative language. From Wikipedia: declarative
More informationMaintaining a Microsoft SQL Server 2005 Database Course 2780: Three days; Instructor-Led
Maintaining a Microsoft SQL Server 2005 Database Course 2780: Three days; Instructor-Led Introduction This three-day instructor-led course provides students with product knowledge and skills needed to
More informationOptimizing BOINC project databases
Optimizing BOINC project databases Oliver Bock Max Planck Institute for Gravitational Physics Hannover, Germany 5th Pan-Galactic BOINC Workshop Catalan Academy of Letters, Sciences and Humanities Barcelona,
More informationMySQL High Availability Solutions. Alex Poritskiy Percona
MySQL High Availability Solutions Alex Poritskiy Percona The Five 9s of Availability Clustering & Geographical Redundancy Clustering Technologies Replication Technologies Well-Managed disasters power failures
More informationScaffold Hunter: By Stefan Wetzel. 1. Installation of MySQL 5.x
Scaffold Hunter: Installation of MySQL and Reconstruction of the profile database as well as a sample database comprising the pyruvate kinase data from PubChem By Stefan Wetzel 1. Installation of MySQL
More informationOperational DBA In a Nutshell - HandsOn Reference Guide
1/12 Operational DBA In a Nutshell - HandsOn Reference Guide Contents 1 Operational DBA In a Nutshell 2 2 Installation of MySQL 2 2.1 Setting Up Our VM........................................ 2 2.2 Installation
More informationMongoDB and Mysql: Which one is a better fit for me? Room 204-2:20PM-3:10PM
MongoDB and Mysql: Which one is a better fit for me? Room 204-2:20PM-3:10PM About us Adamo Tonete MongoDB Support Engineer Agustín Gallego MySQL Support Engineer Agenda What are MongoDB and MySQL; NoSQL
More informationSql Server Syllabus. Overview
Sql Server Syllabus Overview This SQL Server training teaches developers all the Transact-SQL skills they need to create database objects like Tables, Views, Stored procedures & Functions and triggers
More informationMySQL for Database Administrators Volume I Student Guide
MySQL for Database Administrators Volume I Student Guide D61762GC20 Edition 2.0 September 2011 D74260 Disclaimer This document contains proprietary information and is protected by copyright and other intellectual
More informationImporting and Exporting Data Between Hadoop and MySQL
Importing and Exporting Data Between Hadoop and MySQL + 1 About me Sarah Sproehnle Former MySQL instructor Joined Cloudera in March 2010 sarah@cloudera.com 2 What is Hadoop? An open-source framework for
More informationDealing with schema changes on large data volumes. Danil Zburivsky MySQL DBA, Team Lead
Dealing with schema changes on large data volumes Danil Zburivsky MySQL DBA, Team Lead Why Companies Trust Pythian Recognized Leader: Global industry-leader in remote database administration services and
More informationMySQL as a Document Store. Ted Wennmark
MySQL as a Document Store Ted Wennmark ted.wennmark@oracle.com Safe Harbor Statement The following is intended to outline our general product direction. It is intended for information purposes only, and
More informationDatabase and MySQL Temasek Polytechnic
PHP5 Database and MySQL Temasek Polytechnic Database Lightning Fast Intro Database Management Organizing information using computer as the primary storage device Database The place where data are stored
More informationPercona XtraDB Cluster
Percona XtraDB Cluster Ensure High Availability Presenter Karthik P R CEO Mydbops www.mydbops.com info@mydbops.com Mydbops Mydbops is into MySQL/MongoDB Support and Consulting. It is founded by experts
More information2017 GridGain Systems, Inc. In-Memory Performance Durability of Disk
In-Memory Performance Durability of Disk Ignite the Fire in your SQL App Akmal B. Chaudhri Technology Evangelist GridGain Systems Agenda SQL Capabilities Connectivity Data Definition Language Data Manipulation
More informationBases de Dades: introduction to SQL (indexes and transactions)
Bases de Dades: introduction to SQL (indexes and transactions) Andrew D. Bagdanov bagdanov@cvc.uab.es Departamento de Ciencias de la Computación Universidad Autónoma de Barcelona Fall, 2010 Questions from
More informationXA Transactions in MySQL
XA Transactions in MySQL An overview and troubleshooting guide to distributed transactions Dov Endress Senior MySQL DBA July 25th 2018 1 2016 Percona ACID Compliant Distributed Transactions Distributed
More informationMySQL vs MongoDB. Choosing right technology for your application. Peter Zaitsev CEO, Percona All Things Open, Raleigh,NC October 23 rd, 2017
MySQL vs MongoDB Choosing right technology for your application Peter Zaitsev CEO, Percona All Things Open, Raleigh,NC October 23 rd, 2017 1 MySQL vs MongoDB VS 2 Bigger Question What Open Source Database
More informationVarious MySQL High Availability (HA) Solutions
Various MySQL High Availability (HA) Solutions Percona Live MySQL Conference, London, Oct 24 th and 25 th, 2011 Oli Sennhauser Senior MySQL Consultant at FromDual GmbH oli.sennhauser@fromdual.com www.fromdual.com
More information<Insert Picture Here> Shooting from the hip - MySQL at the command line
Shooting from the hip - MySQL at the command line Giuseppe Maxia MySQL Community Team Lead Shooting from the hip. MySQL at the command line Giuseppe Maxia MySQL Community Team Lead
More informationSun Certified MySQL 5.0 Developer Part II
310-813 Sun Certified MySQL 5.0 Developer Part II Version 13.3 QUESTION NO: 1 When executing multi-row operations, what should be the first thing you look for to see if anything unexpected happened? A.
More informationMySQL Sandbox 3.0. I n s t a l l i n g a n d t e s t i n g M y S Q L s e r v e r s effortlessly.
MySQL Sandbox 3.0 I n s t a l l i n g a n d t e s t i n g M y S Q L s e r v e r s effortlessly http://launchpad.net/mysql-sandbox Giuseppe Maxia MySQL Community This work is licensed under the Creative
More informationCareerarm.com. 1. What is MySQL? MySQL is an open source DBMS which is built, supported and distributed by MySQL AB (now acquired by Oracle)
1. What is MySQL? MySQL is an open source DBMS which is built, supported and distributed by MySQL AB (now acquired by Oracle) 2. What are the technical features of MySQL? MySQL database software is a client
More informationThe Top 20 Design Tips
The Top 20 Design Tips For MySQL Enterprise Data Architects Ronald Bradford COO PrimeBase Technologies April 2008 Presented Version By: 1.1 Ronald 10.Apr.2008 Bradford 1. Know Your Technology Tools Generics
More informationKathleen Durant PhD Northeastern University CS Indexes
Kathleen Durant PhD Northeastern University CS 3200 Indexes Outline for the day Index definition Types of indexes B+ trees ISAM Hash index Choosing indexed fields Indexes in InnoDB 2 Indexes A typical
More informationSQL Interview Questions
SQL Interview Questions SQL stands for Structured Query Language. It is used as a programming language for querying Relational Database Management Systems. In this tutorial, we shall go through the basic
More informationA Practical Guide to Migrating from Oracle to MySQL. Robin Schumacher
A Practical Guide to Migrating from Oracle to MySQL Robin Schumacher Director of Product Management, MySQL AB 1 Agenda Quick look at MySQL AB Relationship between Oracle and MySQL n-technical reasons why
More informationMySQL Indexing. Best Practices for MySQL 5.6. Peter Zaitsev CEO, Percona MySQL Connect Sep 22, 2013 San Francisco,CA
MySQL Indexing Best Practices for MySQL 5.6 Peter Zaitsev CEO, Percona MySQL Connect Sep 22, 2013 San Francisco,CA For those who Does not Know Us Percona Helping Businesses to be Successful with MySQL
More informationUpgrading to MySQL 8.0+: a More Automated Upgrade Experience. Dmitry Lenev, Software Developer Oracle/MySQL, November 2018
Upgrading to MySQL 8.0+: a More Automated Upgrade Experience Dmitry Lenev, Software Developer Oracle/MySQL, November 2018 Safe Harbor Statement The following is intended to outline our general product
More informationSetting up Multi-Source Replication in MariaDB 10.0
Setting up Multi-Source Replication in MariaDB 10.0 November 3, 2014 Derek Downey MySQL Principal Consultant Who am I? Web Developer and Sysadmin background MySQL DBA for 10+ years MySQL Principal Consultant
More informationA Brief Introduction of TiDB. Dongxu (Edward) Huang CTO, PingCAP
A Brief Introduction of TiDB Dongxu (Edward) Huang CTO, PingCAP About me Dongxu (Edward) Huang, Cofounder & CTO of PingCAP PingCAP, based in Beijing, China. Infrastructure software engineer, open source
More informationAN INTRODUCTION TO WEB PROGRAMMING. Dr. Hossein Hakimzadeh Department of Computer and Information Sciences Indiana University South Bend, IN
AN INTRODUCTION TO WEB PROGRAMMING Dr. Hossein Hakimzadeh Department of Computer and Information Sciences Indiana University South Bend, IN HISTORY Developed by Michael Widenius. Initially release in 1995.
More informationDatabase Security: Transactions, Access Control, and SQL Injection
.. Cal Poly Spring 2013 CPE/CSC 365 Introduction to Database Systems Eriq Augustine.. Transactions Database Security: Transactions, Access Control, and SQL Injection A transaction is a sequence of SQL
More informationMySQL for Developers Ed 3
Oracle University Contact Us: 0845 777 7711 MySQL for Developers Ed 3 Duration: 5 Days What you will learn This MySQL for Developers training teaches developers how to plan, design and implement applications
More informationChoosing a MySQL HA Solution Today. Choosing the best solution among a myriad of options
Choosing a MySQL HA Solution Today Choosing the best solution among a myriad of options Questions...Questions...Questions??? How to zero in on the right solution You can t hit a target if you don t have
More informationMySQL 5.0 Stored Procedures, VIEWs and Triggers MySQL UC 2005, Santa Clara
MySQL 5.0 Stored Procedures, VIEWs and Triggers jan@mysql.com MySQL UC 2005, Santa Clara Trees in SQL The problem of how to handle trees in SQL has been talked about alot. The basic 3 ways are: store the
More informationMySQL Indexing. Best Practices. Peter Zaitsev, CEO Percona Inc August 15, 2012
MySQL Indexing Best Practices Peter Zaitsev, CEO Percona Inc August 15, 2012 You ve Made a Great Choice! Understanding indexing is crucial both for Developers and DBAs Poor index choices are responsible
More informationCSE 530A. Inheritance and Partitioning. Washington University Fall 2013
CSE 530A Inheritance and Partitioning Washington University Fall 2013 Inheritance PostgreSQL provides table inheritance SQL defines type inheritance, PostgreSQL's table inheritance is different A table
More informationMySQL Schema Review 101
MySQL Schema Review 101 How and What you should be looking at... Mike Benshoof - Technical Account Manager, Percona Agenda Introduction Key things to consider and review Tools to isolate issues Common
More informationEternal Story on Temporary Objects
Eternal Story on Temporary Objects Dmitri V. Korotkevitch http://aboutsqlserver.com About Me 14+ years of experience working with Microsoft SQL Server Microsoft SQL Server MVP Microsoft Certified Master
More information