Skip to content

Commit

Permalink
docs: update r2dbc url for MariaDB (#344)
Browse files Browse the repository at this point in the history
* docs: update r2dbc url for MariaDB

* Update

Signed-off-by: Ryan Wang <[email protected]>

---------

Signed-off-by: Ryan Wang <[email protected]>
Co-authored-by: Ryan Wang <[email protected]>
  • Loading branch information
wan92hen and ruibaby authored Apr 30, 2024
1 parent 7e0fbd8 commit 228d058
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
8 changes: 7 additions & 1 deletion docs/getting-started/install/slots/docker-args.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,11 @@
| ----------- | ---------------------------------------------------------------------------------- | -------------------------- |
| PostgreSQL | `r2dbc:pool:postgresql://{HOST}:{PORT}/{DATABASE}` | postgresql |
| MySQL | `r2dbc:pool:mysql://{HOST}:{PORT}/{DATABASE}` | mysql |
| MariaDB | `r2dbc:pool:mariadb://{HOST}:{PORT}/{DATABASE}` | mysql |
| MariaDB | `r2dbc:pool:mysql://{HOST}:{PORT}/{DATABASE}` | mysql |
| H2 Database | `r2dbc:h2:file:///${halo.work-dir}/db/halo-next?MODE=MySQL&DB_CLOSE_ON_EXIT=FALSE` | h2 |

:::caution
由于 MariaDB 数据库驱动目前存在问题,使用 MariaDB 数据库时也选择使用 MySQL 驱动,即链接地址格式为 `r2dbc:pool:mysql://{HOST}:{PORT}/{DATABASE}`

详情可见:<https://github.com/halo-dev/halo/issues/5534>
:::
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,11 @@
| ----------- | ---------------------------------------------------------------------------------- | -------------------------- |
| PostgreSQL | `r2dbc:pool:postgresql://{HOST}:{PORT}/{DATABASE}` | postgresql |
| MySQL | `r2dbc:pool:mysql://{HOST}:{PORT}/{DATABASE}` | mysql |
| MariaDB | `r2dbc:pool:mariadb://{HOST}:{PORT}/{DATABASE}` | mysql |
| MariaDB | `r2dbc:pool:mysql://{HOST}:{PORT}/{DATABASE}` | mysql |
| H2 Database | `r2dbc:h2:file:///${halo.work-dir}/db/halo-next?MODE=MySQL&DB_CLOSE_ON_EXIT=FALSE` | h2 |

:::caution
由于 MariaDB 数据库驱动目前存在问题,使用 MariaDB 数据库时也选择使用 MySQL 驱动,即链接地址格式为 `r2dbc:pool:mysql://{HOST}:{PORT}/{DATABASE}`

详情可见:<https://github.com/halo-dev/halo/issues/5534>
:::

0 comments on commit 228d058

Please sign in to comment.