

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.