postgresql

設定

testuser@popowa:/etc$ sudo su postgres
postgres@popowa:/etc$ createuser testuser
Shall the new user be allowed to create databases? (y/n) y
Shall the new user be allowed to create more new users? (y/n) y
CREATE USER
postgres@popowa:/etc$ exit
exit
testuser@popowa:/etc$ createdb testdb
CREATE DATABASE
testuser@popowa:/etc$ psql -l

       List of databases~
  Name    |  Owner   | Encoding~

template0 | postgres | EUC_JP~
template1 | postgres | EUC_JP~
testdb    | amori    | EUC_JP~

(3 rows)

testuser@popowa:/etc$


Last-modified: 2012-03-12 (月) 17:05:14 (166d)