我正在尝试使用以下命令连接到psql,但收到有关未设置本地设置的消息,如何解决该问题。
pi@raspberrypi ~/develop/radar $ psql -U postgres
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_CTYPE = "UTF-8",
LANG = "en_GB.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
psql: FATAL: Peer authentication failed for user "postgres"
/etc/bash.bashrc:export LC_ALL ='en_GB.utf8'删除或编辑此行。
—
Arjen Heidinga '18