25 lines
1.0 KiB
Markdown
25 lines
1.0 KiB
Markdown
|
1. Pull down and run Docker image with the following command on your local computer (this example is running Linux):
|
||
|
```shell
|
||
|
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:
|
||
|
```shell
|
||
|
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
|
||
|
```
|
||
|
2. Note the following down:
|
||
|
1. Namespace: test
|
||
|
2. Database: test
|
||
|
3. User: root
|
||
|
4. Password: root
|
||
|
3. Enter Surrealist (SurrealDB manager) and add new session
|
||
|
4. Enter the following in the "Create Session" modal:
|
||
|
1. Name of your session (could be literally anything)
|
||
|
2. `http://localhost:8000` as your Endpoint URL
|
||
|
3. Authentication Method should be "Root Authentication"
|
||
|
4. Namespace given
|
||
|
5. Database given
|
||
|
6. User given
|
||
|
7. Password given
|
||
|
5. Clicking on "Save details" should get you connected!
|