Skip to main content

mysql_instance_credentials

Creates, updates, deletes, gets or lists a mysql_instance_credentials resource.

Overview

Namemysql_instance_credentials
TypeResource
Idlinode.databases.mysql_instance_credentials

Fields

The following fields are returned by SELECT queries:

MySQL Managed Database root username and password.

NameDatatypeDescription
passwordstringRead-only The randomly generated root password for the Managed Database instance. (example: s3cur3P@ssw0rd)
usernamestringRead-only The root username for the Managed Database instance. (example: linroot)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_databases_mysql_instance_credentialsselectDisplay the root username and password for an accessible MySQL Managed Database. The database's status needs to be active.

Learn more...

Learn more...
post_databases_mysql_instance_credentials_resetexecReset the root password for a MySQL Managed Database. A new root password is randomly generated and accessible with the Get MySQL Managed Database credentials operation.

- The database's status needs to be active.

- Only unrestricted users can access this operation. These users have access regardless of the acting token's OAuth scopes.

- It may take several seconds for credentials to reset.

Learn more...

Learn more...

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription

SELECT examples

Display the root username and password for an accessible MySQL Managed Database. The database's status needs to be active.

Learn more...

Learn more...

SELECT
password,
username
FROM linode.databases.mysql_instance_credentials;

Lifecycle Methods

Reset the root password for a MySQL Managed Database. A new root password is randomly generated and accessible with the Get MySQL Managed Database credentials operation.

- The database's status needs to be active.

- Only unrestricted users can access this operation. These users have access regardless of the acting token's OAuth scopes.

- It may take several seconds for credentials to reset.

Learn more...

Learn more...

EXEC linode.databases.mysql_instance_credentials.post_databases_mysql_instance_credentials_reset 
;