Operational DBA In a Nutshell - HandsOn Reference Guide

Size: px
Start display at page:

Download "Operational DBA In a Nutshell - HandsOn Reference Guide"

Transcription

1 1/12 Operational DBA In a Nutshell - HandsOn Reference Guide Contents 1 Operational DBA In a Nutshell 2 2 Installation of MySQL Setting Up Our VM Installation of MySQL Logging In MySQL Privileges MySQL Privileges (1) Default Permissions Are Bad MySQL Privileges (2) Diagnostics, Troubleshooting & Monitoring Add Some Load First Diagnostics pt-mext pt-diskstats Enhanced Slow Log Statistics pt-query-digest Trending Optimizing This Application Backups mysqldump XtraBackup Advanced Backup Topics Replication Change Master/Slave Configuration Prerequisites (1) Prerequisites (2) Configure Replication Start Replication Administrative Commands

2 1 Operational DBA In a Nutshell 2/ Diagnostics Commands Breaking & Fixing Replication Inconsistencies Schema Changes Online Schema Changes Operational DBA In a Nutshell This guide serves the purpose of allowing you to follow along and catch up in case you are unable to finish the assigned hands-on tasks during the available time. It follows the same structure as the tutorial, and includes the slide numbers and subjects for easy reference. You can also use it to repeat the exercises on the virtual machines, after this tutorial is finished. Note If you experience trouble with one of these steps, don t hesitate to ask for help at any time. 2 Installation of MySQL 2.1 Setting Up Our VM Logging in (using the password vagrant ): # ssh -p 2221 root@localhost Browsing to the test page to confirm connectivity: Installation of MySQL Download and install Percona Server from the repository: # yum install Percona-Server-server-56 # service mysql start 2.3 Logging In Log in and run some exploratory commands:

3 3 MySQL Privileges 3/12 # mysql mysql> SHOW DATABASES; mysql> USE imdb; mysql> SHOW TABLES; mysql> SELECT * FROM users LIMIT 1; mysql> SHOW PROCESSLIST; After you are finished: mysql> exit 3 MySQL Privileges 3.1 MySQL Privileges (1) Install the Percona Toolkit tools, and list up your database grants: # yum install percona-toolkit # pt-show-grants 3.2 Default Permissions Are Bad Walk through the security wizard: # mysql_secure_installation Make sure to change the password to root. 3.3 MySQL Privileges (2) Create a user for our web application: # mysql -u root -p Enter password: mysql> GRANT ALL PRIVILEGES ON imdb.* TO 'mymovies'@'localhost' IDENTIFIED BY 'password'; mysql> exit Change the configuration for our web application to match the username and password you just chose. Note You can use whichever editor you are comfortable with during this tutorial. We ll be using nano in this example.

4 4 Diagnostics, Troubleshooting Monitoring 4/12 # nano /var/www/html/my-movies/lib/config.inc.php Change the following lines: define('mysql_user', 'root'); define('mysql_password', ''); to: define('mysql_user', mymovies ); define('mysql_password', password ); Verify the application is running correctly by surfing to: # Confirm that our security has tightened by rerunning: # pt-show-grants -u root --ask-pass Edit the.my.cnf file in your homefolder for easy login during the exercises: # nano ~/.my.cnf It should contain the following lines: [client] user=root password=root 4 Diagnostics, Troubleshooting & Monitoring 4.1 Add Some Load First Open up a separate terminal, log into node1 and run the following script: # /home/percona/add_load.py 4.2 Diagnostics There are various places you can check to gain some understanding as to what is going on. Here are some examples:

5 4.3 pt-mext 5/12 # tail /var/lib/mysql/node1.err # mysqladmin extended-status In the MySQL client: mysql> SHOW GLOBAL STATUS; mysql> SHOW ENGINE INNODB STATUS; mysql> SHOW PROCESSLIST; Some tools to display OS level metrics: # vmstat # iostat # mpstat # top # ps # cat /proc/meminfo innotop: # innotop 4.3 pt-mext Using pt-mext to capture changes over time: # pt-mext -r -- mysqladmin ext -i 10 -c pt-diskstats Using pt-diskstats to get a sense of the storage activity: # pt-diskstats --devices-regex sdb1 4.5 Enhanced Slow Log Statistics Enable Slow Query Logging in MySQL: mysql> SET GLOBAL slow_query_log=on; mysql> SET GLOBAL slow_query_log_file='/var/lib/mysql/slow.log'; mysql> SET GLOBAL long_query_time=0; mysql> SET GLOBAL log_slow_verbosity=full; Look at the Slow Query Logfile:

