Prerequisites
Before proceeding, ensure the following prerequisites are met:- Install MindsDB locally via Docker or Docker Desktop.
- To connect MatrixOne to MindsDB, install the required dependencies following this instruction.
- Install or ensure access to MatrixOne.
Implementation
This handler is implemented usingPyMySQL, a Python library that allows you to use Python code to run SQL commands on the MatrixOne database.
The required arguments to establish a connection are as follows:
- useris the username associated with the database.
- passwordis the password to authenticate your access.
- hostis the hostname or IP address of the database.
- portis the port through which TCP/IP connection is to be made.
- databaseis the database name to be connected.
- sslindicates whether SSL is enabled (- True) or disabled (- False).
- ssl_cais the SSL Certificate Authority.
- ssl_certstores the SSL certificates.
- ssl_keystores the SSL keys.