SlideShare a Scribd company logo
MySQL Shell for Database
Engineers
Karthik P R
CEO, Mydbops
December 12, 2020
MinervaDB Athena 2020
Interested in Open Source Database technologies
11 Years of Experience with MySQL
Ex-Yahoo!
Tech Speaker/ Blogger 
CEO Mydbops
Karthik P R 
About Me
Database
Consulting
Services
Managed
Database
Services
Focuses on Top Opensource database MySQL,MariaDB,
MongoDB and PostgreSQL ON Premises and Cloud
Mydbops Services
MySQL Shell Utillities
MySQL Shell an Overview
Agenda
MySQL Shell for Database Engineers
Database Engineer
Database Administrator
Database Reliability Engineers
Cloud DBA
Devops Engineer
SRE's
Audience
Command Line based tool
Advanced MySQL Client
Python based Framework
Act as a Code editor
Support for API's
Support MySQL / MariaDB / Percona Server / MySQL on RDS
Open Source tool kit
MySQL Shell an Overview
Overview to MySQL Shell
Note : Support Linux / Windows / Mac OS
MySQL Shell ease Database Operations
Admin API's for Database HA and Scalability
Custom Extensions
Inbuilt Utilities
X Protocol Support
MySQL Shell Overview
MySQL Shell Overview
Language Support
JS SQL PYTHON
Note : Even it Support OS command from 8.0.18
Additional features
Supports
Interactive executions
Batch mode executions
Auto Completion
Support Multiple Output Formats
MySQL Shell Overview
MySQL Shell Utilities
Inbuilt Utilities makes DBA's and DBE's life better
Upgrade Checker
Json Import Utility
Table export Utility
Parallel Table Import Utility
Instance / Schema / Table Dump Utility
Dump loading Utility
MySQL Shell Utilities
Upgrade Checker
Ease the MySQL Upgrade to latest MySQL 8 from lower major/minor
versions.
MySQL Shell Utilities
Parallel import / Table export
Makes the CSV backup and loading faster.
util.importTable() & util.exportTable()
Instance /Schema/ table Dump
Makes the logical backup faster than ever.
util.dumpInstance(), util.dumpschemas(), util.loadDump()
MySQL Shell Utilities
Dump Loading Utility
Makes the recovery of logical backup,
blazing fast even for a single table.
Supports GTID , Histogram , OCI import
util.loadDump()
MySQL Shell Utilities
MySQL Shell For Database Engineers
MySQL Shell For Database Engineers
MySQL Shell For Database Engineers
MySQL Shell can support Databases on-premises and on-cloud.
They can support complex DB Architecture.
Deploy HA Solutions with MySQL Router
Deploying and Managing InnoDB Clusters
Creating Async slaves ( InnoDB Replica Set )
Playing with MySQL Sandboxes
MySQL Shell For Database Engineers
[root@clientServer mysqlsh]# mysqlsh -f setup_innodb_cluster.js
InnoDB cluster set up
==================================
Setting up a Percona Server for MySQL - InnoDB cluster.
Password for the MySQL root account: **********
Number of data nodes: 3
Hostname for node1: clusternode1
Hostname for node2: clusternode2
Hostname for node3: clusternode3
Code : https://github.com/riveraja/scripts/blob/master/setup_innodb_cluster.js
Source : https://www.percona.com/blog/2020/05/05/setting-up-an-innodb-cluster-with-a-few-
lines-of-code/
The InnoDB Cluster can be deployed by a few lines ( customised Script )
MySQL Shell For Database Engineers
[root@clientServer mysqlsh]# mysqlsh -f setup_innodb_replicaset.js
InnoDB ReplicaSet set up
==================================
Setting up a MySQL - InnoDB Replicaset.
Password for the MySQL root account: **********
Please enter number of data nodes:2
Code : https://github.com/riveraja/scripts/blob/master/setup_innodb_replicaset.js
They just need the MySQL to be installed , MySQL Shell will rebuild them using CLONE Plugin
and configure the ASYNC GTID based replication
The InnoDB Replicaset can be deployed by a few lines too( customised Script )
MySQL Shell For Database Engineers
Custom Shell Plugins.
The Custom shell Plugins ease the job further
Making the own utility for troubleshooting
Connect across multiple DB components ( Router / ProxySQL too )
Customising PFS and SYS schema Queries via Java Script / Python
MySQL Shell For Database Engineers
Custom Shell Plugins.
https://github.com/lefred/mysqlshell-plugins
To get started Lefred has custom Plugin and they are in Git.
These plugin helps in DB Operations and DB troubleshooting Realtime.
These plugin can be further extended based on needs.
MySQL Shell For Database Engineers
Custom Shell Plugins.
Collations
demo
InnoDB
InnoDB Cluster
Maintenance
ProxySQL
Router
Schema
Security
User
MySQL Shell For Database Engineers
Samples
Get the tables inside Innodb Buffer Pool
MySQL Shell For Database Engineers
Samples
Create a MySQL user with a Random password.
MySQL Shell For Database Engineers
Samples
Fetching the Fragmented Tables
Reach Us : Info@mydbops.com
Thank You

