Set up credentials
Gather these connection details from your MySQL database before connecting:Find your host and port
Locate your database host (the server address, for example
db.example.com or an IP) from your database provider or server config.
MySQL uses port 3306 by default.Identify your database name
Determine the database (schema) you want Adapt to query. You can list
databases with
SHOW DATABASES; if you are unsure.If your database is behind a firewall or private network, make sure the host is
reachable and that any required IP addresses are allowlisted.
Connect to Adapt
Add your credentials
Enter the values you gathered above, then click Add connection:
You can rename the connection and choose whether it is shared with your
organization or kept personal to you.
| Secret Name | Value |
|---|---|
MYSQL_HOST | Your database host |
MYSQL_USER | Your database user |
MYSQL_PASSWORD | Your database password |
MYSQL_DATABASE | Your database name |
Security
- Credentials are encrypted at rest with AES-256
- Use a dedicated user with read-only (
SELECT-only) privileges - Connect over SSL/TLS whenever your server supports it
- Restrict network access to your database and allowlist only trusted addresses
- Never share your credentials publicly or commit them to source control