Показаны различия между двумя версиями страницы.
Предыдущая версия справа и слева Предыдущая версия Следующая версия | Предыдущая версия Следующая версия Следующая версия справа и слева | ||
orthanc [2019/12/26 15:31] sector |
orthanc [2019/12/27 01:55] sector |
||
---|---|---|---|
Строка 73: | Строка 73: | ||
{{: | {{: | ||
- | Продолжение скоро. \\ | + | Подключение к СУБД: |
- | В плане подключить MariaDB и собирать все снимки с устройств централизованно. \\ | + | |
+ | <code | ini> | ||
+ | apt-get install default-mysql-server default-mysql-clietn defaultlt-libmysqlclient-dev orthanc-mysql | ||
+ | </ | ||
+ | Увеличиваем размер блока данных: | ||
+ | |||
+ | <code | ini> | ||
+ | mcedit my.cnf | ||
+ | |||
+ | max_allowed_packet = 128M | ||
+ | |||
+ | </ | ||
+ | |||
+ | создаем пользователя и бд, подключаемся: | ||
+ | |||
+ | <code | ini> | ||
+ | mcedit / | ||
+ | |||
+ | cat / | ||
+ | { | ||
+ | /** | ||
+ | * Configuration to use MySQL or MariaDB instead of the default | ||
+ | * SQLite back-end of Orthanc. You will have to install the | ||
+ | * " | ||
+ | **/ | ||
+ | " | ||
+ | // Enable the use of MySQL to store the Orthanc index? | ||
+ | " | ||
+ | | ||
+ | // Enable the use of MySQL to store the DICOM files? | ||
+ | " | ||
+ | | ||
+ | // Parameters of the MySLQ database | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | | ||
+ | // Optional: Disable the locking of the MySQL database | ||
+ | " | ||
+ | } | ||
+ | } | ||
+ | |||
+ | </ | ||
+ | |||
+ | перезапускаем: | ||
+ | |||
+ | <code | ini> | ||
+ | services orthanc restart | ||
+ | </ |