Data sources
A data source is a saved connection. Add Data Source opens a blank one. Edit Data Source opens one you already saved. The driver list on the side is PostgreSQL, SQLite, MySQL, MariaDB, DuckDB, then SQL Server.
Name, group, and color
Under General:
- Name is the label in MoleDB.
- Group files it with other data sources. Pick No group, an existing group, or type a new name. A group can have its own color. The connection has a color of its own.
- Environment is Not set, Local, Staging, or Production. Not set uses the Production safety settings. See Safety.
Groups, colors, and the environment are saved in MoleDB. They are not written into the database.
Connection
For PostgreSQL, MySQL, MariaDB, and SQL Server you set Host, Port, User, Password, and Database. Use localhost defaults fills the usual host and port for that driver. Passwords are covered in Passwords.
Leave Database blank on PostgreSQL to browse the databases on that server. On MySQL and MariaDB a blank database lists schemas other than the system schemas. On SQL Server a blank database opens the login's default database.
SQLite and DuckDB ask for a File path. Browse… picks a file. Create new database makes a new file. Create new database if the file does not exist does the same when you connect. Read-only mode cannot create a file.
SSH and TLS sit under Advanced on a server connection. They are not covered on this page.
Test Connection
Test Connection tries the connection and leaves the dialog open. OK saves it. Cancel closes without saving. While you are editing a saved data source, Export… writes the connection without passwords or keys.