Connecting With a Mapped MySQL User
To connect to a DB system with a mapped MySQL user, first map a MySQL user to a local, federated, or provisioned user, and then connect to the DB system using the mapped MySQL user .
- Map the MySQL user to a local, federated or provisioned user
to obtain the identity and privileges of the MySQL user.
- For mapping the MySQL user to a local user, see Mapping a MySQL User to a Local User.
- For mapping the MySQL user to a federated user, see Mapping a MySQL User to a Federated User.
- For mapping the MySQL user to a provisioned user, see Mapping a MySQL User to a Provisioned User.
- Connect to the DB system with the MySQL user mapped to a local, federated, or provisioned user. See Connecting With a MySQL User Mapped to a Local, Federated, or Provisioned User.
Mapping a MySQL User to a Local User
Map a MySQL user to a local user to grant the local user access to the MySQL Server of the DB system.
Using a Command-Line Client
Use a command-line client such as MySQL Client or MySQL Shell to create a MySQL user and map it to a local user.
- The OCID of the local user and the tenancy in which the user is defined.
- A running DB system.
- A correctly configured VCN granting command line access to the DB system either from a compute instance or a local machine.
- A correctly configured command-line client.
- For the required setup to use the
authentication_oci
plugin, see Prerequisites.
Related Topics
Mapping a MySQL User to a Federated User
Map a MySQL user to a federated user to grant the federated user access to the MySQL Server of the DB system.
A federated user is a user that belongs to an Identity Provider and logs into Oracle Cloud Infrastructure services through federation.
Using a Command-Line Client
Use a command-line client such as MySQL Client or MySQL Shell to create a MySQL user and map it to a federated user.
- The user ID of the federated user and the tenancy to log into Oracle Cloud Infrastructure services.
- A running DB system.
- A correctly configured VCN granting command line access to the DB system either from a compute instance or a local machine.
- A correctly configured command-line client.
- For the required setup to use the
authentication_oci
plugin, see Prerequisites.
Related Topics
Mapping a MySQL User to a Provisioned User
Map a MySQL user to a provisioned user to grant the provisioned user access to the MySQL Server of the DB system.
A provisioned user is systematically provisioned by the identity provider in Oracle Cloud Infrastructure. Provisioned users can have Oracle Cloud Infrastructure credentials, but not Console passwords.
Using a Command-Line Client
Use a command-line client such as MySQL Client or MySQL Shell to create a MySQL user and map it to a provisioned user.
- The user ID or the user OCID of the provisioned user and the tenancy to log into Oracle Cloud Infrastructure services.
- A running DB system.
- A correctly configured VCN granting command line access to the DB system either from a compute instance or a local machine.
- A correctly configured command-line client.
- For the required setup to use the
authentication_oci
plugin, see Prerequisites.
Related Topics
Connecting With a MySQL User Mapped to a Local, Federated, or Provisioned User
Connect to a DB system with a MySQL user mapped to a local, federated, or provisioned user. A mapped MySQL user provides the local, federated, or provisioned user the identity and privileges of a MySQL user. Local, federated and provisioned users can use an IAM security token to connect to a DB system. However, only local and provisioned users can use an API key-pair to connect to a DB system.
Using a Command-Line Client
Use a command-line client such as MySQL Client or MySQL Shell to connect to a DB system using a MySQL user who is mapped to a local, federated or provisioned user.
- A running DB system.
- A configuration file. See SDK and CLI configuration file.
- A correctly configured VCN granting command line access to the DB system either from a compute instance or a local machine.
- For the required setup to use the
authentication_oci
plugin, see Prerequisites.
Related Topics