6 4.6 pt-query-digest 6/12 # tail -n 200 /var/lib/mysql/slow.log 4.6 pt-query-digest Analyze the Slow Query Logfile with pt-query-digest: # pt-query-digest /var/lib/mysql/slow.log less Store the pt-query-digest reports in the database: # pt-query-digest --review localhost /var/lib/mysql/slow.log Using filters: # pt-query-digest --filter '$event->{fingerprint} =~ m/^select/' /var/lib/mysql/slow.log 4.7 Trending Use a browser to go to the following address (username: admin, password: plmce): Optimizing This Application Take a look at the change recommendations and apply them: # less /home/percona/.data/billkarwin-opt.sql # cat /home/percona/.data/billkarwin-opt.sql mysql -D imdb Note The above may take a while to complete. If you want to take a look at the difference: # cd /var/lib/mysql/; mv slow.log slow.log_old # killall -HUP mysqld # /home/percona/add_load.py -- in a separate terminal

7 5 Backups 7/12 # pt-query-digest /var/lib/mysql/slow.log less 5 Backups 5.1 mysqldump Take a consistent logical backup: # mysqldump --all-databases --single-transaction > /var/backup/dump.sql While the above command is executing, take a look at what's happening: # vmstat XtraBackup Install XtraBackup: # yum install percona-xtrabackup Take a backup to the specified location: # innobackupex /var/backup Apply the log files to the backup to prepare it for restoration: # innobackupex --apply-log /var/backup/[backupfolder] To restore, execute the following commands: # innobackupex --copy-back /var/backup/[backupfolder]/ # chown -R mysql:mysql /var/lib/mysql 5.3 Advanced Backup Topics Create an incremental backup based on the previously created full backup: # innobackupex --incremental /var/backup/inc/ --incremental-basedir=/var/backup/[backupfolder] Apply the incremental backups to the original full backup:

8 6 Replication 8/12 # innobackupex --apply-log --redo-only /var/backup/[backupfolder] # innobackupex --apply-log --redo-only /var/backup/[backupfolder] --incremental-basedir=/var/backup/inc/[incbackupfolder] # innobackupex --apply-log /var/backup/[backupfolder] 6 Replication 6.1 Change Master/Slave Configuration Edit the configuration files on the Master and Slave to prepare it for replication. On both the master and slave, edit /etc/my.cnf to add the following: gtid_mode=on log-slave-updates enforce-gtid-consistency After updating the configuration, restart the master: [root@node1 ~]# service mysql restart node1 mysql> DROP DATABASE IMDB; 6.2 Prerequisites (1) We need to take a full backup to populate the slave instance with data. Prepare it as follows: [root@node1 ~]# rm -rf /var/backup/* [root@node1 ~]# innobackupex /var/backup/ [root@node1 ~]# innobackupex --apply-log /var/backup/[backupfolder] [root@node1 ~]# ln -s /var/backup/[backupfolder] /var/backup/last_full 6.3 Prerequisites (2) [root@node2 ~]# rm -rf /var/lib/mysql/* [root@node2 ~]# scp -r root@ :/var/backup/last_full/* /var/lib/mysql/ [root@node2 ~]# chown -R mysql:mysql /var/lib/mysql [root@node2 ~]# yum install Percona-Server-server-56 [root@node2 ~]# service mysql start [root@node2 ~]# nano ~/.my.cnf 6.4 Configure Replication Add the necessary permissions to the master and retrieve the binlog position:

