Connect to MySQL Server
connectConnect to a MySQL server at runtime using explicit credentials, and retain the connection under an alias for read-only queries later in the session.
Instructions
Connect to any MySQL server at runtime with explicit credentials. Not persisted to disk, but kept for the rest of the session under an alias
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | No | Hostname. Use host.docker.internal for MySQL on this Mac | host.docker.internal |
| port | No | Port | |
| user | Yes | MySQL user | |
| alias | No | Name to remember this connection under for use_connection later | |
| database | Yes | Database to open | |
| password | No | MySQL password, empty string if none |