database locale is incompatiable with operating system

我在postgresql迁移完数据库目录,然后启动服务能启动,但是使用客户端访问的时候,发现无法访问。提示服务器编码环境与postgresql数据库init的时候不一致。

在ubuntu环境下修改完/etc/default/locale文件后,启动报如下问题:

database locale is incompatiable with operating system

经过寻找资料发现,需要执行如下操作

localedef -f UTF-8 -i en_GB en_GB.UTF-8

您需要根据语言设置进行更改.

然后重启postgresql就行了

猜你喜欢

转载自blog.csdn.net/wjg1314521/article/details/110427836
今日推荐