Core Database Operations
mysql-create
mysql-create
Creates a new MySQL database in Dokploy.Annotations:Example:Response:
- Destructive:
false - Idempotent:
false - External API:
true
The name of the MySQL database.
The app name for the MySQL database.
The name of the database to create.
The username for database access.
The password for database access. Must match pattern:
^[a-zA-Z0-9@#%^&*()_+\-=[\]{}|;:,.<>?~\]*$`The root password for MySQL. Must match pattern:
^[a-zA-Z0-9@#%^&*()_+\-=[\]{}|;:,.<>?~\]*$`The ID of the environment where the database will be created.
Docker image to use for MySQL.
An optional description for the database.
The ID of the server where the database will be deployed.
MySQL requires both a user password and a root password. The root password provides full administrative access.
mysql-one
mysql-one
Gets a specific MySQL database by its ID in Dokploy.Annotations:Example:Response:
- Destructive:
false - Idempotent:
true
The ID of the MySQL database to retrieve.
mysql-update
mysql-update
Updates an existing MySQL database in Dokploy.Annotations:Example:
- Destructive:
true
The ID of the MySQL database to update.
The new name of the MySQL database.
The new app name of the MySQL database.
The new database name.
The new database username.
The new database password.
The new root password for MySQL.
The new description for the MySQL database.
The new Docker image for MySQL.
Custom command to run the MySQL database.
Environment variables for the MySQL database.
Memory reservation for the MySQL database (e.g., “512m”, “1g”).
Memory limit for the MySQL database (e.g., “1g”, “2g”).
CPU reservation for the MySQL database (e.g., “0.5”, “1”).
CPU limit for the MySQL database (e.g., “1”, “2”).
External port for the MySQL database.
Application status:
idle, running, done, or error.mysql-remove
mysql-remove
Removes/deletes a MySQL database from Dokploy.Annotations:Example:
- Destructive:
true
The ID of the MySQL database to remove.
mysql-move
mysql-move
Lifecycle Management
mysql-deploy
mysql-deploy
Deploys a MySQL database in Dokploy.Annotations:Example:Response:
- Destructive:
false - Idempotent:
false
The ID of the MySQL database to deploy.
mysql-start
mysql-start
Starts a MySQL database in Dokploy.Annotations:Example:
- Destructive:
true
The ID of the MySQL database to start.
mysql-stop
mysql-stop
Stops a MySQL database in Dokploy.Annotations:Example:
- Destructive:
true
The ID of the MySQL database to stop.
mysql-reload
mysql-reload
mysql-rebuild
mysql-rebuild
Rebuilds a MySQL database in Dokploy.Annotations:Example:
- Destructive:
true
The ID of the MySQL database to rebuild.
Configuration Management
mysql-changeStatus
mysql-changeStatus
mysql-saveExternalPort
mysql-saveExternalPort
mysql-saveEnvironment
mysql-saveEnvironment
Common Workflows
Creating and Deploying a MySQL Database
Migrating from MySQL 5.7 to MySQL 8
Updating Resource Limits
MySQL vs PostgreSQL
The key difference between MySQL and PostgreSQL tools in Dokploy is thedatabaseRootPassword parameter:
- MySQL: Requires both
databasePassword(for the application user) anddatabaseRootPassword(for root administrative access) - PostgreSQL: Only requires
databasePassword(the postgres superuser uses this password)
When connecting your application to MySQL, use the
databaseUser and databasePassword, not the root credentials.