9 6.5 Start Replication 9/12 node1 mysql> GRANT REPLICATION SLAVE ON *.* TO % IDENTIFIED BY slaveme ; node1 mysql> exit On the slave, configure replication: # cat /var/lib/mysql/xtrabackup_binlog_info node2 mysql> SET GLOBAL gtid_purged= [GTID] ; node2 mysql> CHANGE MASTER TO master_host = ' ', master_user = 'repl', master_password = 'slaveme', MASTER_AUTO_POSITION=1; 6.5 Start Replication Start the slave: node2 mysql> START SLAVE; node2 mysql> SHOW SLAVE STATUS\G Edit some rows and verify the master's status: node1 mysql> DELETE FROM rental LIMIT 10; node1 mysql> SHOW MASTER STATUS\G Verify that the same GTID is being displayed on the slave: node2 mysql> SHOW SLAVE STATUS\G 6.6 Administrative Commands Some administrative commands for archiving/removing the binary logs: node1 mysql> PURGE MASTER LOGS TO 'node1-bin '; node1 mysql> PURGE MASTER LOGS BEFORE ' :00:00'; node1 mysql> RESET MASTER; Removing the Slave configuration and files from node2: node2 mysql> RESET SLAVE; 6.7 Diagnostics Commands On the Master:

10 6.8 Breaking Fixing Replication 10/12 node1 mysql> SHOW MASTER STATUS\G node1 mysql> SHOW PROCESSLIST\G node1 mysql> SHOW SLAVE HOSTS\G node1 mysql> SHOW BINLOG EVENTS\G On the Slave: node2 mysql> SHOW SLAVE STATUS\G node2 mysql> SHOW PROCESSLIST\G 6.8 Breaking & Fixing Replication Create an inconsistency by creating a table, first on the slave, then on the master: node2 mysql> CREATE TABLE sakila.pluk ( id int auto_increment primary key, name varchar(20) ); node1 mysql> CREATE TABLE sakila.pluk ( id int auto_increment primary key, name varchar(20) ); Verify replication status on the slave: node2 mysql> SHOW SLAVE STATUS\G "Fix" replication by skipping the record on the Slave. To know which record to skip, we need to look at the slave status to retrieve the correct GTID by comparing Retrieved_Gtid_Set with Executed_Gtid_Set: node2 mysql> STOP SLAVE; node2 mysql> SET GTID_NEXT="[GTIDPOSITION]"; node2 mysql> BEGIN; COMMIT; node2 mysql> SET GTID_NEXT="AUTOMATIC"; node2 mysql> START SLAVE; node2 mysql> SHOW SLAVE STATUS\G 6.9 Inconsistencies Delete some data from the slave to make it inconsistent with the master: node2 mysql> DELETE FROM sakila.rental LIMIT 10; To be able to use pt-table-checksum, create the following user on the master:

11 7 Schema Changes 11/12 node1 mysql> grant all privileges on *.* to identified by 'password'; To track down the inconsistencies on the master, use pt-table-checksum on node1: # pt-table-checksum h=localhost,u=pttc,p=password --no-check-binlog-format # pt-table-checksum h=localhost,u=pttc,p=password --no-check-binlog-format --replicate-check-only 7 Schema Changes 7.1 Online Schema Changes Insert a value into the actor table on node1 and add an index: node1 mysql> use sakila; node1 mysql> INSERT INTO sakila.actor (first_name, last_name) VALUES ('let','watdim0ooootjeen'); node1 mysql> ALTER TABLE sakila.actor ADD INDEX new_idx (first_name, last_name); Using hot alter tables in MySQL 5.6: node1 mysql> ALTER TABLE sakila.actor DROP INDEX new_idx, LOCK=NONE;

Backup and Recovery Strategy

Backup 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 information

MySQL Backup solutions. Liz van Dijk Zarafa Summer Camp - June 2012

MySQL 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 information

MySQL 5.6 New Replication Features

MySQL 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 information

Setting up Multi-Source Replication in MariaDB 10.0

Setting 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 information

Bitnami MySQL for Huawei Enterprise Cloud

Bitnami MySQL for Huawei Enterprise Cloud Bitnami MySQL for Huawei Enterprise Cloud Description MySQL is a fast, reliable, scalable, and easy to use open-source relational database system. MySQL Server is intended for mission-critical, heavy-load

More information

Xtrabackup in a nutshell

