From 4ef26419fc729c30d7de59f73ed3167587c5596f Mon Sep 17 00:00:00 2001 From: Jannis Mattheis Date: Sun, 27 Aug 2023 09:54:52 +0200 Subject: [PATCH] fix: gotify/server#588 improve mysql connection string --- docs/configuration.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/configuration.md b/docs/configuration.md index 21bf865..a74c83c 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -84,11 +84,11 @@ $ wget -O config.yml https://raw.githubusercontent.com/gotify/server/master/conf ## Database -| Dialect | Connection | -| :------: | :------------------------------------------------------------------: | -| sqlite3 | `path/to/database.db` | -| mysql | `gotify:secret@/gotifydb?charset=utf8&parseTime=True&loc=Local` | -| postgres | `host=localhost port=3306 user=gotify dbname=gotify password=secret` | +| Dialect | Connection | +| :------: | :--------------------------------------------------------------------------------: | +| sqlite3 | `path/to/database.db` | +| mysql | `gotify:secret@tcp(localhost:3306)/gotifydb?charset=utf8&parseTime=True&loc=Local` | +| postgres | `host=localhost port=5432 user=gotify dbname=gotifydb password=secret` | When using postgres without SSL then `sslmode=disable` must be added to the connection string. See [#90](https://github.com/gotify/server/issues/90).