Cant create database on remote postgresql server
Posted: Mon Nov 22, 2010 9:59 am
I set up a remote server but on debian 5.0 (postgresql 8.3.11 with schemas).
But when i try to create a db in PT3 i get the following error.
Unable to create PostgreSQL database: PT3_DB
Reason: Unable to execute query: CREATE DATABASE "PT3_DB" WITH TEMPLATE = template0 ENCODING = 'SQL_ASCII';; Reason: Fatal Error (ERROR: encoding SQL_ASCII does not match server's locale en_US.UTF-8 DETAIL: The server's LC_CTYPE setting requires encoding UTF8. )
I looked into the postgresql.conf but there is no lc_type to change.
Any idea as to what i should do?
When i try to run the command that is shown in the errormesasage directly in the psql command window it works, and creates a DB.
But when i try to create a db in PT3 i get the following error.
Unable to create PostgreSQL database: PT3_DB
Reason: Unable to execute query: CREATE DATABASE "PT3_DB" WITH TEMPLATE = template0 ENCODING = 'SQL_ASCII';; Reason: Fatal Error (ERROR: encoding SQL_ASCII does not match server's locale en_US.UTF-8 DETAIL: The server's LC_CTYPE setting requires encoding UTF8. )
I looked into the postgresql.conf but there is no lc_type to change.
Any idea as to what i should do?
When i try to run the command that is shown in the errormesasage directly in the psql command window it works, and creates a DB.