For the complete documentation index, see llms.txt. This page is also available as Markdown.

MySQL

Create a Depot resource for MySQL databases.

To create a MySQL Depot you must have the following details:

Pre-requisites specific to DataOS

A user with the Tenant Admin, Data Admin, or Data Developer Tenant role can create a Depot.

See Depot: Access control for who can create a Depot and how access to it is managed.

Run this command to see your assigned roles.

dataos-ctl user get
#Expected Output: 
time="2026-03-30T17:49:18+05:30" level=info msg="😃 user get..."
time="2026-03-30T17:49:19+05:30" level=info msg="😃 user get...complete"

     NAME     │        ID         │  TYPE  │        EMAIL         │                  TAGS
──────────────┼───────────────────┼────────┼──────────────────────┼────────────────────────────────────────
 I Am Groot   │ iamgroottmdcio    │ person │ iam.groot@tmdc.io    │ roles:id:ct-onboarding-data-developer,
              │                   │        │                      │ roles:id:user,
              │                   │        │                      │ users:id:iamgroottmdcio

Pre-requisites specific to the source system

  • Host URL and Parameters: The URL or hostname of the MySQL server where the database is hosted. This is typically provided by the database administrator. Additional parameters (such as character set or connection timeout) may be needed based on the specific configuration of the MySQL server.

  • Port: The port number used to connect to the MySQL server. By default, MySQL uses port 3306, but this could vary if a custom port is configured. This information should be provided by the database administrator.

  • Username: The username used to authenticate the connection to the MySQL database. This username is typically created by the database administrator and must have the necessary privileges to access the desired database.

  • Password: The password associated with the provided username for authentication. The password is typically set when the username is created and must be kept secure. It is required to establish a successful connection to the database.

Create a MySQL Depot

A Depot of type MYSQL connects to a MySQL database and reads from its tables. One Depot covers all tables within the configured schema. Create multiple Depots for multiple MySQL servers or databases. To create a Depot of type MYSQL, follow these steps:

Step 1: Create a Secret for securing MySQL credentials

Create a Secret Resource using the MySQL guide.

Step 2: Create a MySQL Depot manifest file

Create a manifest file for your MySQL Depot.

Step 3: Apply the Depot manifest file

Apply the manifest with the DataOS CLI:

Verify the Depot creation

Verify the Depot in two ways:

  • List Depots where you are the owner:

  • List all Depots in the current Tenant:

Delete a Depot

To delete a Depot, use the DataOS CLI:

Specify the Resource type and Depot name in the delete command.

Example:

Last updated

Was this helpful?