Xtrabackup in a nutshell Xtrabackup in a nutshell FromDual Annual company meeting 2013, Greece Abdel-Mawla Gharieb MySQL Support Engineer at FromDual GmbH abdel-mawla.gharieb@fromdual.com 1 / 26 About FromDual GmbH (LLC) FromDual

More information

Percona Xtrabackup: Hot Backup Solution for MySQL

Percona Xtrabackup: Hot Backup Solution for MySQL Percona Xtrabackup: Hot Backup Solution for MySQL Martin Arrieta February 2013 Agenda 1.Why backups? 2.Different options 3.Why Percona Xtrabackup 4.Installation 5.How it works? 6.Backup examples 7.Backup

More information

Bitnami MariaDB for Huawei Enterprise Cloud

Bitnami MariaDB for Huawei Enterprise Cloud Bitnami MariaDB for Huawei Enterprise Cloud First steps with the Bitnami MariaDB Stack Welcome to your new Bitnami application running on Huawei Enterprise Cloud! Here are a few questions (and answers!)

More information

MySQL 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 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 information

Introduction To MySQL Replication. Kenny Gryp Percona Live Washington DC /

Introduction 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 information

MySQL InnoDB Cluster & Group Replication in a Nutshell: Hands-On Tutorial

MySQL InnoDB Cluster & Group Replication in a Nutshell: Hands-On Tutorial 1 / 152 2 / 152 3 / 152 MySQL InnoDB Cluster & Group Replication in a Nutshell: Hands-On Tutorial Percona Live Europe 2017 - Dublin Frédéric Descamps - MySQL Community Manager - Oracle Kenny Gryp - MySQL

More information

MySQL Group Replication in a nutshell

MySQL Group Replication in a nutshell 1 / 192 2 / 192 MySQL Group Replication in a nutshell MySQL InnoDB Cluster: hands-on tutorial Percona Live Amsterdam - October 2016 Frédéric Descamps - MySQL Community Manager - Oracle Kenny Gryp - MySQL

More information

MySQL Point-in-Time Recovery like a Rockstar

MySQL 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 information

MySQL Security, Privileges & User Management Kenny Gryp Percona Live Washington DC /

MySQL 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 information

ITS. MySQL for Database Administrators (40 Hours) (Exam code 1z0-883) (OCP My SQL DBA)

ITS. 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 information

10 Percona Toolkit tools every MySQL DBA should know about

10 Percona Toolkit tools every MySQL DBA should know about 10 Percona Toolkit tools every MySQL DBA should know about Fernando Ipar - Percona Webinar Dec/2012 2 About me Fernando Ipar Consultant @ Percona fernando.ipar@percona.com 3 About this presentation Introductory

More information

XtraBackup FOSDEM Kenny Gryp. Principal Percona

XtraBackup FOSDEM Kenny Gryp. Principal Percona XtraBackup Kenny Gryp kenny.gryp@percona.com Principal Consultant @ Percona FOSDEM 2011 1 Percona MySQL/LAMP Consulting Support & Maintenance Percona Server (XtraDB) Percona XtraBackup InnoDB Recovery

More information

Zend Server Cluster Manager 5.5 Beta. Installation Guide. By Zend Technologies.

Zend Server Cluster Manager 5.5 Beta. Installation Guide. By Zend Technologies. Zend Server Cluster Manager 5.5 Beta Installation Guide By Zend Technologies www.zend.com Abstract This is the Installation Guide for Zend Server Cluster Manager Version 5.5 Beta. The information in this

More information

MySQL Utilities, part 1. Sheeri Cabral. Senior DB Admin/Architect,

MySQL 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 information

Opera&onal DBA In A Nutshell. Tom De Cooman Dimitri Vanoverbeke

Opera&onal DBA In A Nutshell. Tom De Cooman Dimitri Vanoverbeke Opera&onal DBA In A Nutshell Tom De Cooman Dimitri Vanoverbeke Introduc&on 2 Welcome! Who are we? Fans of devopsreacaons.tumblr.com What will

More information

Support for replication is built into MySQL. There are no special add-ins or applications to install.

Support 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 information

Oracle Exam 1z0-883 MySQL 5.6 Database Administrator Version: 8.0 [ Total Questions: 100 ]

Oracle 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 information

How to set up and verify automated MySQL backups in 15 minutes

