mysql_connect
Establish a connection to a MySQL database by providing host, user credentials, and optional parameters like database name and SSL settings.
Instructions
Connect to a MySQL database with provided connection parameters
Input Schema
Name | Required | Description | Default |
---|---|---|---|
database | No | Database name (optional) | |
host | Yes | MySQL server hostname or IP address | |
password | Yes | Database password | |
port | No | MySQL server port (default: 3306) | |
ssl | No | Use SSL connection (default: false) | |
user | Yes | Database username |
Input Schema (JSON Schema)
{
"properties": {
"database": {
"description": "Database name (optional)",
"type": "string"
},
"host": {
"description": "MySQL server hostname or IP address",
"type": "string"
},
"password": {
"description": "Database password",
"type": "string"
},
"port": {
"default": 3306,
"description": "MySQL server port (default: 3306)",
"type": "number"
},
"ssl": {
"default": false,
"description": "Use SSL connection (default: false)",
"type": "boolean"
},
"user": {
"description": "Database username",
"type": "string"
}
},
"required": [
"host",
"user",
"password"
],
"type": "object"
}