postgresql - How to install progresql-9.3 properly -
i followed installation on document http://www.postgresql.org/download/linux/ubuntu/ , every thing seems fine. when try follow tutorial: http://www.postgresql.org/docs/9.3/static/tutorial-createdb.html, not fine more. error got when try create database table:
$ createdb mydb warning: password file "/home/.../.pgpass" has group or world access; permissions should u=rw (0600) or less warning: password file "/home/.../.pgpass" has group or world access; permissions should u=rw (0600) or less createdb: not connect database template1: fatal: role "..." not exist $ /usr/local/pgsql/bin/createdb mydb bash: /usr/local/pgsql/bin/createdb: no such file or directory
you got 1 warning , 1 error.
you can handle warning command of line in terminal:
$ chmod 600 ~/.pgpass
when write "psql" in terminal, postgres dbms try connect 1 database computer name can't find it. in other hand postgrest create database named "postgres" when install try connect , create database. can connect "postgres" database command:
$ psql postgres
if "connections on unix domain socket "/tmp/.s.pgsql.5432"?" error start database command:
$ pg_ctl -d /usr/local/var/postgres -l /usr/local/var/postgres/server.log start
check result command:
$ pg_ctl -d /usr/local/var/postgres status
Comments
Post a Comment