How to set up and verify automated MySQL backups in 15 minutes ZRM Enterprise for MySQL Backup White Paper How to set up and verify automated MySQL backups in 15 minutes By Jacob Shucart 465 S. Mathilda Ave., Suite 300 Sunnyvale, CA 94086 t: (888) 496-2632 zsales@zmanda.com

More information

MySQL Multi-Source Replication

MySQL 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 information

MySQL Performance Troubleshooting

MySQL Performance Troubleshooting MySQL Performance Troubleshooting Best Practices Francisco Bordenave - Architect, Percona Agenda Who am I? Introduction Identifying the source of problem We know where the problem is, now what? Best practices

More information

Linux Network Administration. MySQL COMP1071 Summer 2017

Linux Network Administration. MySQL COMP1071 Summer 2017 Linux Network Administration MySQL COMP1071 Summer 2017 Databases Database is a term used to describe a collection of structured data A database software package contains the tools used to store, access,

More information

Database Backup and Recovery Best Practices. Manjot Singh, Data & Infrastrustructure Architect

Database 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

How to recover a lost administrator password?

How to recover a lost administrator password? How to recover a lost administrator password? This article describes what to do if you forget the administrator password or have misplaced the very root-user. The article is intended primarily for beginners,

More information

CO MySQL for Database Administrators

CO 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 information

What s new in Percona Xtradb Cluster 5.6. Jay Janssen Lead Consultant February 5th, 2014

What s new in Percona Xtradb Cluster 5.6. Jay Janssen Lead Consultant February 5th, 2014 What s new in Percona Xtradb Cluster 5.6 Jay Janssen Lead Consultant February 5th, 2014 Overview PXC 5.6 is the aggregation of Percona Server 5.6 Codership MySQL 5.6 patches Galera 3.x Agenda Major new

More information

What's new in MySQL 5.5 and 5.6 replication

What'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 information

Oracle 1Z MySQL 5.6 Database Administrator. Download Full Version :

Oracle 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 information

Consistent 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 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 information

Installation and Configuration Guide (for Linux)

Installation and Configuration Guide (for Linux) v5.2 MySQL 5.5 Installation and Configuration Guide (for Linux) Abstract This document is intended to be the installation and configuration guide for MySQL in addition to the procedures for upgrading,

More information

Getting Started with MySQL

Getting Started with MySQL A P P E N D I X B Getting Started with MySQL M ysql is probably the most popular open source database. It is available for Linux and you can download and install it on your Linux machine. The package is

More information

Creating 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, 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 information

MySQL Test Framework for Troubleshooting. February, 04, 2018 Sveta Smirnova

MySQL 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 information

MySQL for Database Administrators Ed 3.1

MySQL 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 information

MySQL InnoDB Cluster & Group Replication in a Nutshell: Hands-On Tutorial

MySQL InnoDB Cluster & Group Replication in a Nutshell: Hands-On Tutorial 1 / 284 2 / 284 3 / 284 MySQL InnoDB Cluster & Group Replication in a Nutshell: Hands-On Tutorial Percona Live 2017 - Santa Clara Frédéric Descamps - MySQL Community Manager - Oracle Kenny Gryp - MySQL

More information

Zend Server Cluster Manager 5.x Installation Guide

Zend Server Cluster Manager 5.x Installation Guide Zend Server Cluster Manager 5.x Installation Guide By Zend Technologies www.zend.com This is the Installation Guide for Server Cluster Manager, Version 5.0. The information in this document is subject

More information

1Z Oracle. MySQL 5 Database Administrator Certified Professional Part I

1Z 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 information

MySQL for Database Administrators Ed 4

MySQL 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 information

High Availability Failover. Version 1.0

High Availability Failover. Version 1.0 High Availability Failover Version 1.0 CONTENTS High Availability Failover High Availability Failover (Active/Active) 2 Prerequisites 2 STEP 1: DB Replication Server Setup 2 STEP 2: Configure the MySQL

More information

Backup & Restore. Maximiliano Bubenick Sr Remote DBA

Backup & 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 information

1Copyright 2012, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12

1Copyright 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 information

MySQL Real Time Single DB Replication & SSL Encryption on CENTOS 6.3

