Creates a new database connection. The example parameters below are for connecting to MySQL. See here for which parameters to use for your datasource.
curl --request POST \ --url http://127.0.0.1:47334/api/databases \ --header 'Content-Type: application/json' \ --data '{ "database": { "name": "<string>", "engine": "<string>", "parameters": { "user": "<string>", "password": "<string>", "host": "<string>", "port": "<string>", "database": "<string>" } } }'
{ "name": "<string>", "engine": "<string>", "type": "<string>" }
The REST API endpoints can be used with MindsDB running locally at http://127.0.0.1:47334/api.
Show child attributes
Parameters used to connect to your data source. These example parameters are for connecting to MySQL. See here for which parameters to use for your datasource.
Handler used to create this database (e.g. postgres)
Type of database (data | project | system)