MySQL Shell reserves certain variables as global variables, which are assigned to commonly used objects in scripting. This section describes the available global variables and provides examples of working with them. The global variables are:
sessionrepresents the global session if one has been established.
dbrepresents a schema if one has been defined, for example by a URI type string.
dbarepresents the AdminAPI, a component of InnoDB cluster which enables you to administer clusters of server instances. See InnoDB Cluster.
shellprovides general purpose functions, for example to configure MySQL Shell.
utilprovides utility functions, for example to check server instances before an upgrade.
These words are reserved and cannot be used, for example as names of variables.