mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-03-12 04:35:27 -07:00
Updated Using a different database (markdown)
parent
9efcfe5ddb
commit
c14b8c3e8f
@ -37,19 +37,40 @@ Supported versions: https://github.com/PomeloFoundation/Pomelo.EntityFrameworkCo
|
||||
Please ensure that your database character set is set to `utf8mb4`. You can check your db charset by running the following query: `show variables like 'character_set_database';`<br>
|
||||
You can also point all of them at the same database, as each table has a unique name regardless (as below):
|
||||
|
||||
**Single Database**
|
||||
```json
|
||||
{
|
||||
"OmbiDatabase": {
|
||||
"Type": "MySQL",
|
||||
"ConnectionString": "Server=192.168.1.7;Database=Combined;User=ombi"
|
||||
"ConnectionString": "Server=192.168.1.7;Database=ombi;User=ombi"
|
||||
},
|
||||
"SettingsDatabase": {
|
||||
"Type": "MySQL",
|
||||
"ConnectionString": "Server=192.168.1.7;Database=Combined;User=ombi"
|
||||
"ConnectionString": "Server=192.168.1.7;Database=ombi;User=ombi"
|
||||
},
|
||||
"ExternalDatabase": {
|
||||
"Type": "MySQL",
|
||||
"ConnectionString": "Server=192.168.1.7;Database=Combined;User=ombi"
|
||||
"ConnectionString": "Server=192.168.1.7;Database=ombi;User=ombi"
|
||||
}
|
||||
}
|
||||
```
|
||||
_The above example shows using a single "ombi" database for all ombi databases._
|
||||
|
||||
_It is recommended to use separate databases for each, as it is much easier to drop a database then to drop specific tables._
|
||||
**Multiple Databases**
|
||||
```json
|
||||
{
|
||||
"OmbiDatabase": {
|
||||
"Type": "MySQL",
|
||||
"ConnectionString": "Server=192.168.1.7;Database=Ombi;User=ombi"
|
||||
},
|
||||
"SettingsDatabase": {
|
||||
"Type": "MySQL",
|
||||
"ConnectionString": "Server=192.168.1.7;Database=OmbiSettings;User=ombi"
|
||||
},
|
||||
"ExternalDatabase": {
|
||||
"Type": "MySQL",
|
||||
"ConnectionString": "Server=192.168.1.7;Database=OmbiExternal;User=ombi"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
Loading…
x
Reference in New Issue
Block a user