PostgreSQL接続

1 min 58 views

コマンドプロンプト等でPostgreSQLに接続する方法を紹介します。

構文


構文につきましては、「Windows」、「Linux」共通です。

psql -U ユーザ名

使用例

[root@sasukepg setting]# psql -U postgres
Password for user postgres:
//パスワードが求められるので、入力します。
Welcome to psql××, the PostgreSQL interactive terminal.
Type: copyright for distribution terms
h for help with SQL commands
? for help with psql commands
g or terminate with semicolon to execute query
q to quit
さすけ

さすけ

インフラエンジニアとして数々の大手サーバーを構築を実施し、現在はWebサーバーの構築、サイト作成を中心に活躍しています。

FOLLOW

カテゴリー:
関連記事