コマンドプロンプト等で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