SlideShare a Scribd company logo
1 of 27
Download to read offline
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

What's hot

What's hot (20)

MySQL For Oracle Developers
MySQL For Oracle DevelopersMySQL For Oracle Developers
MySQL For Oracle Developers
 
ProxySQL for MySQL
ProxySQL for MySQLProxySQL for MySQL
ProxySQL for MySQL
 
MySQL InnoDB Cluster - Group Replication
MySQL InnoDB Cluster - Group ReplicationMySQL InnoDB Cluster - Group Replication
MySQL InnoDB Cluster - Group Replication
 
Galera cluster for high availability
Galera cluster for high availability Galera cluster for high availability
Galera cluster for high availability
 
MySQL Database Architectures - InnoDB ReplicaSet & Cluster
MySQL Database Architectures - InnoDB ReplicaSet & ClusterMySQL Database Architectures - InnoDB ReplicaSet & Cluster
MySQL Database Architectures - InnoDB ReplicaSet & Cluster
 
MySQL Shell for DBAs
MySQL Shell for DBAsMySQL Shell for DBAs
MySQL Shell for DBAs
 
Load Balancing MySQL with HAProxy - Slides
Load Balancing MySQL with HAProxy - SlidesLoad Balancing MySQL with HAProxy - Slides
Load Balancing MySQL with HAProxy - Slides
 
MySQL_MariaDB-성능개선-202201.pptx
MySQL_MariaDB-성능개선-202201.pptxMySQL_MariaDB-성능개선-202201.pptx
MySQL_MariaDB-성능개선-202201.pptx
 
MySQL InnoDB Cluster - A complete High Availability solution for MySQL
MySQL InnoDB Cluster - A complete High Availability solution for MySQLMySQL InnoDB Cluster - A complete High Availability solution for MySQL
MySQL InnoDB Cluster - A complete High Availability solution for MySQL
 
MariaDB 마이그레이션 - 네오클로바
MariaDB 마이그레이션 - 네오클로바MariaDB 마이그레이션 - 네오클로바
MariaDB 마이그레이션 - 네오클로바
 
MySQL High Availability Solutions
MySQL High Availability SolutionsMySQL High Availability Solutions
MySQL High Availability Solutions
 
MySQL InnoDB Cluster - Advanced Configuration & Operations
MySQL InnoDB Cluster - Advanced Configuration & OperationsMySQL InnoDB Cluster - Advanced Configuration & Operations
MySQL InnoDB Cluster - Advanced Configuration & Operations
 
Introduction to Greenplum
Introduction to GreenplumIntroduction to Greenplum
Introduction to Greenplum
 
New features in ProxySQL 2.0 (updated to 2.0.9) by Rene Cannao (ProxySQL)
New features in ProxySQL 2.0 (updated to 2.0.9) by Rene Cannao (ProxySQL)New features in ProxySQL 2.0 (updated to 2.0.9) by Rene Cannao (ProxySQL)
New features in ProxySQL 2.0 (updated to 2.0.9) by Rene Cannao (ProxySQL)
 
MySQL_SQL_Tunning_v0.1.3.docx
MySQL_SQL_Tunning_v0.1.3.docxMySQL_SQL_Tunning_v0.1.3.docx
MySQL_SQL_Tunning_v0.1.3.docx
 
Intro ProxySQL
Intro ProxySQLIntro ProxySQL
Intro ProxySQL
 
Parallel Replication in MySQL and MariaDB
Parallel Replication in MySQL and MariaDBParallel Replication in MySQL and MariaDB
Parallel Replication in MySQL and MariaDB
 
The Proxy Wars - MySQL Router, ProxySQL, MariaDB MaxScale
The Proxy Wars - MySQL Router, ProxySQL, MariaDB MaxScaleThe Proxy Wars - MySQL Router, ProxySQL, MariaDB MaxScale
The Proxy Wars - MySQL Router, ProxySQL, MariaDB MaxScale
 
Percona server for MySQL 제품 소개
Percona server for MySQL 제품 소개Percona server for MySQL 제품 소개
Percona server for MySQL 제품 소개
 
MySQL InnoDB Cluster: High Availability Made Easy!
MySQL InnoDB Cluster: High Availability Made Easy!MySQL InnoDB Cluster: High Availability Made Easy!
MySQL InnoDB Cluster: High Availability Made Easy!
 

Similar to MySQL Shell for Database Engineers

Megha_Osi my sql productroadmap
Megha_Osi my sql productroadmapMegha_Osi my sql productroadmap
Megha_Osi my sql productroadmap
OpenSourceIndia
 

Similar to MySQL Shell for Database Engineers (20)

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

More from Mydbops

Efficient MySQL Indexing and what's new in MySQL Explain
Efficient MySQL Indexing and what's new in MySQL ExplainEfficient MySQL Indexing and what's new in MySQL Explain
Efficient MySQL Indexing and what's new in MySQL Explain
Mydbops
 

More from Mydbops (20)

Efficient MySQL Indexing and what's new in MySQL Explain
Efficient MySQL Indexing and what's new in MySQL ExplainEfficient MySQL Indexing and what's new in MySQL Explain
Efficient MySQL Indexing and what's new in MySQL Explain
 
Scale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterScale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL Router
 
PostgreSQL Schema Changes with pg-osc - Mydbops @ PGConf India 2024
PostgreSQL Schema Changes with pg-osc - Mydbops @ PGConf India 2024PostgreSQL Schema Changes with pg-osc - Mydbops @ PGConf India 2024
PostgreSQL Schema Changes with pg-osc - Mydbops @ PGConf India 2024
 
