admin
|
|
[安装问题] [已解决]
安装错误ERROR: new encoding (UTF8) is incompatible......
安装程序的时候出现下面的错误,安装失败
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.
解决方法: sed -i 's/^/#/g' /etc/sysconfig/i18n
echo 'LANG="en_US.UTF-8"' >> /etc/sysconfig/i18n
locale LANG=en_US.UTF-8 LC_CTYPE="en_US.UTF-8" LC_NUMERIC="en_US.UTF-8" LC_TIME="en_US.UTF-8" LC_COLLATE="en_US.UTF-8" LC_MONETARY="en_US.UTF-8" LC_MESSAGES="en_US.UTF-8" LC_PAPER="en_US.UTF-8" LC_NAME="en_US.UTF-8" LC_ADDRESS="en_US.UTF-8" LC_TELEPHONE="en_US.UTF-8" LC_MEASUREMENT="en_US.UTF-8" LC_IDENTIFICATION="en_US.UTF-8" LC_ALL=
service postgresql-9.3 stop rm -rf /var/lib/pgsql/9.3/data service postgresql-9.3 initdb vi /var/lib/pgsql/9.3/data/pg_hba.conf 修改如下内容 host all all 127.0.0.1/32 ident ↓ host all all 127.0.0.1/32 trust service postgresql-9.3 start
|
|
|
发帖时间:2014-8-23 |
查看数:0 |
回复数:2
|