MySQL Replication Tips and Tricks
|
|
- Osborne Anthony McKinney
- 5 years ago
- Views:
Transcription
1 Lars Thalmann & Mats Kindahl Replication Tricks and Tips AB Replication Tips and Tricks Dr. Mats Kindahl Lead Developer, Replication mats@sun.com mysqlmusings.blogspot.com Dr. Lars Thalmann Development Manager, Replication and Backup lars.thalmann@sun.com larsthalmann.blogspot.com Conference and Expo April 23 th, 2009
2 Lars Thalmann & Mats Kindahl Replication Tricks and Tips AB Tricks and Tips L Some old, some new Some easy, some more advanced Meant to be food for thoughts
3 Lars Thalmann & Mats Kindahl Replication Tricks and Tips AB Slave stopped now what? Check position it stopped on SHOW SLAVE STATUS Next event to transfer from master: Master_Log_File, Read_Master_Log_Pos Next event to apply: With respect to master log: Relay_Master_Log_File, Exec_Master_Log_Pos With respect to relay log: Relay_Log_File, Relay_Log_Pos Use mysqlbinlog to read the contents mysqlbinlog master-log mysqlbinlog relay-log Investigate the problem, and possibly: Remove rows in database; START SLAVE SET SQL_SLAVE_SKIP_COUNTER=1; START SLAVE M
4 Lars Thalmann & Mats Kindahl Replication Tricks and Tips AB Examining binlog mysqlbinlog --hexdump master-bin Statement-based INSERT1/2: Query event header L $ mysqlbinlog --hexdump master-bin # at 235 # :16:02 server id 1 end_log_pos 351 # Position Timestamp Type Master ID # eb e2 cf # Size Master Pos Flags # f
5 Lars Thalmann & Mats Kindahl Replication Tricks and Tips AB Examining binlog mysqlbinlog --hexdump master-bin Statement-based INSERT 2/2: Query event data # fe # a # e std # e test.INSE # e RT.INTO.t1.VALUE # e S...A...B...X # e 27 2c......Y...X...X. # e 29. # Query thread_id=2 exec_time=0 error_code=0 SET TIMESTAMP= ; INSERT INTO t1 VALUES ('A','B'), ('X','Y'), ('X','X'); L
6 Lars Thalmann & Mats Kindahl Replication Tricks and Tips AB Examining binlog mysqlbinlog --verbose master-bin Reconstructing INSERT from row-based events L $ mysqlbinlog --verbose master-bin BINLOG ' qznvsrmbaaaakqaaaaycaaaaabaaaaaaaaaabhrlc3qaanqxaaedaae= qznvsrcbaaaajwaaac0caaaqabaaaaaaaaeaaf/+awaaap4eaaaa '/*!*/; ### INSERT INTO test.t1 ### SET ### INSERT INTO test.t1 ### SET
7 Lars Thalmann & Mats Kindahl Replication Tricks and Tips AB Replication to get online backup Replicate to a slave server So that all data is there Stop replication To stop changes to the slave Do backup on the slave It does not matter if this is blocking since the master is not blocked M This technique is used by the Time Machine Backup
8 Lars Thalmann & Mats Kindahl Replication Tricks and Tips AB L Extra slave to initiate new slaves Extra slave New slave
9 Lars Thalmann & Mats Kindahl Replication Tricks and Tips AB Using mysqldump to inititialize slave M Dump data from a server master and restore it on another server slave : mysqldump --host=master uuser -master-data --lock-all-tables --databases test mysql --host=slave uuser This locks the database!
10 Lars Thalmann & Mats Kindahl Replication Tricks and Tips AB Using mysqldump to inititialize slave M To avoid locking the entire table: mysqldump --host=master uuser -single-transaction - master-data --databases test mysql --host=slave uuser Note: only works for tables that can handle consistent snapshots, such as InnoDB
11 Lars Thalmann & Mats Kindahl Replication Tricks and Tips AB Using replication to repopulate a table M Write a script that, for each table t1: SELECT * INTO OUTFILE t1.txt FROM t1; DROP TABLE IF EXISTS t1; Works with statementbased replication CREATE TABLE t1 ; LOAD DATA INFILE t1.txt INTO TABLE t1; A version using INSERT-SELECT (works for row-based): CREATE TEMORARY TABLE t1_tmp LIKE t1; INSERT INTO t1_tmp SELECT * FROM t1; Works with rowbased replication DROP TABLE IF EXISTS t1; CREATE TABLE t1 SELECT * FROM t1_tmp; For row-based replication, the temporary table is not transferred to the slave, so this will only send the data that is necessary to bootstrap the table.
12 Lars Thalmann & Mats Kindahl Replication Tricks and Tips AB L Point-in-time recovery using mysqlbinlog For point in time recovery, you can take the replication log and apply it into the. mysqlbinlog \ --read-from-remote-server \ --host=master -uroot --position=192 \ --to-datetime= :36:56 \ master-bin.00002[2-4] mysql -uroot --host=slave
13 Lars Thalmann & Mats Kindahl Replication Tricks and Tips AB M Proxy to do multi-master Proxy Proxy writes a new binary log
14 Lars Thalmann & Mats Kindahl Replication Tricks and Tips AB Use a default engine for a server CREATE TABLE ( uid INT AUTO_INCREMENT PRIMARY KEY, name VARCHAR(64) ) ENGINE=INNODB; SET GLOBAL STORAGE_ENGINE = INNODB; CREATE TABLE ( uid INT AUTO_INCREMENT PRIMARY KEY, name VARCHAR(64) ); Not replicated, so remember to set default engine on slaves!
15 Lars Thalmann & Mats Kindahl Replication Tricks and Tips AB M Split replication stream on table replication do table=east_coast replication do table=west_coast Relay Slave ALTER TABLE xxx ENGINE = BLACKHOLE SET GLOBAL STORAGE_ENGINE = BLACKHOLE Relay Slave
16 Lars Thalmann & Mats Kindahl Replication Tricks and Tips AB L Cluster multi-source replication Cluster Cluster Cluster Let masters update different data
17 Lars Thalmann & Mats Kindahl Replication Tricks and Tips AB L Multi-channel replication with fail-over Cluster Cluster
18 Lars Thalmann & Mats Kindahl Replication Tricks and Tips AB M Slave having time-sharing masters Clocked switching 1. Stop slave 2. Save position 3. Change master 4. Start slave
19 Lars Thalmann & Mats Kindahl Replication Tricks and Tips AB Stop the slave and save position using sh(1) socket="mysql-test/var/tmp/$1.sock" mysql_exec () { # Read commands from stdin client/mysql --vertical --socket="$1" --batch \ --skip-column-names --batch user=root } stop_slave () { echo STOP SLAVE mysql_exec "$1"; } fetch_pos () { echo SHOW SLAVE STATUS mysql_exec "$1" grep '\<Master_\(Host\ Port\ Log_File\)\ \<Read_Master_Log_Pos' cut -f2 -d: } stop_slave "$socket" echo `fetch_pos "$socket"` >$1.savepos M
20 Lars Thalmann & Mats Kindahl Replication Tricks and Tips AB Restore the slave position and start slave using sh(1)... start_slave () { echo START SLAVE mysql_exec "$1"; } M change_to_pos () { mysql_exec "$1" <<EOF # Pass command using here-is CHANGE MASTER TO MASTER_HOST='$2', MASTER_PORT=$3, MASTER_LOG_FILE='$4', MASTER_LOG_POS=$5 EOF } name cat $1.savepos { read host port file pos change_to_pos $socket "$host" "$port" "$file" "$pos" start_slave "$socket" }
21 cnt= Lars Thalmann & Mats Kindahl Replication Tricks and Tips AB Rotate between several slaves using sh(1) while true; do save_pos_and_stop_slave mysqld.$cnt cnt=`expr $cnt % 5 + 1` restore_pos_and_start_slave mysqld.$cnt } M names are of the form mysqld.x savepos files are of the form mysqld.x.savepos
22 Lars Thalmann & Mats Kindahl Replication Tricks and Tips AB M Encrypted replication CHANGE MASTER TO MASTER_SSL = 1, MASTER_SSL_CA = 'cacert.pem' MASTER_SSL_CERT = mycert.pem MASTER_SSL_KEY = mykey.pem'
23 Lars Thalmann & Mats Kindahl Replication Tricks and Tips AB Using current database to filter In STATEMENT format, you can set current db to filter statements: If --binlog-ignore-db=db1 is used on server, then the following INSERT is not logged: USE foo; INSERT into bar.t1 VALUES(1); If --replicate-ignore-db=db1 is used on slave, then the following INSERT is not applied: USE foo; INSERT into bar.t1 VALUES(1); M In ROW format, you can not use this trick, since row-based always use the actual database: The following INSERT is logged and applied if db1 is not filtered: USE foo; INSERT into db1.t1 VALUES(1);
24 Lars Thalmann & Mats Kindahl Replication Tricks and Tips AB M More columns on slave than master You can add a column on the slave: Master: CREATE TABLE t1 (a INT, b INT); Slave: ALTER TABLE t1 ADD ts TIMESTAMP; Extra columns have to have default values! Master: INSERT INTO t1(a,b) VALUES (10,20); Row-based replication need extra column last
25 Lars Thalmann & Mats Kindahl Replication Tricks and Tips AB M Less columns on slave than master In row-based replication, you can remove columns on the slave: Master: CREATE TABLE t1 (a INT, b INT, comments TEXT); Slave: ALTER TABLE t1 DROP comments; Only possible to remove columns from the end Master: INSERT INTO t1 VALUES (1,2, Do not store this on slave );
26 New in 6.0/ Lars Thalmann & Mats Kindahl Replication Tricks and Tips AB Replication Heartbeat Master Replication I/O thread Slave SE1 SE2 Binlog Relay Binlog SE1 SE2 Binlog Storage Engines
27 New in 6.0/ Lars Thalmann & Mats Kindahl Replication Tricks and Tips AB Replication Heartbeat Master Slave Automatic checking of connection status No more relay log rotates when the master is idle Detection of master/slave disconnect configurable in millisecs CHANGE MASTER SET master_heartbeat_period= val; SHOW STATUS like 'slave_heartbeat period' SHOW STATUS like 'slave_received_heartbeats'
28 New in 6.0/ Lars Thalmann & Mats Kindahl Replication Tricks and Tips AB Ignoring s in Circular Replication A B D C Circular replication If server A is removed from the circle, server B can be set to terminate A's events in the new circle B> CHANGE MASTER TO MASTER_HOST=C... IGNORE_SERVER_IDS=(A)
29 Lars Thalmann & Mats Kindahl Replication Tricks and Tips AB L Replication database test c1 c2 c copy rpl_db c1 c2 c master replication c1 c2 c3 rpl_db Slave
30 Lars Thalmann & Mats Kindahl Replication Tricks and Tips AB L 1. Two options to only replicate this part: 1. On master: Replication database [mysqld]... binlog-do-db=rpl_db Note that this filters the binlog on master On slave: [mysqld]... replicate-do-db=rpl_db This filters the replication execution on the slave Note that you need row-based for this to work In statement-based replication, the source tables are need to execute the statement.
31 Lars Thalmann & Mats Kindahl Replication Tricks and Tips AB L Replication database CREATE DATABASE rpl_db; USE test; CREATE TABLE t1 (a INT, b INT, c INT); USE rpl_db; CREATE TABLE t1 (a INT, b INT, c INT); USE test; # Not replicated INSERT INTO t1 VALUES (1,2,3), (2,5,9); USE rpl_db; # Replicated INSERT INTO t1 VALUES (3,4,5), (4,6,11);
32 Lars Thalmann & Mats Kindahl Replication Tricks and Tips AB Less columns on slave than master L a b c a c trigger master rpl_db replication a c slave rpl_db
33 Lars Thalmann & Mats Kindahl Replication Tricks and Tips AB L Less columns on slave than master Master: CREATE DATABASE rpl_db; USE test; CREATE TABLE t1 (a INT, b BLOB, c INT); CREATE TRIGGER tr_t1 AFTER INSERT ON test.t1 FOR EACH ROW INSERT INTO rpl_db.t1_v(a,c) VALUES(NEW.a,NEW.c); USE rpl_db; CREATE TABLE t1_v (a INT, c INT); Use like this: USE test; = REPEAT('beef',100); INSERT INTO t1 VALUES (1,@blob,3), (2,@blob,9);
34 Lars Thalmann & Mats Kindahl Replication Tricks and Tips AB M Only replicate some rows to slave a b c trigger rpl_db a b c master replication a b c Slave rpl_db
35 Lars Thalmann & Mats Kindahl Replication Tricks and Tips AB M Only replicate some rows to master # Just replicate rows that has odd numbers in first column. USE rpl_db; CREATE TABLE t1_h (a INT, b BLOB, c INT); --delimiter // CREATE TRIGGER slice_t1_horiz AFTER INSERT ON test.t1 FOR EACH ROW BEGIN IF NEW.a MOD 2 = 1 THEN INSERT INTO rpl_db.t1_h VALUES (NEW.a, NEW.b, NEW.c); END IF; END// --delimiter ;
36 Provides: Lars Thalmann & Mats Kindahl Replication Tricks and Tips AB Execution of replication events on slave is to be N seconds behind master User interface: Feature Preview Time-delayed replication CHANGE MASTER TO MASTER_DELAY= N N is a non-negative less than MAX_ULONG number of seconds to wait by the slave. (Attempts to set higher is rejected with error.) Controlling of a delayed setup is via SHOW SLAVE STATUS Seconds_behind_master Kudos: Kay Röpke, original patch; Sven, modifications L
37 Lars Thalmann & Mats Kindahl Replication Tricks and Tips AB Scriptable Replication High-level structure Client Master Slave Dump I/O SQL function befo local q = eve slave:query(q end function befo local q = eve slave:query(q end Binary Log function befo local q = eve slave:query(q end Extension modules Relay Log function befo local q = eve slave:query(q end
38 Lars Thalmann & Mats Kindahl Replication Tricks and Tips AB The oracle algorithm Paul Tuckfield s (Google/YouTube) module(..., package.seeall); require luasql.mysql pattern = { ["UPDATE%s+(%w+).*%s(WHERE.*)"] = "SELECT * FROM %1 %2", ["DELETE%s+FROM%s+(%w+).*%s(WHERE.*)"] = "SELECT * FROM %1 %2", } env = luasql.mysql() con = env:connect("test", root,, localhost, mysql.port) function before_write(event) local line = event.query if not line then return end for pat,repl in pairs(pattern) do local str = string.gsub(line, pat, repl) if str then con:execute(str); break; end end end
39 Lars Thalmann & Mats Kindahl Replication Tricks and Tips AB Semi-synchronous Replication Original patch: Mark Callaghan and Wei Li, Google Adoptions: Zhenxing He, Sun Microsystems Application Logging/ Replication Semi-Sync Replicator Semi-Sync Receiver Relay Log/ Applier Application Master Replication L R R A Slave Ack SE1 SE2 Binlog Relay Binlog SE1 SE2 Storage Engines Storage Engines
40 On master: New in 6.0/ Lars Thalmann & Mats Kindahl Replication Tricks and Tips AB Install Plug-ins and Play INSTALL PLUGIN 'rpl_semi_sync_master' SONAME 'libsemisync_master.so'; SET rpl_semi_sync_master_enabled=1; SET rpl_semi_sync_master_timeout=1000; On slave: milliseconds INSTALL PLUGIN 'rpl_semi_sync_slave' SONAME 'libsemisync_slave.so'; SET rpl_semi_sync_slave_enabled=1; START SLAVE;
41 Lars Thalmann & Mats Kindahl Replication Tricks and Tips AB Look into the DevZone L Replication DevZone Dr. Mats Kindahl Lead Developer, Replication Technology mats@sun.com Dr. Lars Thalmann Development Manager, Replication and Backup Technology lars.thalmann@sun.com
New Replication Features MySQL 5.1 and MySQL 6.0/5.4
2009 04 21 Lars Thalmann & Mats Kindahl New Replication Features www.mysql.com 1 New Replication Features MySQL 5.1 and MySQL 6.0/5.4 Dr. Lars Thalmann Development Manager, Replication & Backup lars@mysql.com
More informationMySQL Replication Update
MySQL Replication Update Lars Thalmann Development Director MySQL Replication, Backup & Connectors OSCON, July 2011 MySQL Releases MySQL 5.1 Generally Available, November 2008 MySQL
More informationDiagnosing Failures in MySQL Replication
Diagnosing Failures in MySQL Replication O'Reilly MySQL Conference Santa Clara, CA Devananda Deva van der Veen -2- Introduction About Me Sr Consultant at Percona since summer 2009 Working with large MySQL
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 informationHow To Repair MySQL Replication
By Falko Timme Published: 2008-06-06 13:10 How To Repair MySQL Replication Version 1.0 Author: Falko Timme Last edited 05/29/2008 If you have set up MySQL replication, you
More informationSetting Up Master-Master Replication With MySQL 5 On Debian Etch
By Falko Timme Published: 2007-10-23 18:03 Setting Up Master-Master Replication With MySQL 5 On Debian Etch Version 1.0 Author: Falko Timme Last edited 10/15/2007 Since version
More informationEXPERIENCES USING GH-OST IN A MULTI-TIER TOPOLOGY
EXPERIENCES USING GH-OST IN A MULTI-TIER TOPOLOGY Ivan Groenewold Valerie Parham-Thompson 26 April 2017 WHY USE GH-OST? Why not use native online schema change capabilities of MySQL/MariaDB? Some changes
More informationIntroduction To MySQL Replication. Kenny Gryp Percona Live Washington DC /
Introduction To MySQL Replication Kenny Gryp Percona Live Washington DC / 2012-01-11 MySQL Replication Replication Overview Binary Logs Setting Up Replication Commands Other Common
More informationReplication features of 2011
FOSDEM 2012 Replication features of 2011 What they were How to get them How to use them Sergey Petrunya MariaDB MySQL Replication in 2011: overview Notable events, chronologically: MySQL 5.5 GA (Dec 2010)
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 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 informationTesting and Verifying your MySQL Backup Strategy
About the Author Ronald BRADFORD Testing and Verifying your MySQL Backup Strategy Ronald Bradford http://ronaldbradford.com @RonaldBradford 16 years with MySQL / 26 years with RDBMS Senior Consultant at
More informationMySQL Replication : advanced features in all flavours. Giuseppe Maxia Quality Assurance Architect at
MySQL Replication : advanced features in all flavours Giuseppe Maxia Quality Assurance Architect at VMware @datacharmer 1 About me Who s this guy? Giuseppe Maxia, a.k.a. "The Data Charmer" QA Architect
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 informationSupport for replication is built into MySQL. There are no special add-ins or applications to install.
Updates made to one database copy are automatically propagated to all the other replicas. Generally, one of the replicas is designated as the master where Updates are directed to the master while read
More informationMySQL Real Time Single DB Replication & SSL Encryption on CENTOS 6.3
Alternate Titles: MYSQL SSL Encryption Based Replication Setup Author: Muhammad Zeeshan Bhatti [LPI, VCP, OCP (DBA), MCSA, SUSE CLA,] (http://zeeshanbhatti.com) (admin@zeeshanbhatti.com) MySQL Real Time
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 GTID Implementation, Maintenance, and Best Practices. Brian Cain (Dropbox) Gillian Gunson (GitHub) Mark Filipi (SurveyMonkey)
MySQL GTID Implementation, Maintenance, and Best Practices Brian Cain (Dropbox) Gillian Gunson (GitHub) Mark Filipi (SurveyMonkey) Agenda Intros Concepts Replication overview GTID Intro Implementation
More informationBackup & Restore. Maximiliano Bubenick Sr Remote DBA
Backup & Restore Maximiliano Bubenick Sr Remote DBA Agenda Why backups? Backup Types Raw Backups Logical Backups Binlog mirroring Backups Locks Tips Why Backups? Why Backups? At some point something will
More informationmysql Sun Certified MySQL 5.0 Database(R) Administrator Part 1
mysql 310-810 Sun Certified MySQL 5.0 Database(R) Administrator Part 1 http://killexams.com/exam-detail/310-810 A. shell>mysql test < dump.sql B. shell>mysqladmin recover test dump.sql C. mysql> USE test;mysql>
More informationMySQL Replication Advanced Features In 20 minutes
MySQL Replication Advanced Features In 20 minutes Peter Zaitsev, CEO FOSDEM, Brussels, Belgium February 2nd, 2019 1 Question #1 Who in this room is using some kind of MySQL Replication? 2 Question #2 Which
More informationHow to evaluate which MySQL High Availability solution best suits you
How to evaluate which MySQL High Availability solution best suits you Henrik Ingo & Ben Mildren MySQL Conference And Expo, 2012 Please share and reuse this presentation licensed under the Creative Commons
More informationBackup and Recovery Strategy
Backup and Recovery Strategy About Stacy 10+ years of experience on various flavors of relational databases. Focus on performance tuning, code reviews, database deployment and infrastructure management
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 informationJailbreaking MySQL Replication Featuring Tungsten Replicator. Robert Hodges, CEO, Continuent
Jailbreaking MySQL Replication Featuring Tungsten Robert Hodges, CEO, Continuent About Continuent / Continuent is the leading provider of data replication and clustering for open source relational databases
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 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 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 informationZABBIX TIPS & TRICKS. Kaspars Mednis, ZABBIX
ZABBIX TIPS & TRICKS Kaspars Mednis, ZABBIX 1. {$USER_MACROS} Zabbix Tips and Tricks What are {$USER_MACROS}? They are variable names to store different information trigger thresholds different filters
More informationMySQL Point-in-Time Recovery like a Rockstar
1 / 51 2 / 51 3 / 51 MySQL Point-in-Time Recovery like a Rockstar Accelerate MySQL point-in-time recovery for large workloads FOSDEM, February 2018 Frédéric Descamps - MySQL Community Manager - Oracle
More informationIntroduction to troubleshooting Basic techniques. Sveta Smirnova Principal Support Engineer March, 10, 2016
Introduction to troubleshooting Basic techniques Sveta Smirnova Principal Support Engineer March, 10, 2016 Table of Contents Introduction How to find problematic query Solving issues Syntax errors Logic
More informationHow to make MySQL work with Raft. Diancheng Wang & Guangchao Bai Staff Database Alibaba Cloud
How to make MySQL work with Raft Diancheng Wang & Guangchao Bai Staff Database Engineer @ Alibaba Cloud About me Name: Guangchao Bai Location: Beijing, China Occupation: Staff Database Engineer @ Alibaba
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 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 informationMySQL 5.6 New Replication Features
disclaimer MySQL 5.6 New Replication Features Ronald Bradford New York & Boston March 2012 The presentation provides information that is publicly available for MySQL 5.6 GA. The content of this presentation
More informationUsing the MySQL Binary Log as a Change Stream
Using the MySQL Binary Log as a Change Stream Luis Soares Software Development Director MySQL Replication October, 2018 Copyright 2018, Oracle and/or its affiliates. All rights reserved. Oracle Code Safe
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 informationHow Facebook Got Consistency with MySQL in the Cloud Sam Dunster
How Facebook Got Consistency with MySQL in the Cloud Sam Dunster Production Engineer Consistency Replication Replication for High Availability Facebook Replicaset Region A Slave Slave Region B Region
More informationBacking up or Exporting Databases Using mysqldump
Despite the steps you take to secure and protect your databases, events such as power failures, natural disasters, and equipment failure can lead to the corruption and loss of data. As a result, one of
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 informationThe Exciting MySQL 5.7 Replication Enhancements
The Exciting MySQL 5.7 Replication Enhancements Luís Soares (luis.soares@oracle.com) Principal Software Engineer, MySQL Replication Team Lead Copyright 2016, Oracle and/or its affiliates. All rights reserved.
More informationHigh availability with MariaDB TX: The definitive guide
High availability with MariaDB TX: The definitive guide MARCH 2018 Table of Contents Introduction - Concepts - Terminology MariaDB TX High availability - Master/slave replication - Multi-master clustering
More informationCreating a Best-in-Class Backup and Recovery System for Your MySQL Environment. Akshay Suryawanshi DBA Team Manager,
Creating a Best-in-Class Backup and Recovery System for Your MySQL Environment Akshay Suryawanshi DBA Team Manager, 2015-07-15 Agenda Why backups? Backup Types Binary or Raw Backups Logical Backups Binlog
More informationMySQL Multi-Source Replication
MySQL Multi-Source Replication Max Bubenick - max.bubenick@percona.com Technical Operations Manager Wagner Bianchi - wagner.bianchi@percona.com Principal Technical Services Engineer This is gonna be a
More informationThis presentation is a bit different in that we are usually talking to DBA s about MySQL.
This presentation is a bit different in that we are usually talking to DBA s about MySQL. Since this is a developer s conference, we are going to be looking at replication from a developer s point of view.
More informationMariaDB 10.3 vs MySQL 8.0. Tyler Duzan, Product Manager Percona
MariaDB 10.3 vs MySQL 8.0 Tyler Duzan, Product Manager Percona Who Am I? My name is Tyler Duzan Formerly an operations engineer for more than 12 years focused on security and automation Now a Product Manager
More informationPerformance comparisons and trade-offs for various MySQL replication schemes
Performance comparisons and trade-offs for various MySQL replication schemes Darpan Dinker VP Engineering Brian O Krafka, Chief Architect Schooner Information Technology, Inc. http://www.schoonerinfotech.com/
More informationMySQL Security, Privileges & User Management Kenny Gryp Percona Live Washington DC /
MySQL Security, Privileges & User Management Kenny Gryp Percona Live Washington DC / 2012-01-11 Security, Privileges & User Management Privilege System User Management Pluggable
More informationMySQL Test Framework for Troubleshooting. February, 04, 2018 Sveta Smirnova
MySQL Test Framework for Troubleshooting February, 04, 2018 Sveta Smirnova What my Family Thinks I Do 2 What my Boss Thinks I Do 3 What I Really Do 4 I Investigate Why customer s SQL works wrongly 5 I
More informationMySQL Architecture Design Patterns for Performance, Scalability, and Availability
MySQL Architecture Design Patterns for Performance, Scalability, and Availability Brian Miezejewski Principal Manager Consulting Alexander Rubin Principal Consultant Agenda HA and
More informationMySQL Group Replication & MySQL InnoDB Cluster
MySQL Group Replication & MySQL InnoDB Cluster Production Ready? Kenny Gryp productions Table of Contents Group Replication MySQL Shell (AdminAPI) MySQL Group Replication MySQL Router Best Practices Limitations
More informationDatabase Backup and Recovery Best Practices. Manjot Singh, Data & Infrastrustructure Architect
Database Backup and Recovery Best Practices (with a focus on MySQL) Manjot Singh, Data & Infrastrustructure Architect About Manjot Singh MySQL Fanatic Long time user (~16 years) Database and Systems Administrator
More information<Insert Picture Here> MySQL: Replication
MySQL: Replication Keith Larson keith.larson@oracle.com MySQL Community Manager sqlhjalp.blogspot.com sqlhjalp.com/pdf/2012_scale_replication.pdf Safe Harbor Statement The following
More informationLessons from database failures
Lessons from database failures Colin Charles, Chief Evangelist, Percona Inc. colin.charles@percona.com / byte@bytebot.net http://www.bytebot.net/blog/ @bytebot on Twitter Percona Webminar 18 January 2017
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 informationRiding the Binlog: an in Deep Dissection of the Replication Stream. Jean-François Gagné jeanfrancois DOT gagne AT booking.com
Riding the Binlog: an in Deep Dissection of the Replication Stream Jean-François Gagné jeanfrancois DOT gagne AT booking.com Presented at Percona Live Amsterdam 2015 Booking.com 1 Booking.com Based in
More informationHow to get MySQL to fail
Snow B.V. Feb 3, 2013 Introduction We all know we shouldn t press the button... Introduction We all know we shouldn t press the button... but we all want to try. Do you know? Do you know what happens if
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 informationMySQL Replication, the Community Sceptic Roundup. Giuseppe Maxia Quality Assurance Architect at
MySQL Replication, the Community Sceptic Roundup Giuseppe Maxia Quality Assurance Architect at VMware @datacharmer 1 About me Who s this guy? Giuseppe Maxia, a.k.a. "The Data Charmer" QA Architect at VMware
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 informationLoad Testing Tools. for Troubleshooting MySQL Concurrency Issues. May, 23, 2018 Sveta Smirnova
Load Testing Tools for Troubleshooting MySQL Concurrency Issues May, 23, 2018 Sveta Smirnova Introduction This is very personal webinar No intended use No best practices No QA-specific tools Real life
More informationThe Blackhole and Federated Storage Engines: The Coolest Kids on the Block
The Blackhole and Federated Storage Engines: The Coolest Kids on the Block Kai Voigt, kai@mysql.com Senior Instructor, MySQL AB Giuseppe Maxia, giuseppe@mysql.com QA Developer, MySQL AB Kai Voigt Mister
More informationMySQL Backup solutions. Liz van Dijk Zarafa Summer Camp - June 2012
MySQL Backup solutions Liz van Dijk - @lizztheblizz Zarafa Summer Camp - June 2012 Percona MySQL/LAMP Consulting MySQL Support (co-)developers of Percona Server (XtraDB) Percona XtraBackup Percona Toolkit
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 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 informationCisco Prime Network Registrar IPAM MySQL Database Replication Guide
Cisco Prime Network Registrar IPAM 8.1.3 MySQL Database Replication Guide Americas Headquarters Cisco Systems, Inc. 170 West Tasman Drive San Jose, CA 95134-1706 USA http://www.cisco.com Tel: 408 526-4000
More informationBasics: Backup, Recovery, and Provisioning with a Continuent Tungsten Cluster
Basics: Backup, Recovery, and Provisioning with a Continuent Tungsten Cluster 1 Topics In this short course we will: Methods and Tools for taking a backup Verifying the backup contains the last binary
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 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 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 information1z0-888.exam.43q.
1z0-888.exam.43q Number: 1z0-888 Passing Score: 800 Time Limit: 120 min 1z0-888 MySQL 5.7 Database Administrator Exam A QUESTION 1 Is it true that binary backups always take less space than text backups?
More informationMySQL with Windows Server 2008 R2 Failover Clustering
MySQL with Windows Server 2008 R2 Failover Clustering Delivering High Availability with MySQL on Windows A MySQL White Paper September 2011 Table of Contents Summary... 3 Value of MySQL on Windows... 3
More informationModel Question Paper. Credits: 4 Marks: 140
Model Question Paper Subject Code: BT0075 Subject Name: RDBMS and MySQL Credits: 4 Marks: 140 Part A (One mark questions) 1. MySQL Server works in A. client/server B. specification gap embedded systems
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 informationMySQL Group Replication. Bogdan Kecman MySQL Principal Technical Engineer
MySQL Group Replication Bogdan Kecman MySQL Principal Technical Engineer Bogdan.Kecman@oracle.com 1 Safe Harbor Statement The following is intended to outline our general product direction. It is intended
More informationMySQL Backup Best Practices and Case Study:.IE Continuous Restore Process
MySQL Backup Best Practices and Case Study:.IE Continuous Restore Process Marcelo Altmann Senior Support Engineer - Percona Mick Begley Technical Service Manager - IE Domain Registry Agenda Agenda Why
More informationOperating and Maintaining Cisco SPS
CHAPTER 3 This chapter provides information on how to operate and maintain the Cisco SIP proxy server (Cisco SPS). Operation and maintenance involves starting and stopping the system and database, working
More informationFromDual Annual Company Meeting
FromDual Annual Company Meeting Athens, 2013 Galera Cluster for MySQL http:// 1 / 26 About FromDual GmbH (LLC) FromDual provides neutral and independent: Consulting for MySQL Support for MySQL and Galera
More informationSun Microsystems. MySQL Backup and Security Best practices on how to run MySQL on Linux in a secure way. Lenz Grimmer
MySQL Backup and Security Best practices on how to run MySQL on Linux in a secure way Lenz Grimmer DrupalCon 2008 Szeged, Hungary 28. August 2008 Sun Microsystems 1 Introduction
More informationContinuous MySQL Restores Divij Rajkumar
Continuous MySQL Restores Divij Rajkumar (divij@fb.com) Production Engineer, MySQL Infrastructure, Facebook Continuous Restores Why? Verify backup integrity Haven t tested your backups? You don t have
More informationOperating and Maintaining Cisco SPS
CHAPTER 3 Operating and maintaining Cisco SIP proxy server (Cisco SPS) involves starting and stopping the system and database, working with system logs, and backing up and restoring the system. This chapter
More informationLoad Data Fast! BILL KARWIN PERCONA LIVE OPEN SOURCE DATABASE CONFERENCE 2017
Load Data Fast! BILL KARWIN PERCONA LIVE OPEN SOURCE DATABASE CONFERENCE 2017 Bill Karwin Software developer, consultant, trainer Using MySQL since 2000 Senior Database Architect at SchoolMessenger SQL
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 informationConsistent Reads Using ProxySQL and GTID. Santa Clara, California April 23th 25th, 2018
Consistent Reads Using ProxySQL and GTID Santa Clara, California April 23th 25th, 2018 Disclaimer I am not René Cannaò @lefred MySQL Community Manager / Oracle the one who provided a hint for this not
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 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 informationMySQL HA Solutions Selecting the best approach to protect access to your data
MySQL HA Solutions Selecting the best approach to protect access to your data Sastry Vedantam sastry.vedantam@oracle.com February 2015 Copyright 2015, Oracle and/or its affiliates. All rights reserved
More informationTroubleshooting Best Practices
Troubleshooting Best Practices Monitoring the Production Database Without Killing Performance June, 27, 2018 Sveta Smirnova Table of Contents Introduction: Between Desire and Reality Why Monitoring is
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 informationMysqldump Schema Only No Lock
Mysqldump Schema Only No Lock The mysqldump command can also generate output in CSV, other delimited text, or XML If no character set is specified, mysqldump uses utf8. o --no-set-names, also is specified,
More informationMariaDB CeBIT MariaDB 10.1: Datenbankverschlüsselung und andere Sicherheitsvorteile. Jens Bollmann, Principal Instructor/Consultant
2015, MariaDB Corp. MariaDB CeBIT 2016 MariaDB 10.1: Datenbankverschlüsselung und andere Sicherheitsvorteile Jens Bollmann, Principal Instructor/Consultant Agenda MariaDB 10.1/10.2 new features High Availabilty
More informationHP Open Source Middleware Stacks Blueprint:
HP Open Source Middleware Stacks Blueprint: Database Server on HP Server Platforms with MySQL and Red Hat Enterprise Linux Version 5 HP Part Number: 5991 7431 Published: August 2007 Edition: 2.0 Copyright
More informationMysql Manually Set Auto Increment To 1000
Mysql Manually Set Auto Increment To 1000 MySQL: Manually increment a varchar for one insert statement Auto Increment only works for int values, but i'm not at liberty here to change the data type. If
More informationResearch on Load Balancing and Database Replication based on Linux
Joint International Information Technology, Mechanical and Electronic Engineering Conference (JIMEC 2016) Research on Load Balancing and Database Replication based on Linux Ou Li*, Yan Chen, Taoying Li
More informationAurora, RDS, or On-Prem, Which is right for you
Aurora, RDS, or On-Prem, Which is right for you Kathy Gibbs Database Specialist TAM Katgibbs@amazon.com Santa Clara, California April 23th 25th, 2018 Agenda RDS Aurora EC2 On-Premise Wrap-up/Recommendation
More informationIT Certification Exams Provider! Weofferfreeupdateserviceforoneyear! h ps://www.certqueen.com
IT Certification Exams Provider! Weofferfreeupdateserviceforoneyear! h ps://www.certqueen.com Exam : 005-002 Title : Certified MySQL 5.0 DBA Part I Version : Demo 1 / 10 1. Will the following SELECT query
More informationPhxSQL: A High-Availability & Strong-Consistency MySQL Cluster. Ming
PhxSQL: A High-Availability & Strong-Consistency MySQL Cluster Ming CHEN@WeChat Why PhxSQL Highly expected features for MySql cluster Availability and consistency in MySQL cluster Master-slaves replication
More informationThe New Replication Features in MySQL 8. Luís Soares Principal Software Engineer, MySQL Replication Lead
The New Replication Features in MySQL 8 Luís Soares (luis.soares@oracle.com) Principal Software Engineer, MySQL Replication Lead Copyright 2017, Oracle and/or its affiliates. All rights reserved. Percona
More information<Insert Picture Here> New MySQL Enterprise Backup 4.1: Better Very Large Database Backup & Recovery and More!
New MySQL Enterprise Backup 4.1: Better Very Large Database Backup & Recovery and More! Mike Frank MySQL Product Management - Director The following is intended to outline our general
More information