❯ man spanna/getting-started
Create your first connection
Add your first MongoDB connection in Spanna and verify that browsing, querying, and optional Cloud Sync are working.
› /docs/create-your-first-connection
Your first connection is the step that turns Spanna from a clean interface into a useful database tool.
You only need a valid MongoDB connection string and a clear idea of which environment you are connecting to.
What you need
Before adding a connection, make sure you have one of these:
- a MongoDB Atlas connection string
- a local MongoDB server
- a self-hosted MongoDB deployment URI
If it is a shared or production-like environment, label it clearly from the start. That makes the sidebar much easier to trust later.
Add the connection
- Open Spanna.
- Click the add connection action in the left sidebar.
- Paste your MongoDB connection string.
- Give the connection a clear name.
- Save the connection.
Verify that it works
Once the connection is saved:
- expand the connection in the sidebar
- open a database
- open a collection
- confirm documents load
If you want Cloud Sync
If you sign in with a free account, saved connections can sync across supported Spanna clients. If you prefer, you can skip sign-in at first and add it later.
Common connection problems
If the connection does not open, check:
- username and password
- Atlas network access rules
- SRV DNS resolution if you use
mongodb+srv - whether the target server is reachable from your machine
Most first-connection issues come down to credentials, IP allowlists, or DNS.
# something missing or wrong? tell us · or open a PR