1. 5/30/2019 Percona Live Austin 2019 - MySQL Shell : the best DBA tool ?
file:///home/fred/ownCloud/Presentations/ORACLE/PerconaLive2019/MySQL Shell - Best DBA Tool/MySQL Day - MySQL Shell.html#1 1/55
1 / 55
2. 5/30/2019 Percona Live Austin 2019 - MySQL Shell : the best DBA tool ?
file:///home/fred/ownCloud/Presentations/ORACLE/PerconaLive2019/MySQL Shell - Best DBA Tool/MySQL Day - MySQL Shell.html#1 2/55
2 / 552 / 55
3. 5/30/2019 Percona Live Austin 2019 - MySQL Shell : the best DBA tool ?
file:///home/fred/ownCloud/Presentations/ORACLE/PerconaLive2019/MySQL Shell - Best DBA Tool/MySQL Day - MySQL Shell.html#1 3/55
Safe Harbor Statement
The following is intended to outline our general product direction. It is intended for information purpose only, and may not be
incorporated into any contract. It is not a commitment to deliver any material, code, or functionality, and should not be relied up in
making purchasing decisions. The development, release and timing of any features or functionality described for Oracle´s product
remains at the sole discretion of Oracle.
Copyright @ 2019 Oracle and/or its affiliates. All rights reserved.
3 / 55
4. 5/30/2019 Percona Live Austin 2019 - MySQL Shell : the best DBA tool ?
file:///home/fred/ownCloud/Presentations/ORACLE/PerconaLive2019/MySQL Shell - Best DBA Tool/MySQL Day - MySQL Shell.html#1 4/55
about me - http://about.me/lefred
Who am I ?
Copyright @ 2019 Oracle and/or its affiliates. All rights reserved.
4 / 55
5. 5/30/2019 Percona Live Austin 2019 - MySQL Shell : the best DBA tool ?
file:///home/fred/ownCloud/Presentations/ORACLE/PerconaLive2019/MySQL Shell - Best DBA Tool/MySQL Day - MySQL Shell.html#1 5/55
Frédéric Descamps
@lefred
MySQL Evangelist
Hacking MySQL since 3.23
devops believer
living in Belgium 🇧🇪
http://lefred.be
Copyright @ 2019 Oracle and/or its affiliates. All rights reserved.
5 / 55
6. 5/30/2019 Percona Live Austin 2019 - MySQL Shell : the best DBA tool ?
file:///home/fred/ownCloud/Presentations/ORACLE/PerconaLive2019/MySQL Shell - Best DBA Tool/MySQL Day - MySQL Shell.html#1 6/55
a new tool
MySQL Shell
Copyright @ 2019 Oracle and/or its affiliates. All rights reserved.
6 / 55
7. 5/30/2019 Percona Live Austin 2019 - MySQL Shell : the best DBA tool ?
file:///home/fred/ownCloud/Presentations/ORACLE/PerconaLive2019/MySQL Shell - Best DBA Tool/MySQL Day - MySQL Shell.html#1 7/55
MySQL Shell
The MySQL Shell is an interactive Javascript, Python, or SQL interface supporting development and administration for the MySQL
Server and is a component of the MySQL Server. You can use the MySQL Shell to perform data queries and updates as well as various
administration operations.
Copyright @ 2019 Oracle and/or its affiliates. All rights reserved.
7 / 55
8. 5/30/2019 Percona Live Austin 2019 - MySQL Shell : the best DBA tool ?
file:///home/fred/ownCloud/Presentations/ORACLE/PerconaLive2019/MySQL Shell - Best DBA Tool/MySQL Day - MySQL Shell.html#1 8/55
MySQL Shell (2)
The MySQL Shell provides:
Copyright @ 2019 Oracle and/or its affiliates. All rights reserved.
8 / 55
9. 5/30/2019 Percona Live Austin 2019 - MySQL Shell : the best DBA tool ?
file:///home/fred/ownCloud/Presentations/ORACLE/PerconaLive2019/MySQL Shell - Best DBA Tool/MySQL Day - MySQL Shell.html#1 9/55
MySQL Shell (2)
The MySQL Shell provides:
Both Interactive and Batch operations
Copyright @ 2019 Oracle and/or its affiliates. All rights reserved.
9 / 55
10. 5/30/2019 Percona Live Austin 2019 - MySQL Shell : the best DBA tool ?
file:///home/fred/ownCloud/Presentations/ORACLE/PerconaLive2019/MySQL Shell - Best DBA Tool/MySQL Day - MySQL Shell.html#1 10/55
MySQL Shell (2)
The MySQL Shell provides:
Both Interactive and Batch operations
Document and Relational Models
Copyright @ 2019 Oracle and/or its affiliates. All rights reserved.
10 / 55
11. 5/30/2019 Percona Live Austin 2019 - MySQL Shell : the best DBA tool ?
file:///home/fred/ownCloud/Presentations/ORACLE/PerconaLive2019/MySQL Shell - Best DBA Tool/MySQL Day - MySQL Shell.html#1 11/55
MySQL Shell (2)
The MySQL Shell provides:
Both Interactive and Batch operations
Document and Relational Models
CRUD Document and Relational APIs via scripting
Copyright @ 2019 Oracle and/or its affiliates. All rights reserved.
11 / 55
12. 5/30/2019 Percona Live Austin 2019 - MySQL Shell : the best DBA tool ?
file:///home/fred/ownCloud/Presentations/ORACLE/PerconaLive2019/MySQL Shell - Best DBA Tool/MySQL Day - MySQL Shell.html#1 12/55
MySQL Shell (2)
The MySQL Shell provides:
Both Interactive and Batch operations
Document and Relational Models
CRUD Document and Relational APIs via scripting
Traditional Table, JSON, Tab Separated output results formats
Copyright @ 2019 Oracle and/or its affiliates. All rights reserved.
12 / 55
13. 5/30/2019 Percona Live Austin 2019 - MySQL Shell : the best DBA tool ?
file:///home/fred/ownCloud/Presentations/ORACLE/PerconaLive2019/MySQL Shell - Best DBA Tool/MySQL Day - MySQL Shell.html#1 13/55
MySQL Shell (2)
The MySQL Shell provides:
Both Interactive and Batch operations
Document and Relational Models
CRUD Document and Relational APIs via scripting
Traditional Table, JSON, Tab Separated output results formats
MySQL Standard and X Protocols
Copyright @ 2019 Oracle and/or its affiliates. All rights reserved.
13 / 55
14. 5/30/2019 Percona Live Austin 2019 - MySQL Shell : the best DBA tool ?
file:///home/fred/ownCloud/Presentations/ORACLE/PerconaLive2019/MySQL Shell - Best DBA Tool/MySQL Day - MySQL Shell.html#1 14/55
MySQL Shell (2)
The MySQL Shell provides:
Both Interactive and Batch operations
Document and Relational Models
CRUD Document and Relational APIs via scripting
Traditional Table, JSON, Tab Separated output results formats
MySQL Standard and X Protocols
and more...
Copyright @ 2019 Oracle and/or its affiliates. All rights reserved.
14 / 55
15. 5/30/2019 Percona Live Austin 2019 - MySQL Shell : the best DBA tool ?
file:///home/fred/ownCloud/Presentations/ORACLE/PerconaLive2019/MySQL Shell - Best DBA Tool/MySQL Day - MySQL Shell.html#1 15/55
MySQL Shell and Python
When using the python mode in the Shell, it's possible to use system modules (local).
Copyright @ 2019 Oracle and/or its affiliates. All rights reserved.
15 / 55
16. 5/30/2019 Percona Live Austin 2019 - MySQL Shell : the best DBA tool ?
file:///home/fred/ownCloud/Presentations/ORACLE/PerconaLive2019/MySQL Shell - Best DBA Tool/MySQL Day - MySQL Shell.html#1 16/55
MySQL Shell and Python (2)
Of course this can be any type of modules:
Copyright @ 2019 Oracle and/or its affiliates. All rights reserved.
16 / 55
17. 5/30/2019 Percona Live Austin 2019 - MySQL Shell : the best DBA tool ?
file:///home/fred/ownCloud/Presentations/ORACLE/PerconaLive2019/MySQL Shell - Best DBA Tool/MySQL Day - MySQL Shell.html#1 17/55
MySQL Shell and Python (2)
Of course this can be any type of modules:
Copyright @ 2019 Oracle and/or its affiliates. All rights reserved.
17 / 55
18. 5/30/2019 Percona Live Austin 2019 - MySQL Shell : the best DBA tool ?
file:///home/fred/ownCloud/Presentations/ORACLE/PerconaLive2019/MySQL Shell - Best DBA Tool/MySQL Day - MySQL Shell.html#1 18/55
we want more !
Extending MySQL Shell
Copyright @ 2019 Oracle and/or its affiliates. All rights reserved.
18 / 55
19. 5/30/2019 Percona Live Austin 2019 - MySQL Shell : the best DBA tool ?
file:///home/fred/ownCloud/Presentations/ORACLE/PerconaLive2019/MySQL Shell - Best DBA Tool/MySQL Day - MySQL Shell.html#1 19/55
Extending MySQL Shell
Since 8.0.16, you have two different ways to extend the MySQL Shell:
using the new Reporting Framework (>= 8.0.16)
create your own modules to extend MySQL Shell
8.0
Copyright @ 2019 Oracle and/or its affiliates. All rights reserved.
19 / 55
20. 5/30/2019 Percona Live Austin 2019 - MySQL Shell : the best DBA tool ?
file:///home/fred/ownCloud/Presentations/ORACLE/PerconaLive2019/MySQL Shell - Best DBA Tool/MySQL Day - MySQL Shell.html#1 20/55
MySQL Shell User-Defined Reports
You can create reports that can be called ( ) one time or constantly refreshed ( ).
Example for checking the :
Copyright @ 2019 Oracle and/or its affiliates. All rights reserved.
20 / 55
21. 5/30/2019 Percona Live Austin 2019 - MySQL Shell : the best DBA tool ?
file:///home/fred/ownCloud/Presentations/ORACLE/PerconaLive2019/MySQL Shell - Best DBA Tool/MySQL Day - MySQL Shell.html#1 21/55
MySQL Shell User-Defined Reports (2)
This is a Python file ( ) installed in :
It contains a definition and a registration:
Copyright @ 2019 Oracle and/or its affiliates. All rights reserved.
21 / 55
22. 5/30/2019 Percona Live Austin 2019 - MySQL Shell : the best DBA tool ?
file:///home/fred/ownCloud/Presentations/ORACLE/PerconaLive2019/MySQL Shell - Best DBA Tool/MySQL Day - MySQL Shell.html#1 22/55
MySQL Shell User-Defined Reports (3)
More info:
https://lefred.be/content/using-the-new-mysql-shell-reporting-framework-to-monitor-innodb-cluster/
https://lefred.be/content/mysql-innodb-cluster-recovery-process-monitoring-with-the-mysql-shell-reporting-framework/
Sources of Examples:
https://github.com/lefred/mysql-shell-udr
Pull Requests welcome !
Copyright @ 2019 Oracle and/or its affiliates. All rights reserved.
22 / 55
23. 5/30/2019 Percona Live Austin 2019 - MySQL Shell : the best DBA tool ?
file:///home/fred/ownCloud/Presentations/ORACLE/PerconaLive2019/MySQL Shell - Best DBA Tool/MySQL Day - MySQL Shell.html#1 23/55
Create your own modules for MySQL Shell
For calling some long statements or group of operations or sometimes to replace a missing functionality.
Copyright @ 2019 Oracle and/or its affiliates. All rights reserved.
23 / 55
24. 5/30/2019 Percona Live Austin 2019 - MySQL Shell : the best DBA tool ?
file:///home/fred/ownCloud/Presentations/ORACLE/PerconaLive2019/MySQL Shell - Best DBA Tool/MySQL Day - MySQL Shell.html#1 24/55
Create your own modules for MySQL Shell
For calling some long statements or group of operations or sometimes to replace a missing functionality.
Recently, somebody pointed out that since the new DD it was not anymore possible to delete all routines for a specific schema.
Copyright @ 2019 Oracle and/or its affiliates. All rights reserved.
24 / 55
25. 5/30/2019 Percona Live Austin 2019 - MySQL Shell : the best DBA tool ?
file:///home/fred/ownCloud/Presentations/ORACLE/PerconaLive2019/MySQL Shell - Best DBA Tool/MySQL Day - MySQL Shell.html#1 25/55
Create your own modules for MySQL Shell
For calling some long statements or group of operations or sometimes to replace a missing functionality.
Recently, somebody pointed out that since the new DD it was not anymore possible to delete all routines for a specific schema.
Jesper explained recently how the MySQL Shell could help here see https://mysql.wisborg.dk/2018/12/02/mysql-8-drop-several-
stored-events-procedures-or-functions/
Copyright @ 2019 Oracle and/or its affiliates. All rights reserved.
25 / 55
26. 5/30/2019 Percona Live Austin 2019 - MySQL Shell : the best DBA tool ?
file:///home/fred/ownCloud/Presentations/ORACLE/PerconaLive2019/MySQL Shell - Best DBA Tool/MySQL Day - MySQL Shell.html#1 26/55
Extending MySQL Shell
Copyright @ 2019 Oracle and/or its affiliates. All rights reserved.
26 / 55
27. 5/30/2019 Percona Live Austin 2019 - MySQL Shell : the best DBA tool ?
file:///home/fred/ownCloud/Presentations/ORACLE/PerconaLive2019/MySQL Shell - Best DBA Tool/MySQL Day - MySQL Shell.html#1 27/55
Extending MySQL Shell
Copyright @ 2019 Oracle and/or its affiliates. All rights reserved.
27 / 55
28. 5/30/2019 Percona Live Austin 2019 - MySQL Shell : the best DBA tool ?
file:///home/fred/ownCloud/Presentations/ORACLE/PerconaLive2019/MySQL Shell - Best DBA Tool/MySQL Day - MySQL Shell.html#1 28/55
Extending MySQL Shell
Or for example, retrieve the expiration period of passwords (see https://lefred.be/content/mysql-when-will-the-password-of-my-
users-expire/):
Copyright @ 2019 Oracle and/or its affiliates. All rights reserved.
28 / 55
29. 5/30/2019 Percona Live Austin 2019 - MySQL Shell : the best DBA tool ?
file:///home/fred/ownCloud/Presentations/ORACLE/PerconaLive2019/MySQL Shell - Best DBA Tool/MySQL Day - MySQL Shell.html#1 29/55
Extending MySQL Shell
Another example, retrieve the tables potentially fragmented (see https://lefred.be/content/overview-of-fragmented-mysql-
innodb-tables/):
Copyright @ 2019 Oracle and/or its affiliates. All rights reserved.
29 / 55
30. 5/30/2019 Percona Live Austin 2019 - MySQL Shell : the best DBA tool ?
file:///home/fred/ownCloud/Presentations/ORACLE/PerconaLive2019/MySQL Shell - Best DBA Tool/MySQL Day - MySQL Shell.html#1 30/55
Extending MySQL Shell
Recently somebody complained about the complexity of knowing what are the default values of columns when expressions are
used (https://forums.mysql.com/read.php?101,670682,670682):
Copyright @ 2019 Oracle and/or its affiliates. All rights reserved.
30 / 55
31. 5/30/2019 Percona Live Austin 2019 - MySQL Shell : the best DBA tool ?
file:///home/fred/ownCloud/Presentations/ORACLE/PerconaLive2019/MySQL Shell - Best DBA Tool/MySQL Day - MySQL Shell.html#1 31/55
Contribute to MySQL Shell DBA Toolkit ?
Get the code from https://github.com/lefred/mysql-shell-mydba and Pull Requests are welcome !
Copyright @ 2019 Oracle and/or its affiliates. All rights reserved.
31 / 55
32. 5/30/2019 Percona Live Austin 2019 - MySQL Shell : the best DBA tool ?
file:///home/fred/ownCloud/Presentations/ORACLE/PerconaLive2019/MySQL Shell - Best DBA Tool/MySQL Day - MySQL Shell.html#1 32/55
we want even more !
Innotop
Copyright @ 2019 Oracle and/or its affiliates. All rights reserved.
32 / 55
33. 5/30/2019 Percona Live Austin 2019 - MySQL Shell : the best DBA tool ?
file:///home/fred/ownCloud/Presentations/ORACLE/PerconaLive2019/MySQL Shell - Best DBA Tool/MySQL Day - MySQL Shell.html#1 33/55
Innotop
As maintainer of Innotop, after doing so delayed maintenance, I started a poll on Twitter:
Copyright @ 2019 Oracle and/or its affiliates. All rights reserved.
33 / 55
34. 5/30/2019 Percona Live Austin 2019 - MySQL Shell : the best DBA tool ?
file:///home/fred/ownCloud/Presentations/ORACLE/PerconaLive2019/MySQL Shell - Best DBA Tool/MySQL Day - MySQL Shell.html#1 34/55
Innotop (2)
So Innotop is not dead... but it's very complex to maintain... Perl !
Copyright @ 2019 Oracle and/or its affiliates. All rights reserved.
34 / 55
35. 5/30/2019 Percona Live Austin 2019 - MySQL Shell : the best DBA tool ?
file:///home/fred/ownCloud/Presentations/ORACLE/PerconaLive2019/MySQL Shell - Best DBA Tool/MySQL Day - MySQL Shell.html#1 35/55
Innotop (2)
So Innotop is not dead... but it's very complex to maintain... Perl !
This is maybe the reason there is less and less contributors...
Copyright @ 2019 Oracle and/or its affiliates. All rights reserved.
35 / 55
36. 5/30/2019 Percona Live Austin 2019 - MySQL Shell : the best DBA tool ?
file:///home/fred/ownCloud/Presentations/ORACLE/PerconaLive2019/MySQL Shell - Best DBA Tool/MySQL Day - MySQL Shell.html#1 36/55
Innotop (2)
So Innotop is not dead... but it's very complex to maintain... Perl !
This is maybe the reason there is less and less contributors...
... so and MySQL Shell then ?
Copyright @ 2019 Oracle and/or its affiliates. All rights reserved.
36 / 55
37. 5/30/2019 Percona Live Austin 2019 - MySQL Shell : the best DBA tool ?
file:///home/fred/ownCloud/Presentations/ORACLE/PerconaLive2019/MySQL Shell - Best DBA Tool/MySQL Day - MySQL Shell.html#1 37/55
Innotop in MySQL Shell
Copyright @ 2019 Oracle and/or its affiliates. All rights reserved.
37 / 55
38. 5/30/2019 Percona Live Austin 2019 - MySQL Shell : the best DBA tool ?
file:///home/fred/ownCloud/Presentations/ORACLE/PerconaLive2019/MySQL Shell - Best DBA Tool/MySQL Day - MySQL Shell.html#1 38/55
Copyright @ 2019 Oracle and/or its affiliates. All rights reserved.
00:05
38 / 55
39. 5/30/2019 Percona Live Austin 2019 - MySQL Shell : the best DBA tool ?
file:///home/fred/ownCloud/Presentations/ORACLE/PerconaLive2019/MySQL Shell - Best DBA Tool/MySQL Day - MySQL Shell.html#1 39/55
Innotop in MySQL Shell
How to use it ?
Copyright @ 2019 Oracle and/or its affiliates. All rights reserved.
39 / 55
40. 5/30/2019 Percona Live Austin 2019 - MySQL Shell : the best DBA tool ?
file:///home/fred/ownCloud/Presentations/ORACLE/PerconaLive2019/MySQL Shell - Best DBA Tool/MySQL Day - MySQL Shell.html#1 40/55
How to use this module in MySQL Shell ?
The module is available on github: https://github.com/lefred/mysql-shell-innotop
Copyright @ 2019 Oracle and/or its affiliates. All rights reserved.
40 / 55
41. 5/30/2019 Percona Live Austin 2019 - MySQL Shell : the best DBA tool ?
file:///home/fred/ownCloud/Presentations/ORACLE/PerconaLive2019/MySQL Shell - Best DBA Tool/MySQL Day - MySQL Shell.html#1 41/55
How to use this module in MySQL Shell ?
The module is available on github: https://github.com/lefred/mysql-shell-innotop
Copyright @ 2019 Oracle and/or its affiliates. All rights reserved.
41 / 55
42. 5/30/2019 Percona Live Austin 2019 - MySQL Shell : the best DBA tool ?
file:///home/fred/ownCloud/Presentations/ORACLE/PerconaLive2019/MySQL Shell - Best DBA Tool/MySQL Day - MySQL Shell.html#1 42/55
How to use this module in MySQL Shell ?
The module is available on github: https://github.com/lefred/mysql-shell-innotop
Add in ~/.mysqlsh/mysqlshrc.py:
Copyright @ 2019 Oracle and/or its affiliates. All rights reserved.
42 / 55
43. 5/30/2019 Percona Live Austin 2019 - MySQL Shell : the best DBA tool ?
file:///home/fred/ownCloud/Presentations/ORACLE/PerconaLive2019/MySQL Shell - Best DBA Tool/MySQL Day - MySQL Shell.html#1 43/55
does it work everywhere ?
Limitations
Copyright @ 2019 Oracle and/or its affiliates. All rights reserved.
43 / 55
44. 5/30/2019 Percona Live Austin 2019 - MySQL Shell : the best DBA tool ?
file:///home/fred/ownCloud/Presentations/ORACLE/PerconaLive2019/MySQL Shell - Best DBA Tool/MySQL Day - MySQL Shell.html#1 44/55
Limitations
requires ncurses
Copyright @ 2019 Oracle and/or its affiliates. All rights reserved.
44 / 55
45. 5/30/2019 Percona Live Austin 2019 - MySQL Shell : the best DBA tool ?
file:///home/fred/ownCloud/Presentations/ORACLE/PerconaLive2019/MySQL Shell - Best DBA Tool/MySQL Day - MySQL Shell.html#1 45/55
Limitations
requires ncurses
works almost exclusively on Gnu/Linux
Copyright @ 2019 Oracle and/or its affiliates. All rights reserved.
45 / 55
46. 5/30/2019 Percona Live Austin 2019 - MySQL Shell : the best DBA tool ?
file:///home/fred/ownCloud/Presentations/ORACLE/PerconaLive2019/MySQL Shell - Best DBA Tool/MySQL Day - MySQL Shell.html#1 46/55
I want to contribute !
How to write your own extension ?
Copyright @ 2019 Oracle and/or its affiliates. All rights reserved.
46 / 55
47. 5/30/2019 Percona Live Austin 2019 - MySQL Shell : the best DBA tool ?
file:///home/fred/ownCloud/Presentations/ORACLE/PerconaLive2019/MySQL Shell - Best DBA Tool/MySQL Day - MySQL Shell.html#1 47/55
Creating you own extension
All extensions are a single file located in the modules folder:
Copyright @ 2019 Oracle and/or its affiliates. All rights reserved.
47 / 55
48. 5/30/2019 Percona Live Austin 2019 - MySQL Shell : the best DBA tool ?
file:///home/fred/ownCloud/Presentations/ORACLE/PerconaLive2019/MySQL Shell - Best DBA Tool/MySQL Day - MySQL Shell.html#1 48/55
Skeleton of an extension
Every extension starts the same way and requires some mandatory modules:
Copyright @ 2019 Oracle and/or its affiliates. All rights reserved.
48 / 55
49. 5/30/2019 Percona Live Austin 2019 - MySQL Shell : the best DBA tool ?
file:///home/fred/ownCloud/Presentations/ORACLE/PerconaLive2019/MySQL Shell - Best DBA Tool/MySQL Day - MySQL Shell.html#1 49/55
Skeleton of an extension
Every extension starts the same way and requires some mandatory modules:
Copyright @ 2019 Oracle and/or its affiliates. All rights reserved.
49 / 55
50. 5/30/2019 Percona Live Austin 2019 - MySQL Shell : the best DBA tool ?
file:///home/fred/ownCloud/Presentations/ORACLE/PerconaLive2019/MySQL Shell - Best DBA Tool/MySQL Day - MySQL Shell.html#1 50/55
Skeleton of an extension
Every extension starts the same way and requires some mandatory modules:
Then you need to specify the shortcuts that calls the functions:
Copyright @ 2019 Oracle and/or its affiliates. All rights reserved.
50 / 55
51. 5/30/2019 Percona Live Austin 2019 - MySQL Shell : the best DBA tool ?
file:///home/fred/ownCloud/Presentations/ORACLE/PerconaLive2019/MySQL Shell - Best DBA Tool/MySQL Day - MySQL Shell.html#1 51/55
Skeleton of an extension
Every extension starts the same way and requires some mandatory modules:
Then you need to specify the shortcuts that calls the functions:
Copyright @ 2019 Oracle and/or its affiliates. All rights reserved.
51 / 55
52. 5/30/2019 Percona Live Austin 2019 - MySQL Shell : the best DBA tool ?
file:///home/fred/ownCloud/Presentations/ORACLE/PerconaLive2019/MySQL Shell - Best DBA Tool/MySQL Day - MySQL Shell.html#1 52/55
Skeleton of an extension
Every extension starts the same way and requires some mandatory modules:
Then you need to specify the shortcuts that calls the functions:
return: name of the module (dummy.py)
stdscr: use the same screen (and pass it to the function)
Copyright @ 2019 Oracle and/or its affiliates. All rights reserved.
52 / 55
53. 5/30/2019 Percona Live Austin 2019 - MySQL Shell : the best DBA tool ?
file:///home/fred/ownCloud/Presentations/ORACLE/PerconaLive2019/MySQL Shell - Best DBA Tool/MySQL Day - MySQL Shell.html#1 53/55
Skeleton of an extension - run()
Copyright @ 2019 Oracle and/or its affiliates. All rights reserved.
53 / 55
54. 5/30/2019 Percona Live Austin 2019 - MySQL Shell : the best DBA tool ?
file:///home/fred/ownCloud/Presentations/ORACLE/PerconaLive2019/MySQL Shell - Best DBA Tool/MySQL Day - MySQL Shell.html#1 54/55
Copyright @ 2019 Oracle and/or its affiliates. All rights reserved.
54 / 55
55. 5/30/2019 Percona Live Austin 2019 - MySQL Shell : the best DBA tool ?
file:///home/fred/ownCloud/Presentations/ORACLE/PerconaLive2019/MySQL Shell - Best DBA Tool/MySQL Day - MySQL Shell.html#1 55/55
Thank you !
Any Questions ?
share your 💕 for MySQL on social media using
Copyright @ 2019 Oracle and/or its affiliates. All rights reserved.
55 / 55