MySQL Shell 是用于 MySQL Server 的高级客户端和代码编辑器。除了提供的 SQL 功能外,类似于 mysql,MySQL Shell 还提供 JavaScript 和 Python 的脚本功能,并包含用于操作 MySQL 的 API。MySQL Shell 是一个可以单独安装的组件。MySQL Shell is an advanced client and code editor for MySQL Server. 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. MySQL Shell is a component that you can install separately.
以下讨论简要描述了 MySQL Shell 的功能。有关更多信息,请参阅 MySQL Shell 手册,可在 https://dev.mysql.com/doc/mysql-shell/en/ 获得。The following discussion briefly describes MySQL Shell's capabilities. For more information, see the MySQL Shell manual, available at https://dev.mysql.com/doc/mysql-shell/en/.
MySQL Shell 包括以下通过 JavaScript 和 Python 实现的 API,您可以使用这些 API 开发与 MySQL 交互的代码。MySQL Shell includes the following APIs implemented in JavaScript and Python which you can use to develop code that interacts with MySQL.
X DevAPI 使开发人员在 MySQL Shell 使用 X 协议连接到 MySQL 服务器时,可以同时处理关系数据和文档数据。这使您可以将 MySQL 用作文档存储,有时也称为“使用 NoSQL”。有关更多信息,请参见 第 22 章,使用 MySQL 作为文档存储。有关在 MySQL Shell 中实现的 X DevAPI 的概念和使用文档,请参见 X DevAPI 用户指南。The X DevAPI enables developers to work with both relational and document data when MySQL Shell is connected to a MySQL server using the X Protocol. This enables you to use MySQL as a Document Store, sometimes referred to as “using NoSQL”. For more information, see Chapter 22, Using MySQL as a Document Store. For documentation on the concepts and usage of X DevAPI, which is implemented in MySQL Shell, see X DevAPI User Guide.
AdminAPI 使数据库管理员能够使用 InnoDB Cluster 工作,InnoDB Cluster 提供了一个集成的高可用性和可扩展性解决方案,使用基于 InnoDB 的 MySQL 数据库,无需高级 MySQL 专业知识。AdminAPI 还支持 InnoDB ReplicaSet,使您能够以类似于 InnoDB Cluster 的方式管理运行基于异步 GTID 复制的 MySQL 实例集合。此外,AdminAPI 使 MySQL Router 的管理更加简便,包括与 InnoDB Cluster 和 InnoDB ReplicaSet 的集成。请参见 MySQL AdminAPI。The AdminAPI enables database administrators to work with InnoDB Cluster, which provides an integrated solution for high availability and scalability using InnoDB based MySQL databases, without requiring advanced MySQL expertise. The AdminAPI also includes support for InnoDB ReplicaSet, which enables you to administer a set of MySQL instances running asynchronous GTID-based replication in a similar way to InnoDB Cluster. Additionally, the AdminAPI makes administration of MySQL Router easier, including integration with both InnoDB Cluster and InnoDB ReplicaSet. See MySQL AdminAPI.
MySQL Shell 有两个版本,社区版和商业版。社区版免费提供。商业版以低成本提供额外的企业功能。MySQL Shell is available in two editions, the Community Edition and the Commercial Edition. The Community Edition is available free of charge. The Commercial Edition provides additional Enterprise features at low cost.