More Related Content

PDF
MySQL Database Architectures - InnoDB ReplicaSet & Cluster
PDF
MySQL Group Replication
PDF
InnoDb Vs NDB Cluster
PDF
FOSDEM 2022 MySQL Devroom: MySQL 8.0 - Logical Backups, Snapshots and Point-...
PPTX
Maxscale 소개 1.1.1
PDF
Reducing Risk When Upgrading MySQL
PDF
Oracle_Multitenant_19c_-_All_About_Pluggable_D.pdf
PDF
How to Manage Scale-Out Environments with MariaDB MaxScale
MySQL Database Architectures - InnoDB ReplicaSet & Cluster
MySQL Group Replication
InnoDb Vs NDB Cluster
FOSDEM 2022 MySQL Devroom: MySQL 8.0 - Logical Backups, Snapshots and Point-...
Maxscale 소개 1.1.1
Reducing Risk When Upgrading MySQL
Oracle_Multitenant_19c_-_All_About_Pluggable_D.pdf
How to Manage Scale-Out Environments with MariaDB MaxScale

What's hot (20)

PPTX
Running MariaDB in multiple data centers
PPTX
The Missing Manual for Leveled Compaction Strategy (Wei Deng & Ryan Svihla, D...
PDF
Percona Live 2022 - MySQL Shell for Visual Studio Code
PDF
Troubleshooting Tips and Tricks for Database 19c - Sangam 2019
PDF
MySQL InnoDB Cluster and Group Replication in a nutshell hands-on tutorial
PDF
ProxySQL High Avalability and Configuration Management Overview
PDF
Apache Sqoop Tutorial | Sqoop: Import & Export Data From MySQL To HDFS | Hado...
PDF
MySQL InnoDB Cluster HA Overview & Demo
PDF
MySQL Replication Performance in the Cloud
PDF
Oracle Drivers configuration for High Availability, is it a developer's job?
PDF
MySQL InnoDB Cluster - Advanced Configuration & Operations
PDF
MySQL Shell - the best DBA tool !
PDF
MySQL Replication
PDF
Wars of MySQL Cluster ( InnoDB Cluster VS Galera )
PDF
MySQL Database Architectures - 2020-10
PDF
MySQL Sharding: Tools and Best Practices for Horizontal Scaling
PDF
Oracle 12c PDB insights
PDF
MySQL InnoDB Cluster and NDB Cluster
PDF
Troubleshooting Tips and Tricks for Database 19c - EMEA Tour Oct 2019
PDF
MySQL InnoDB Cluster - New Features in 8.0 Releases - Best Practices
Running MariaDB in multiple data centers
The Missing Manual for Leveled Compaction Strategy (Wei Deng & Ryan Svihla, D...
Percona Live 2022 - MySQL Shell for Visual Studio Code
Troubleshooting Tips and Tricks for Database 19c - Sangam 2019
MySQL InnoDB Cluster and Group Replication in a nutshell hands-on tutorial
ProxySQL High Avalability and Configuration Management Overview
Apache Sqoop Tutorial | Sqoop: Import & Export Data From MySQL To HDFS | Hado...
MySQL InnoDB Cluster HA Overview & Demo
MySQL Replication Performance in the Cloud
Oracle Drivers configuration for High Availability, is it a developer's job?
MySQL InnoDB Cluster - Advanced Configuration & Operations
MySQL Shell - the best DBA tool !
MySQL Replication
Wars of MySQL Cluster ( InnoDB Cluster VS Galera )
MySQL Database Architectures - 2020-10
MySQL Sharding: Tools and Best Practices for Horizontal Scaling
Oracle 12c PDB insights
MySQL InnoDB Cluster and NDB Cluster
Troubleshooting Tips and Tricks for Database 19c - EMEA Tour Oct 2019
MySQL InnoDB Cluster - New Features in 8.0 Releases - Best Practices
Ad

Similar to MySQL Shell for Database Engineers (20)

PDF
MySQL-operator-for-InnoDB-Cluster - Kabilesh PR - Co-Founder, Mydbops
PDF
MySQL InnoDB Cluster and MySQL Group Replication @HKOSC 2017
PPTX
The roadmap for sql server 2019
PPT
Megha_Osi my sql productroadmap
PPTX
Mysql 8 vs Mariadb 10.4 Webinar 2020 Feb
PDF
Less passwords, more security: unix socket authentication and other MariaDB h...
ODP
The mysqlnd replication and load balancing plugin
PDF
MySQL Transformation Case Study: 80% Cost Savings & Uninterrupted Availabilit...
PPTX
Experience sql server on l inux and docker
PPT
How to Contribute Code to MySQL?
PDF
PuppetConf 2016 Customer Keynote: Cloud, Containers & the Impact on IT - Jeff...
PDF
MySQL on Docker and Kubernetes
ODP
HTTP, JSON, JavaScript, Map&Reduce built-in to MySQL
PPTX
Discovery Day 2019 Sofia - Big data clusters
PDF
My sql crashcourse_intro_kdl
PPTX
Brk2051 sql server on linux and docker
PDF
MySQL For Oracle DBA's and Developers
PDF
MySQL User Group NL - MySQL 8
PDF
Squeak DBX
PPTX
Tech-Spark: SQL Server on Linux
MySQL-operator-for-InnoDB-Cluster - Kabilesh PR - Co-Founder, Mydbops
MySQL InnoDB Cluster and MySQL Group Replication @HKOSC 2017
The roadmap for sql server 2019
Megha_Osi my sql productroadmap
Mysql 8 vs Mariadb 10.4 Webinar 2020 Feb
Less passwords, more security: unix socket authentication and other MariaDB h...
The mysqlnd replication and load balancing plugin
MySQL Transformation Case Study: 80% Cost Savings & Uninterrupted Availabilit...
Experience sql server on l inux and docker
How to Contribute Code to MySQL?
PuppetConf 2016 Customer Keynote: Cloud, Containers & the Impact on IT - Jeff...
MySQL on Docker and Kubernetes
HTTP, JSON, JavaScript, Map&Reduce built-in to MySQL
Discovery Day 2019 Sofia - Big data clusters
My sql crashcourse_intro_kdl
Brk2051 sql server on linux and docker
MySQL For Oracle DBA's and Developers
MySQL User Group NL - MySQL 8
Squeak DBX
Tech-Spark: SQL Server on Linux
Ad

More from Mydbops (20)

PDF
Scaling TiDB for Large-Scale Application
PDF
AWS MySQL Showdown - RDS vs RDS Multi AZ vs Aurora vs Serverless - Mydbops...
PDF
Mastering Vector Search with MongoDB Atlas - Manosh Malai - Mydbops MyWebinar 39
PDF
Migration Journey To TiDB - Kabilesh PR - Mydbops MyWebinar 38
PDF
AWS Blue Green Deployment for Databases - Mydbops
PDF
What's New In MySQL 8.4 LTS Mydbops MyWebinar Edition 36
PDF
What's New in PostgreSQL 17? - Mydbops MyWebinar Edition 35
PDF
What's New in MongoDB 8.0 - Mydbops MyWebinar Edition 34
PDF
Scaling Connections in PostgreSQL Postgres Bangalore(PGBLR) Meetup-2 - Mydbops
PDF
Read/Write Splitting using MySQL Router - Mydbops Meetup16
PDF
TiDB - From Data to Discovery: Exploring the Intersection of Distributed Dat...
PDF
MySQL InnoDB Storage Engine: Deep Dive - Mydbops
PDF
Demystifying Real time Analytics with TiDB
PDF
Must Know Postgres Extension for DBA and Developer during Migration
PDF
Efficient MySQL Indexing and what's new in MySQL Explain
PDF
Scale your database traffic with Read & Write split using MySQL Router
PDF
PostgreSQL Schema Changes with pg-osc - Mydbops @ PGConf India 2024
PDF
Choosing the Right Database: Exploring MySQL Alternatives for Modern Applicat...
PDF
Mastering Aurora PostgreSQL Clusters for Disaster Recovery
PDF
Navigating Transactions: ACID Complexity in Modern Databases- Mydbops Open So...
Scaling TiDB for Large-Scale Application
AWS MySQL Showdown - RDS vs RDS Multi AZ vs Aurora vs Serverless - Mydbops...
Mastering Vector Search with MongoDB Atlas - Manosh Malai - Mydbops MyWebinar 39
Migration Journey To TiDB - Kabilesh PR - Mydbops MyWebinar 38
AWS Blue Green Deployment for Databases - Mydbops
What's New In MySQL 8.4 LTS Mydbops MyWebinar Edition 36
What's New in PostgreSQL 17? - Mydbops MyWebinar Edition 35
What's New in MongoDB 8.0 - Mydbops MyWebinar Edition 34
Scaling Connections in PostgreSQL Postgres Bangalore(PGBLR) Meetup-2 - Mydbops
Read/Write Splitting using MySQL Router - Mydbops Meetup16
TiDB - From Data to Discovery: Exploring the Intersection of Distributed Dat...
MySQL InnoDB Storage Engine: Deep Dive - Mydbops
Demystifying Real time Analytics with TiDB
Must Know Postgres Extension for DBA and Developer during Migration
Efficient MySQL Indexing and what's new in MySQL Explain
Scale your database traffic with Read & Write split using MySQL Router
PostgreSQL Schema Changes with pg-osc - Mydbops @ PGConf India 2024
Choosing the Right Database: Exploring MySQL Alternatives for Modern Applicat...
Mastering Aurora PostgreSQL Clusters for Disaster Recovery
Navigating Transactions: ACID Complexity in Modern Databases- Mydbops Open So...

Recently uploaded (20)

PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Spectral efficient network and resource selection model in 5G networks
DOCX
The AUB Centre for AI in Media Proposal.docx
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
Modernizing your data center with Dell and AMD
PDF
Empathic Computing: Creating Shared Understanding
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PPTX
A Presentation on Artificial Intelligence
PDF
Encapsulation theory and applications.pdf
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PPTX
Big Data Technologies - Introduction.pptx
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
PDF
Chapter 3 Spatial Domain Image Processing.pdf
Review of recent advances in non-invasive hemoglobin estimation
CIFDAQ's Market Insight: SEC Turns Pro Crypto
Dropbox Q2 2025 Financial Results & Investor Presentation
Spectral efficient network and resource selection model in 5G networks
The AUB Centre for AI in Media Proposal.docx
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Mobile App Security Testing_ A Comprehensive Guide.pdf
Modernizing your data center with Dell and AMD
Empathic Computing: Creating Shared Understanding
Advanced methodologies resolving dimensionality complications for autism neur...
A Presentation on Artificial Intelligence
Encapsulation theory and applications.pdf
The Rise and Fall of 3GPP – Time for a Sabbatical?
Big Data Technologies - Introduction.pptx
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Understanding_Digital_Forensics_Presentation.pptx
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Diabetes mellitus diagnosis method based random forest with bat algorithm
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
Chapter 3 Spatial Domain Image Processing.pdf

MySQL Shell for Database Engineers

  • 1. MySQL Shell for Database Engineers Karthik P R CEO, Mydbops December 12, 2020 MinervaDB Athena 2020
  • 2. Interested in Open Source Database technologies 11 Years of Experience with MySQL Ex-Yahoo! Tech Speaker/ Blogger  CEO Mydbops Karthik P R  About Me
  • 3. Database Consulting Services Managed Database Services Focuses on Top Opensource database MySQL,MariaDB, MongoDB and PostgreSQL ON Premises and Cloud Mydbops Services
  • 4. MySQL Shell Utillities MySQL Shell an Overview Agenda MySQL Shell for Database Engineers
  • 5. Database Engineer Database Administrator Database Reliability Engineers Cloud DBA Devops Engineer SRE's Audience
  • 6. Command Line based tool Advanced MySQL Client Python based Framework Act as a Code editor Support for API's Support MySQL / MariaDB / Percona Server / MySQL on RDS Open Source tool kit MySQL Shell an Overview
  • 8. Note : Support Linux / Windows / Mac OS MySQL Shell ease Database Operations Admin API's for Database HA and Scalability Custom Extensions Inbuilt Utilities X Protocol Support MySQL Shell Overview
  • 9. MySQL Shell Overview Language Support JS SQL PYTHON Note : Even it Support OS command from 8.0.18
  • 10. Additional features Supports Interactive executions Batch mode executions Auto Completion Support Multiple Output Formats MySQL Shell Overview
  • 12. Inbuilt Utilities makes DBA's and DBE's life better Upgrade Checker Json Import Utility Table export Utility Parallel Table Import Utility Instance / Schema / Table Dump Utility Dump loading Utility MySQL Shell Utilities
  • 13. Upgrade Checker Ease the MySQL Upgrade to latest MySQL 8 from lower major/minor versions. MySQL Shell Utilities
  • 14. Parallel import / Table export Makes the CSV backup and loading faster. util.importTable() & util.exportTable() Instance /Schema/ table Dump Makes the logical backup faster than ever. util.dumpInstance(), util.dumpschemas(), util.loadDump() MySQL Shell Utilities
  • 15. Dump Loading Utility Makes the recovery of logical backup, blazing fast even for a single table. Supports GTID , Histogram , OCI import util.loadDump() MySQL Shell Utilities
  • 16. MySQL Shell For Database Engineers
  • 17. MySQL Shell For Database Engineers
  • 18. MySQL Shell For Database Engineers MySQL Shell can support Databases on-premises and on-cloud. They can support complex DB Architecture. Deploy HA Solutions with MySQL Router Deploying and Managing InnoDB Clusters Creating Async slaves ( InnoDB Replica Set ) Playing with MySQL Sandboxes
  • 19. MySQL Shell For Database Engineers [root@clientServer mysqlsh]# mysqlsh -f setup_innodb_cluster.js InnoDB cluster set up ================================== Setting up a Percona Server for MySQL - InnoDB cluster. Password for the MySQL root account: ********** Number of data nodes: 3 Hostname for node1: clusternode1 Hostname for node2: clusternode2 Hostname for node3: clusternode3 Code : https://github.com/riveraja/scripts/blob/master/setup_innodb_cluster.js Source : https://www.percona.com/blog/2020/05/05/setting-up-an-innodb-cluster-with-a-few- lines-of-code/ The InnoDB Cluster can be deployed by a few lines ( customised Script )
  • 20. MySQL Shell For Database Engineers [root@clientServer mysqlsh]# mysqlsh -f setup_innodb_replicaset.js InnoDB ReplicaSet set up ================================== Setting up a MySQL - InnoDB Replicaset. Password for the MySQL root account: ********** Please enter number of data nodes:2 Code : https://github.com/riveraja/scripts/blob/master/setup_innodb_replicaset.js They just need the MySQL to be installed , MySQL Shell will rebuild them using CLONE Plugin and configure the ASYNC GTID based replication The InnoDB Replicaset can be deployed by a few lines too( customised Script )
  • 21. MySQL Shell For Database Engineers Custom Shell Plugins. The Custom shell Plugins ease the job further Making the own utility for troubleshooting Connect across multiple DB components ( Router / ProxySQL too ) Customising PFS and SYS schema Queries via Java Script / Python
  • 22. MySQL Shell For Database Engineers Custom Shell Plugins. https://github.com/lefred/mysqlshell-plugins To get started Lefred has custom Plugin and they are in Git. These plugin helps in DB Operations and DB troubleshooting Realtime. These plugin can be further extended based on needs.
  • 23. MySQL Shell For Database Engineers Custom Shell Plugins. Collations demo InnoDB InnoDB Cluster Maintenance ProxySQL Router Schema Security User
  • 24. MySQL Shell For Database Engineers Samples Get the tables inside Innodb Buffer Pool
  • 25. MySQL Shell For Database Engineers Samples Create a MySQL user with a Random password.
  • 26. MySQL Shell For Database Engineers Samples Fetching the Fragmented Tables
  • 27. Reach Us : Info@mydbops.com Thank You