Prerequisites
Before proceeding, ensure the following prerequisites are met:- Install MindsDB locally via Docker or use MindsDB Cloud.
- To connect MySQL to MindsDB, install the required dependencies following this instruction.
- Install or ensure access to MySQL.
Implementation
This handler is implemented using themysql-connector-python
library. It’s a Python client for MySQL that doesn’t depend on any MySQL C libraries.
- Connecting using URL
- Connecting using paramaters
Connect MySQL to MindsDB by providing the URL parameter. Learn more here.
Usage
In order to make use of this handler and connect to the MySQL database in MindsDB, the following syntax can be used:- Connecting using URL
- Connecting using paramaters