问题描述
由于某种原因,我无法更改PostgreSQL中错误消息的语言。我试图在第一行中设置用于在其中创建模式的脚本内的语言:
SET lc_messages TO'en_US。 UTF-8';
我也做了
似乎没有任何效果。我仍在用德语获取消息。
我还能尝试 吗?
如果您有权访问$ datadir\postgresql.conf,则将lc_messages参数更改为'English_United States.1252'。
必须重新加载配置之后。
我的配置设置在这里;
For some reason I cannot change the language of the error messages from PostgreSQL. I have tried to set the language inside the script for creating the schema in at the first line:
SET lc_messages TO 'en_US.UTF-8';
and I also did this, setting LC_MESSAGES
to English
but it didn't help. Yes, I restarted the service after changing the value.
Nothing seems to work. I am still getting my messages in German.
What else can I try?
if you have permission for access to $datadir\postgresql.conf, you change lc_messages parameter to 'English_United States.1252'.
After you must reload configuration.
My config settings is here;
这篇关于将错误消息设置为英语不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!