Skip to content

Instantly share code, notes, and snippets.

@pavelsr
Last active June 2, 2020 11:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pavelsr/26c5a0bbf101dd2baa6c3c5ef486e40e to your computer and use it in GitHub Desktop.
Save pavelsr/26c5a0bbf101dd2baa6c3c5ef486e40e to your computer and use it in GitHub Desktop.
otrs ошибки при установке

TO-DO: пользователь otrs в postgres

Далее настраиваем postgres для поддержки UTF8: https://stackoverflow.com/a/16737776/1441592

Настройка кластера PostgreSQL

По умолчанию кластер создаётся с кодировкой SQL_ASCII (\l), чтоб работал otrs нужно либо сделать initdb с кодировкой utf8 либо создать базу данных ручками

CREATE DATABASE otrsdb WITH ENCODING 'UTF8' TEMPLATE=template0;

An important restriction, however, is that each database's character set must be compatible with the database's LC_CTYPE (character classification) and LC_COLLATE (string sort order) locale settings.

Источник: https://www.postgresql.org/docs/9.3/multibyte.html

CREATE ROLE "otrs_db_user" Ошибка CREATE DATABASE "otrsdb"

ERROR: new encoding (UTF8) is incompatible with the encoding of the template database (SQL_ASCII) HINT: Use the same encoding as in the template database, or use template0 as template.

Если параметр -E или --encoding не задан, initdb пытается определить подходящую кодировку в зависимости от указанной или заданной по умолчанию локали.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment