pip install sqlalchemy
.
You can consider an option to interact with MindsDB directly from MySQL CLI or Postgres CLI.
How to Connect
Please follow the instructions below to connect your MindsDB to SQL Alchemy.You can use the Python code below to connect your MindsDB database to SQL Alchemy.Make sure you have the pymysql module installed before executing the Python code. To install it, run the Please note that we use the following connection details:
pip install pymysql
command.- Username is
mindsdb
- Password is left empty
- Host is
127.0.0.1
- Port is
47335
- Database name is left empty
The Sqlachemy
create_engine
is lazy. This implies any human error when
entering the connection details would be undetectable until an action becomes
necessary, such as when calling the execute
method to execute SQL commands.