MySQL 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 information

Setting Up Master-Master Replication With MySQL 5 On Debian Etch

Setting 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 information

1z0-888.exam.43q.

1z0-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 information

Optimizing BOINC project databases

Optimizing 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 information

Upgrade Guide Version 7.2

Upgrade Guide Version 7.2 Upgrade Guide Version 7.2 Copyright IBM Corporation 2017 1 Resiliency Orchestration Upgrade Guide DISCLAIMER IBM believes that the information in this publication is accurate as of its publication date.

More information

MySQL Replication. Rick Golba and Stephane Combaudon April 15, 2015

MySQL 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 information

HP Open Source Middleware Stacks Blueprint:

HP 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 information

'information_schema' When Using Lock Tables

'information_schema' When Using Lock Tables Access Denied For User To Database 'information_schema' When Using Lock Tables In this tutorial, we will show you how to import a MySQL Database using phpmyadmin. to database 'information_schema' when

More information

Zend Server Cluster Manager 5.6 Installation Guide

Zend Server Cluster Manager 5.6 Installation Guide Zend Server Cluster Manager 5.6 Installation Guide By Zend Technologies www.zend.com Abstract This is the Installation Guide for Zend Server Cluster Manager Version 5.6. The information in this document

More information

MySQL 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) 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 information

Tips 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 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 information

MariaDB Enterprise Cluster. MariaDB Training

MariaDB Enterprise Cluster. MariaDB Training MariaDB Enterprise Cluster MariaDB Training Introduction MariaDB Enterprise Cluster Introduction State Transfer Schema Changes Load Balancing Architecture Installation Caveats Multi-Master Conflicts Back-Ups

More information

2) One of the most common question clients asks is HOW the Replication works?

2) 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 information

Why we re excited about MySQL 8

Why we re excited about MySQL 8 Why we re excited about MySQL 8 Practical Look for Devs and Ops Peter Zaitsev, CEO, Percona February 4nd, 2018 FOSDEM 1 In the Presentation Practical view on MySQL 8 Exciting things for Devs Exciting things

More information

FUJITSU Cloud Service S5 Installation and Configuration of MySQL on a CentOS VM

FUJITSU Cloud Service S5 Installation and Configuration of MySQL on a CentOS VM FUJITSU Cloud Service S5 Installation and Configuration of MySQL on a CentOS VM This guide details the steps required to install and configure MySQL on a CentOS VM Introduction The FUJITSU Cloud Service

More information

Diagnosing Failures in MySQL Replication

Diagnosing 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 information

A Support Engineer Walkthrough on pt-stalk

A Support Engineer Walkthrough on pt-stalk A Support Engineer Walkthrough on pt-stalk Marcos Albe Principal Support Engineer - Percona Marcelo Altmann Senior Support Engineer - Percona Thank You Sponsors! 2 SAVE THE DATE! April 23-25, 2018 Santa

More information

v7.0 HP Intelligent Management Center MySQL 5.6 Installation and Configuration Guide (for Linux)

v7.0 HP Intelligent Management Center MySQL 5.6 Installation and Configuration Guide (for Linux) v7.0 HP Intelligent Management Center MySQL 5.6 Installation and Configuration Guide (for Linux) Abstract This document is intended to be the installation and configuration guide for MySQL in addition

More information

Very often people not expert ask me some simple detailed directions on how to install MySQL from fresh.

Very often people not expert ask me some simple detailed directions on how to install MySQL from fresh. Very often people not expert ask me some simple detailed directions on how to install MySQL from fresh. The following is a simple one that if you will follow step by step should give you a MySQL working

More information

mysql Certified MySQL 5.0 DBA Part I

mysql Certified MySQL 5.0 DBA Part I mysql 005-002 Certified MySQL 5.0 DBA Part I http://killexams.com/exam-detail/005-002 QUESTION: 116 Which of the following correctly defines the general difference between a read lock and a write lock?

More information

Migrating to XtraDB Cluster 2014 Edition

Migrating to XtraDB Cluster 2014 Edition Migrating to XtraDB Cluster 2014 Edition Jay Janssen Managing Consultant Overview of XtraDB Cluster Percona Server + Galera Cluster of Innodb nodes Readable and Writable Virtually Synchronous All data