Choosing the Right Database: Exploring MySQL Alternatives for Modern Applicat...
Choosing the Right Database: Exploring MySQL Alternatives for Modern Applicat...Choosing the Right Database: Exploring MySQL Alternatives for Modern Applicat...
Choosing the Right Database: Exploring MySQL Alternatives for Modern Applicat...
 
Mastering Aurora PostgreSQL Clusters for Disaster Recovery
Mastering Aurora PostgreSQL Clusters for Disaster RecoveryMastering Aurora PostgreSQL Clusters for Disaster Recovery
Mastering Aurora PostgreSQL Clusters for Disaster Recovery
 
Navigating Transactions: ACID Complexity in Modern Databases- Mydbops Open So...
Navigating Transactions: ACID Complexity in Modern Databases- Mydbops Open So...Navigating Transactions: ACID Complexity in Modern Databases- Mydbops Open So...
Navigating Transactions: ACID Complexity in Modern Databases- Mydbops Open So...
 
AWS RDS in MySQL 2023 Vinoth Kanna @ Mydbops OpenSource Database Meetup 15
AWS RDS in MySQL 2023 Vinoth Kanna @ Mydbops OpenSource Database Meetup 15AWS RDS in MySQL 2023 Vinoth Kanna @ Mydbops OpenSource Database Meetup 15
AWS RDS in MySQL 2023 Vinoth Kanna @ Mydbops OpenSource Database Meetup 15
 
Data-at-scale-with-TIDB Mydbops Co-Founder Kabilesh PR at LSPE Event
Data-at-scale-with-TIDB Mydbops Co-Founder Kabilesh PR at LSPE EventData-at-scale-with-TIDB Mydbops Co-Founder Kabilesh PR at LSPE Event
Data-at-scale-with-TIDB Mydbops Co-Founder Kabilesh PR at LSPE Event
 
Scaling-MongoDB-with-Horizontal-and-Vertical-Sharding Mydbops Opensource Data...
Scaling-MongoDB-with-Horizontal-and-Vertical-Sharding Mydbops Opensource Data...Scaling-MongoDB-with-Horizontal-and-Vertical-Sharding Mydbops Opensource Data...
Scaling-MongoDB-with-Horizontal-and-Vertical-Sharding Mydbops Opensource Data...
 
Mastering MongoDB Atlas: Essentials of Diagnostics and Debugging in the Cloud...
Mastering MongoDB Atlas: Essentials of Diagnostics and Debugging in the Cloud...Mastering MongoDB Atlas: Essentials of Diagnostics and Debugging in the Cloud...
Mastering MongoDB Atlas: Essentials of Diagnostics and Debugging in the Cloud...
 
Data Organisation: Table Partitioning in PostgreSQL
Data Organisation: Table Partitioning in PostgreSQLData Organisation: Table Partitioning in PostgreSQL
Data Organisation: Table Partitioning in PostgreSQL
 
Navigating MongoDB's Queryable Encryption for Ultimate Security - Mydbops
Navigating MongoDB's Queryable Encryption for Ultimate Security - MydbopsNavigating MongoDB's Queryable Encryption for Ultimate Security - Mydbops
Navigating MongoDB's Queryable Encryption for Ultimate Security - Mydbops
 
Data High Availability With TIDB
Data High Availability With TIDBData High Availability With TIDB
Data High Availability With TIDB
 
Mastering Database Migration_ Native replication (8.0) to InnoDB Cluster (8.0...
Mastering Database Migration_ Native replication (8.0) to InnoDB Cluster (8.0...Mastering Database Migration_ Native replication (8.0) to InnoDB Cluster (8.0...
Mastering Database Migration_ Native replication (8.0) to InnoDB Cluster (8.0...
 
Enhancing Security of MySQL Connections using SSL certificates
Enhancing Security of MySQL Connections using SSL certificatesEnhancing Security of MySQL Connections using SSL certificates
Enhancing Security of MySQL Connections using SSL certificates
 
Exploring the Fundamentals of YugabyteDB - Mydbops
Exploring the Fundamentals of YugabyteDB - Mydbops Exploring the Fundamentals of YugabyteDB - Mydbops
Exploring the Fundamentals of YugabyteDB - Mydbops
 
Time series in MongoDB - Mydbops
Time series in MongoDB - Mydbops Time series in MongoDB - Mydbops
Time series in MongoDB - Mydbops
 
TiDB in a Nutshell - Power of Open-Source Distributed SQL Database - Mydbops
TiDB in a Nutshell - Power of Open-Source Distributed SQL Database - MydbopsTiDB in a Nutshell - Power of Open-Source Distributed SQL Database - Mydbops
TiDB in a Nutshell - Power of Open-Source Distributed SQL Database - Mydbops
 
Achieving High Availability in PostgreSQL
Achieving High Availability in PostgreSQLAchieving High Availability in PostgreSQL
Achieving High Availability in PostgreSQL
 
Scaling MongoDB with Horizontal and Vertical Sharding
Scaling MongoDB with Horizontal and Vertical Sharding Scaling MongoDB with Horizontal and Vertical Sharding
Scaling MongoDB with Horizontal and Vertical Sharding
 

Recently uploaded

Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 

Recently uploaded (20)

[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
Cyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdfCyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdf
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUKSpring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 

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