connect
Establish a live MySQL connection using provided credentials, storing it under an alias for subsequent read-only queries.
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 |