Abstract
MySQL Shell is an advanced client and code editor for MySQL. This document describes the core features of MySQL Shell. In addition to the provided SQL functionality, similar to mysql, MySQL Shell provides scripting capabilities for JavaScript and Python and includes APIs for working with MySQL. X DevAPI enables you to work with both relational and document data, see Using MySQL as a Document Store. AdminAPI enables you to work with InnoDB Cluster, see Chapter 6, Using MySQL AdminAPI.
MySQL Shell 8.0 is highly recommended for use with MySQL Server 8.0 and 5.7. Please upgrade to MySQL Shell 8.0. If you have not yet installed MySQL Shell, download it from the download site.
For notes detailing the changes in each release, see the MySQL Shell Release Notes.
For help with using MySQL, please visit the MySQL Forums, where you can discuss your issues with other MySQL users.
Licensing information. This product may include third-party software, used under license. If you are using a Commercial release of MySQL Shell, see MySQL Shell Commercial License Information User Manual for licensing information, including licensing information relating to third-party software that may be included in this Commercial release. If you are using a Community release of MySQL Shell, see MySQL Shell Community License Information User Manual for licensing information, including licensing information relating to third-party software that may be included in this Community release.
Document generated on: 2021-03-04 (revision: 24)
Table of Contents
- 1 MySQL Shell Features
- 2 Installing MySQL Shell
- 3 Using MySQL Shell Commands
- 4 Getting Started with MySQL Shell
- 5 MySQL Shell Code Execution
- 6 Using MySQL AdminAPI
- 6.1 MySQL AdminAPI
- 6.2 MySQL InnoDB Cluster
- 6.2.1 MySQL InnoDB Cluster Requirements
- 6.2.2 Deploying a Production InnoDB Cluster
- 6.2.3 Monitoring InnoDB Cluster
- 6.2.4 Working with Instances
- 6.2.5 Working with InnoDB Cluster
- 6.2.6 Configuring InnoDB Cluster
- 6.2.7 Troubleshooting InnoDB Cluster
- 6.2.8 Upgrading an InnoDB Cluster
- 6.2.9 Tagging the Metadata
- 6.2.10 InnoDB Cluster Tips
- 6.2.11 Known Limitations
- 6.3 MySQL InnoDB ReplicaSet
- 6.4 MySQL Router
- 6.5 AdminAPI MySQL Sandboxes
- 7 Extending MySQL Shell
- 8 MySQL Shell Utilities
- 9 MySQL Shell Logging and Debug
- 10 Customizing MySQL Shell
- A MySQL Shell Command Reference
List of Figures
List of Tables
List of Examples
- 5.1 Output in Table Format
- 5.2 Output in Tab Separated Format
- 5.3 Output in Vertical Format
- 5.4 Output in Pretty-Printed JSON Format (
json
orjson/pretty
) - 5.5 Output in Raw JSON Format with Newline Delimiters
(
ndjson
orjson/raw
) - 5.6 Output in Raw JSON Format Wrapped in a JSON Array
(
json/array
) - 5.7 MySQL Shell Output with Pretty-Printed JSON Wrapping
(
--json
or--json=pretty
) - 5.8 MySQL Shell Output with Raw JSON Wrapping
(
--json=raw
) - 7.1 Creating and Registering Extension Objects - Python
- 7.2 Creating and Registering Extension Objects - JavaScript
- 7.3 MySQL Shell plugin containing a report and an extension object