Skip to content

Creating a StarRocks connection

Since v0.0.26

Learn how to create a StarRocks connection for accessing StarRocks databases.

  • Access to a StarRocks cluster with MySQL protocol port enabled
  • Database credentials (username and password)
  • global_create_connection permission (Global Admin role)

Navigate to ConnectionsNew.

Select StarRocks as the connection kind and fill in the connection parameters:

Basic parameters:

  • Host – StarRocks FE (Frontend) server host (e.g., localhost or starrocks-fe.prod.com)
  • Port – MySQL protocol port (default: 9030)
  • User – Username for authentication (defaults to root)
  • Password – Password for authentication

TLS configuration:

  • TLS enabled – Toggle to use TLS-encrypted connection
  • Advanced setup – Toggle to show additional TLS options:
    • Verify – Whether to validate TLS certificates (recommended for production)
    • CA certificate – CA certificate content for certificate verification
    • Client certificate – Client certificate content for mutual TLS authentication
    • Client certificate key – Client certificate private key content
    • Server host name – SNI hostname for TLS handshake (useful when connecting through SSH tunnels)
    • TLS mode – TLS configuration mode
  • Name – Connection name (e.g., “Production StarRocks”, “Staging StarRocks”)
  • Description – Optional description explaining the connection’s purpose or environment

Review your configuration and click “Create” to save the connection.

  1. Enable TLS for production connections
  2. Verify certificates (Verify: True) in production
  3. Test connection before saving to catch configuration errors early
  4. Use descriptive names indicating environment (e.g., “Production StarRocks”)
  5. Document purpose in description field for team clarity
  • Use separate connections for different environments
  • Consider using client certificates (mutual TLS) for enhanced security
  • Enable TLS for all production connections

Connection test fails:

  • Verify host and port are correct (default MySQL protocol port is 9030)
  • Ensure StarRocks FE node is running and accepting MySQL protocol connections
  • Check firewall rules allow access to the MySQL protocol port
  • Verify credentials are correct
  • For TLS connections, check certificate content