First Run
Create your first DBVision account and configure PostgreSQL, MySQL, SQL Server, or SQLite connections.
When DBVision starts for the first time, sign-up is open until the first user account is created. After the first account exists, registration is closed unless DBVISION_ALLOW_SIGNUP=true.
Create an account
- Open your DBVision URL (by default
http://localhost:3000). - Register the initial account on the sign-up page.
- Once signed in, you land on the connections workspace where you can add, test, and manage target databases.
Add a connection
Each saved connection specifies:
- Name and Engine (
postgres,mysql,mssql, orsqlite). - Connection target: host, port, database, user, and password for server engines, or a file path for SQLite.
- AI data mode:
Schema only(default),Sample rows, orQuery results. Controls what row data built-in AI and MCP tools can read.
You can test a connection before saving it.
Engine-specific notes
PostgreSQL
Use a dedicated read-only role for PostgreSQL targets. Grant CONNECT on the database, USAGE on target schemas, and SELECT on the tables or views you want DBVision to inspect, with ALTER DEFAULT PRIVILEGES if future tables should be readable automatically.
MySQL
Connect with a dedicated user that only has SELECT (and SHOW VIEW where needed) privileges. DBVision inspects SHOW GRANTS and refuses accounts with global write privileges, GRANT OPTION, PROXY, or write privileges on the mysql, sys and performance_schema schemas. Queries run in read-only transactions.
SQL Server
Create a dedicated SQL login and grant read access in the target database:
USE master;
CREATE LOGIN dbvision_reader WITH PASSWORD = '<generated password>';
GO
USE [YourDatabase];
CREATE USER dbvision_reader FOR LOGIN dbvision_reader;
ALTER ROLE db_datareader ADD MEMBER dbvision_reader;For narrower access, grant SELECT on specific schemas or tables instead of db_datareader membership. DBVision checks effective permissions on the server and target database and refuses write-capable logins.
SQLite
SQLite connections are only available when DBVISION_SQLITE_DIR is set to an existing directory. Relative paths in the connection form resolve against DBVISION_SQLITE_DIR, and DBVision rejects paths or symlinks escaping that directory.
Keep DBVISION_SQLITE_DIR writable only by trusted accounts. Target databases in WAL mode may need to create -shm and -wal files next to the database even when opened read-only; use rollback-journal mode when placing a target database on a read-only mount.