Skip to content

Commit

Permalink
fix: gotify/server#588 improve mysql connection string
Browse files Browse the repository at this point in the history
  • Loading branch information
jmattheis committed Aug 27, 2023
1 parent 24cf598 commit 4ef2641
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down

0 comments on commit 4ef2641

Please sign in to comment.