More information

Database Systems. phpmyadmin Tutorial

Database 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 information

HPE Intelligent Management Center

HPE Intelligent Management Center HPE Intelligent Management Center MySQL 5.5 Installation and Configuration Guide (for Linux) Abstract This document provides installation and configuration information for MySQL. It includes the procedures

More information

Basics: Backup, Recovery, and Provisioning with a Continuent Tungsten Cluster

Basics: 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 information

How to get MySQL to fail

How 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 information

Dell Protected Workspace Management

Dell Protected Workspace Management Dell Protected Workspace Management Upgrade Guide Dell Protected Workspace Management v4.1 Created and Maintained by Invincea, Inc. Proprietary For Customer Use Only Dell Protected Workspace Management

More information

Preventing and Resolving MySQL Downtime. Jervin Real, Michael Coburn Percona

Preventing and Resolving MySQL Downtime. Jervin Real, Michael Coburn Percona Preventing and Resolving MySQL Downtime Jervin Real, Michael Coburn Percona About Us Jervin Real, Technical Services Manager Engineer Engineering Engineers APAC Michael Coburn, Principal Technical Account

More information

Effective Testing for Live Applications. March, 29, 2018 Sveta Smirnova

Effective 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 information

Kaivos User Guide Getting a database account 2

Kaivos User Guide Getting a database account 2 Contents Kaivos User Guide 1 1. Getting a database account 2 2. MySQL client programs at CSC 2 2.1 Connecting your database..................................... 2 2.2 Setting default values for MySQL connection..........................

More information

A Support Engineer Walkthrough on ptstalk

A Support Engineer Walkthrough on ptstalk A Support Engineer Walkthrough on ptstalk Marcos Albe Principal Support Engineer - Percona 1 Who is Speaking? Marcos Albé - Principal Support Engineer @ Percona - 7 years here - Focus on performance and

More information

Practical Performance Tuning using Digested SQL Logs. Bob Burgess Salesforce Marketing Cloud

Practical Performance Tuning using Digested SQL Logs. Bob Burgess Salesforce Marketing Cloud Practical Performance Tuning using Digested SQL Logs Bob Burgess Salesforce Marketing Cloud Who?! Database Architect! Salesforce Marketing Cloud (Radian6 & Buddy Media stack) Why?! I can t be the only

More information

Including Dynamic Images in Your Report

Including Dynamic Images in Your Report Including Dynamic Images in Your Report Purpose This tutorial shows you how to include dynamic images in your report. Time to Complete Approximately 15 minutes Topics This tutorial covers the following

More information

Migrating 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 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 information

Open Source Database Performance Optimization and Monitoring with PMM. Fernando Laudares, Vinicius Grippa, Michael Coburn Percona

Open Source Database Performance Optimization and Monitoring with PMM. Fernando Laudares, Vinicius Grippa, Michael Coburn Percona Open Source Database Performance Optimization and Monitoring with PMM Fernando Laudares, Vinicius Grippa, Michael Coburn Percona Fernando Laudares 2 Vinicius Grippa 3 Michael Coburn Product Manager for

More information

How to become a MySQL DBA

How to become a MySQL DBA How to become a MySQL DBA Krzysztof Książek - Senior Support Engineer Johan Andersson - CTO 1 Introduction! Based on our How to become a MySQL DBA blog series and webinars by Krzysztof Książek! Best practices

More information

Offloading MySQL to Remote Server

Offloading MySQL to Remote Server Purpose This document is meant to show a step-by-step guide for offloading the MySQL services from the central server to an external, remote server. Target Audience This document is intended for use by

More information

MySQL Database Administrator Training NIIT, Gurgaon India 31 August-10 September 2015

MySQL 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 information

Apache MySQL PHP PHPAdmin Install

Apache MySQL PHP PHPAdmin Install Apache MySQL PHP PHPAdmin Install Installing Apache 2 To only install the apache2 webserver, use any method to install apache2 It requires a restart for it to work sudo /etc/init.d/apache2 restart Checking

More information

Quest NetVault Backup Plug-in for MySQL

