initial commit
This commit is contained in:
25
Databases/SurrealDB/SurrealDB Local Setup.md
Normal file
25
Databases/SurrealDB/SurrealDB Local Setup.md
Normal file
@@ -0,0 +1,25 @@
|
||||
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!
|
1
Databases/SurrealDB/SurrealDB Server Setup.md
Normal file
1
Databases/SurrealDB/SurrealDB Server Setup.md
Normal file
@@ -0,0 +1 @@
|
||||
1. Login to VPS of choice
|
Reference in New Issue
Block a user