
1: Connecting to a database
The examples in this course are inside mini windows of their own that look like this...
...and this.
You don't need to install SurrealDB or create your own connection to run any of them.
But you can also run the examples in a more manual way, if you prefer. Here is how to do it.
The SurrealDB Studio sandbox: go to the SurrealDB Studio website which defaults to a Sandbox connection, and use that in a separate window. You can copy and paste query samples there. The data won't be erased unless you click on "Reset sandbox environment" or reload the window.
Using SurrealDB Cloud: go to the website for SurrealDB Studio app, click on SurrealDB Cloud and sign up for a free instance.
Locally: Install SurrealDB in your machine, then type
surreal start --user root --pass rootin a terminal window to start the server with a single root user. Then connect using SurrealDB Studio or use the commandsurreal sql --user root --pass root --prettyin a second terminal window to connect using the CLI.
THE PLATFORM
Everything an application and its agents know. Five surfaces, one engine.
Database
Document, graph, vector, time-series and relational in one engine.

Agent Memory
What an agent learns, with its source and its time, in the same engine.

Cloud
Managed clusters in the regions you choose, scaled on demand.

Studio
Query, explore and design the schema from the browser.

MCP
Every model that speaks MCP reaches the database and the memory directly.

IN PRODUCTION
Trusted at scale. Samsung, Nvidia, Verizon, Tencent and Walmart run on SurrealDB.
14,000+
Developers building on SurrealDB Cloud
4M+
Developers building on SurrealDB worldwide
FROM THE TEAMS
SurrealDB gives us a foundation where we can unify semantic search, knowledge graphs, and AI-driven decision making without stitching together multiple systems. Collapsing responsibility into SurrealDB has become our default engineering posture.
VP of Engineering, Later