Quest NetVault Backup Plug-in for MySQL Quest NetVault Backup Plug-in for MySQL version 4.3 User s Guide MYG-101-4.3-EN-01 04/13/13 2013 Quest Software, Inc. ALL RIGHTS RESERVED. This guide contains proprietary information protected by copyright.

More information

MySQL Replication, the Community Sceptic Roundup. Giuseppe Maxia Quality Assurance Architect at

MySQL 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 information

SPECCHIO Administrators

SPECCHIO Administrators SPECCHIO Page 1 SPECCHIO Administration Guide Version: 2.2 Date: 31.05.2012 Status: Valid Author: A. Hueni, Remote Sensing Laboratories, University of Zurich File: \SPECCHIO AdminGuide_V2.2.docx Pages:

More information

Writing High Performance SQL Statements. Tim Sharp July 14, 2014

Writing High Performance SQL Statements. Tim Sharp July 14, 2014 Writing High Performance SQL Statements Tim Sharp July 14, 2014 Introduction Tim Sharp Technical Account Manager Percona since 2013 16 years working with Databases Optimum SQL Performance Schema Indices

More information

MySQL High Availability Solutions. Alex Poritskiy Percona

MySQL 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 information

Cisco Prime Network Registrar IPAM MySQL Database Replication Guide

Cisco 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 information

Monitoring MySQL Performance with Percona Monitoring and Management

Monitoring MySQL Performance with Percona Monitoring and Management Monitoring MySQL Performance with Percona Monitoring and Management Santa Clara, California April 23th 25th, 2018 MIchael Coburn, Product Manager Your Presenter Product Manager for PMM (also Percona Toolkit

More information

CSC 3300 Homework 3 Security & Languages

CSC 3300 Homework 3 Security & Languages CSC 3300 Homework 3 Security & Languages Description Homework 3 has two parts. Part 1 is an exercise in database security. In particular, Part 1 has practice problems in which your will add constraints

More information

Online Schema Changes for Maximizing Uptime. David Turner - Dropbox Ben Black - Tango

Online Schema Changes for Maximizing Uptime. David Turner - Dropbox Ben Black - Tango Online Schema Changes for Maximizing Uptime David Turner - Dropbox Ben Black - Tango About us Dropbox Tango Dropbox is a free service that lets you bring your photos, docs, and videos anywhere and share

More information

Sun Microsystems. MySQL Backup and Security Best practices on how to run MySQL on Linux in a secure way. Lenz Grimmer

Sun 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 information

ProxySQL - GTID Consistent Reads. Adaptive query routing based on GTID tracking

ProxySQL - GTID Consistent Reads. Adaptive query routing based on GTID tracking ProxySQL - GTID Consistent Reads Adaptive query routing based on GTID tracking Introduction Rene Cannao Founder of ProxySQL MySQL DBA Introduction Nick Vyzas ProxySQL Committer MySQL DBA What is ProxySQL?

More information

MySQL at Scale at Square

MySQL at Scale at Square MySQL at Scale at Square Bill Karwin, Square Inc. October, 2018 1 Square An honest financial network for everyone Global: USA, Canada, UK, Japan, Australia Payment transaction data stored in MySQL We are

More information

FromDual Annual Company Meeting

FromDual 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 information

Percona XtraDB Cluster

Percona 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 information

Running MySQL on AWS. Michael Coburn Wednesday, April 15th, 2015

Running MySQL on AWS. Michael Coburn Wednesday, April 15th, 2015 Running MySQL on AWS Michael Coburn Wednesday, April 15th, 2015 Who am I? 2 Senior Architect with Percona 3 years on Friday! Canadian but I now live in Costa Rica I see 3-10 different customer environments

More information

Windows Backup Server Installation

Windows Backup Server Installation Windows Backup Server Installation VEMBU TECHNOLOGIES www.vembu.com TRUSTED BY OVER 60,000 BUSINESSES Windows Backup Server Installation Vembu BDR Server is currently supported for below versions of Windows

More information

Percona Software & Services Update

Percona Software & Services Update Percona Software & Services Update Q2 2017 Peter Zaitsev,CEO Percona Technical Webinars May 4, 2017 Why? Talking to Many Users and Customers Getting What have you been up to? Question This is a way to

More information