Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Replace SQLite with Postgres in MindsDB

In the MindsDB configuration file, there is a permanent_storage location where mindsdb stores some data. Mindsdb documentation specifies that alongside local dir storage it saves some metadata inside the SQLite database. Is there a way to change the sqlite db with another option in our use case prefered would be postgresql?

like image 772
tino097 Avatar asked Jul 15 '26 16:07

tino097


1 Answers

You can change the default storage option and use different database by adding the new connection string using MINDSDB_DB_CON variable. An example would be

MINDSDB_DB_CON='postgresql://user:secret@localhost'
like image 183
tomhuds Avatar answered Jul 17 '26 16:07

tomhuds