MindsDB and Postgres CLI
The Postgres API enables users to connect to MindsDB using the PostgreSQL protocol.
By default, MindsDB starts the http
and mysql
APIs. You can define which APIs to start using the api
flag as below.
If you want to start MindsDB without the graphical user interface (GUI), use the --no_studio
flag as below.
How to Connect
To connect MindsDB in PostgreSQL, use the psql
client program:
We use the local MindsDB installation with the following parameters:
- host:
localhost
- port:
55432
- database:
mindsdb
- user:
mindsdb
Here is the command that allows you to connect to MindsDB.
Please see this page for implementation details.
What’s Next?
Now that you are all set, we recommend you check out our Use Cases section, where you’ll find various examples of regression, classification, time series, and NLP predictions with MindsDB.
To learn more about MindsDB itself, follow the guide on MindsDB database structure. Also, don’t miss out on the remaining pages from the MindsDB SQL section, as they explain a common SQL syntax with examples.
Have fun!
Was this page helpful?