How to Provision Vultr Managed Databases for MySQL

Updated on February 26, 2025

Vultr Managed Databases for MySQL is a highly available, scalable, and secure relational database sysytem that offers speed and reliability. You can integrate a Vultr Managed Databases for MySQL cluster in modern applications and programming languages such as Python, PHP, and Node.js, while choosing from CPU-optimized, memory-optimized and general-purpose server types. In addition, you can create database users, configure trusted sources, and download SSL certificates to access the cluster and integrate it in existing applications.

Follow this guide to provision Vultr Managed Databases for MySQL using the Vultr Customer Portal, API, or CLI.

  • Vultr Customer Portal
  • Vultr API
  • Vultr CLI
  1. Navigate to Products and click Databases.
  2. Click Add Managed Database.
  3. Select MySQL as the database engine and note the MySQL version.
  4. Select the Server Type drop-down and select your desired backend server type.
  5. Click Plan and select the server specifications.
  6. Click the Number of Failover Replica Nodes drop-down and select the number of failover replica nodes to add to your cluster.
  7. Select your desired server location.
  8. Optional: Click the VPC drop-down and select a VPC network to attach to the cluster.
  9. Enter a descriptive label in the Label field.
  10. Review the selected plan, and cost estimates.
  11. Click Deploy Now to provision the Vultr Managed Databases for MySQL cluster.
  1. Send a GET request to the List Regions endpoint and note your target Vultr region ID.

    console
    $ curl "https://api.vultr.com/v2/regions" \
      -X GET \
      -H "Authorization: Bearer ${VULTR_API_KEY}"
    
  2. Send a GET request to the List Managed Database Plans endpoint to view all available database engines and plans in your target Vultr region.

    console
    $ curl "https://api.vultr.com/v2/databases/plans?region=<region-id>" \
        -X GET \
        -H "Authorization: Bearer ${VULTR_API_KEY}"
    
  3. Send a POST request to the Create Database endpoint to provision a Vultr Managed Databases for MySQL cluster, specifying your target server plan, database engine, and Vultr region.

    console
    $ curl "https://api.vultr.com/v2/databases" \
        -X POST \
        -H "Authorization: Bearer ${VULTR_API_KEY}" \
        -H "Content-Type: application/json" \
        --data '{
            "database_engine" : "mysql",
            "database_engine_version" : "<version>",
            "plan" : "<server-plan>",
            "region" : "<region-id>",        
            "label" : "<label>"
        }'
    

    Visit the Create Database endpoint to view additional attributes to apply on your Vultr Managed Databases for MySQL provisioning request.

  4. Send a GET request to the List Managed Databases endpoint to view all Vultr Managed Databases for MySQL clusters in your account.

    console
    $ curl "https://api.vultr.com/v2/databases" \
        -X GET \
        -H "Authorization: Bearer ${VULTR_API_KEY}" \
        -H "Content-Type: application/json"
    
  1. List all Vultr regions and note your target region ID.

    console
    $ vultr-cli regions list
    
  2. List all available Vultr Managed Databases plans and note your target plan.

    console
    $ vultr-cli database plan list
    
  3. Provision a Vultr Managed Databases for MySQL cluster, specifying your target plan, database engine version, and Vultr region.

    console
    $ vultr-cli database create \
    --database-engine mysql \
    --database-engine-version <version> \
    --plan <server-plan> \
    --region <region-id> \
    --label <label>
    

    Run vultr-cli database create --help to view additional options to apply to your Vultr Managed Databases for MySQL provisioning request.

  4. List all Vultr Managed Databases clusters in your account.

    console
    $ vultr-cli database list --summarize