MindsDB Authentication
MindsDB does not require authentication by default. If you want to enable authentication, you can set theMINDSDB_USERNAME
and MINDSDB_PASSWORD
environment variables.
Example
MindsDB Storage
By default, MindsDB stores the configuration files by determining appropriate platform-specific directories, e.g. a “user data dir”:- On Linux
~/.local/share/mindsdb/var
- On MacOS
~/Library/Application Support/mindsdb/var
- On Windows
C:\Documents and Settings\<User>\Application Data\Local Settings\<AppAuthor>\mindsdb\var
MINDSDB_STORAGE_DIR
location, MindsDB stores users’ data, models and uploaded data files, the static assets for the frontend application and the
sqlite.db
file.
You can change the default storage location using MINDSDB_STORAGE_DIR
variable.
Example
MindsDB Configuration Storage
MindsDB usessqlite
database by default to store the required configuration as models, projects, files metadata etc.
The full list of the above schemas can be found here. You can change the
default storage option and use different database by adding the new connection string using MINDSDB_DB_CON
variable.
Example
MindsDB APIs
TheMINDSDB_APIS
environment variable lets users define which APIs to start. Learn more about the available APIs here.
Example
MindsDB Logs
This environment variable defines the level of logging generated by MindsDB. You can choose one of the values defined here. TheINFO
level is used by default.
Example
MindsDB Default Project
By default, MindsDB creates a project namedmindsdb
where all the models and other objects are stored. You can change the default project name by setting the MINDSDB_DEFAULT_PROJECT
environment variable.
If this environment variable is set or modified after MindsDB has started, the default project will be renamed accordingly upon restart. To start using the new default project, a USE
statement will also need to be executed.
Example
MindsDB’s PID File
When running MindsDB via Docker or Docker Extension, the PID file is not used by default. Users can opt for enabling the PID file by defining theUSE_PIDFILE
environment variable.
If used, the PID file is stored in the temp directory ($TMPDIR
on MacOS and Linux, %TEMP%
on Windows) under the mindsdb
folder.