sessionis available when a global session is established, and represents the global session.
dbaprovides access to InnoDB Cluster and InnoDB ReplicaSet administration functions using the AdminAPI. See Using MySQL AdminAPI.
clusterrepresents an InnoDB Cluster. Only populated if the
--clusteroption was provided when MySQL Shell was started.
rsrepresents an InnoDB ReplicaSet (added in version 8.0.20). Only populated if the
--replicasetoption was provided when MySQL Shell was started.
dbis available when the global session was established using an X Protocol connection with a default database specified, and represents that schema.
shellprovides access to various MySQL Shell functions, for example:
shell.optionsprovides functions to set and unset MySQL Shell preferences. See Section 9.4, “Configuring MySQL Shell Options”.
shell.reportsprovides built-in or user-defined MySQL Shell reports as functions, with the name of the report as the function. See Section 6.1, “Reporting with MySQL Shell”.
utilprovides various MySQL Shell tools, including the upgrade checker utility, the JSON import utility, and the parallel table import utility. See Chapter 7, MySQL Shell Utilities.
The names of the MySQL Shell global objects are reserved as global variables and must not be used, for example, as names of variables. If you assign one of the global variables you override the above functionality, and to restore it you must restart MySQL Shell.
You can also create your own extension objects and register them as additional MySQL Shell global objects to make them available in a global context. For instructions to do this, see Section 6.2, “Adding Extension Objects to MySQL Shell”.