mirror of
https://github.com/netbirdio/docs.git
synced 2026-04-16 07:26:35 +00:00
Add selfhosted instructions for activity on mysql (#446)
This commit is contained in:
15
src/pages/selfhosted/activity-mysql-store.mdx
Normal file
15
src/pages/selfhosted/activity-mysql-store.mdx
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
# Activity Events MySQL store
|
||||||
|
|
||||||
|
## Using MySQL for fresh installations
|
||||||
|
|
||||||
|
To enable MySQL add to your management service the following environmental variable:
|
||||||
|
```bash
|
||||||
|
NB_ACTIVITY_EVENT_STORE_ENGINE=mysql
|
||||||
|
NB_ACTIVITY_EVENT_MYSQL_DSN="mysql://<username>:<password>@<host>:<port>/<db_name>"
|
||||||
|
```
|
||||||
|
|
||||||
|
You can switch back to sqlite storage by setting the `NB_ACTIVITY_EVENT_STORE_ENGINE` variable to `sqlite`.
|
||||||
|
<Note>
|
||||||
|
Switching between storage options requires migration steps to prevent data loss.
|
||||||
|
</Note>
|
||||||
|
|
||||||
Reference in New Issue
Block a user