1.0 KiB
1.0 KiB
- Pull down and run Docker image with the following command on your local computer (this example is running Linux):
docker run --rm --pull always -p 8000:8000 surrealdb/surrealdb:latest start
--user root --pass root
- Note that this stores SurrealDB's data in memory so that when the container is shutdown, your data is gone! Run this Docker command to persist your data:
docker run --rm --pull always -p 8000:8000 -v /home/wyatt/Source/TriviaDb/:/mydata surrealdb/surrealdb:latest start
--user root --pass root file:/mydata/database.db
- Note the following down:
- Namespace: test
- Database: test
- User: root
- Password: root
- Enter Surrealist (SurrealDB manager) and add new session
- Enter the following in the "Create Session" modal:
- Name of your session (could be literally anything)
http://localhost:8000
as your Endpoint URL- Authentication Method should be "Root Authentication"
- Namespace given
- Database given
- User given
- Password given
- Clicking on "Save details" should get you connected!