2018-05-01から1ヶ月間の記事一覧

postgreSQLの接続設定

postgreSQL接続設定 postgresql.confの設定 $ su - postgres $ geany /etc/postgresql/10/main/postgresql.conf listen_addresses = '*' ←コメントを解除し、''内を * に修正 pg_hba.confの設定 '$ sudo geany pg_hba.conf' IPv4 local connections: host al…

postgreSQLのインストールとデータベース作成

postgreSQLのインストールとDB作成 インストール sudo apt-get install -y postgresql 初期化 sudo -i -u postgres db作成 createdb sample_db --encoding=UTF-8 --lc-collate=C --owner=postgres --template=template0 psqlツール ログイン psql -U usernam…