From ed354ed5ff0d68ba1f163787146842ec1a8b196f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robin=20P=C3=BCttmann?= Date: Thu, 9 Oct 2025 10:52:10 +0200 Subject: [PATCH] Add selfhosted instructions for activity on mysql --- src/pages/selfhosted/activity-mysql-store.mdx | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/pages/selfhosted/activity-mysql-store.mdx diff --git a/src/pages/selfhosted/activity-mysql-store.mdx b/src/pages/selfhosted/activity-mysql-store.mdx new file mode 100644 index 00000000..dd686f15 --- /dev/null +++ b/src/pages/selfhosted/activity-mysql-store.mdx @@ -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://:@:/" +``` + +You can switch back to sqlite storage by setting the `NB_ACTIVITY_EVENT_STORE_ENGINE` variable to `sqlite`. + + Switching between storage options requires migration steps to prevent data loss. + +