...
For CentOS 7.x:Code Block sudo /usr/pgsql-9.6/bin/postgresql96-setup initdb
For CentOS 6.x, RHEL 6.x:
Code Block sudo service postgresql-9.6 initdb
For RHEL 7.x:
Code Block sudo /usr/pgsql-9.6/bin/postgresql96-setup initdb
For Ubuntu 14.04 / 16.04:
Code Block pg_createcluster -d /var/lib/postgresql/9.6/main 9.6 main
Verify datastyle value
Info | |||||
---|---|---|---|---|---|
NOTE: This configuration step only applies if the
|
Please verify the datestyle setting for your PostgreSQL instance.
Steps:
Execute the following in PostgreSQL:
Code Block trifacta=# show datestyle; DateStyle ----------- ISO, MDY (1 row)
- If the first value is not
ISO
, please edit the following file (PostgreSQL 9.6):- RHEL/CentOS:
/var/lib/pgsql/9.6/data/postgresql.conf
- Ubuntu:
/etc/postgresql/9.6/main/postgresql.conf
- RHEL/CentOS:
Set the
datestyle
property to the following:Code Block datestyle = 'ISO,MDY';
- Save the file. Restart the
.D s platform
MySQL
No additional steps are required to initialize the databases in MySQL.
...