【PostgreSQL】ログイン手順

公開日時:2020年10月04日 / 最終更新日時:2020年10月04日

PostgreSQL へのログイン手順です。

 

psql コマンドでログインします。

 

■【Windows】コマンドプロンプトからのログイン

C:\Users\Administrator>psql -U postgres -h test-postgresql

Password for user postgres: ← パスワードを入力

 

 

 

■【Windows】データベースを指定してのログイン

C:\Users\Administrator>psql -U postgres -d testdb -h test-postgresql 
Password for user postgres:  ← パスワードを入力
psql (11.8, server 9.6.18) 
SSL connection (protocol: TLSv1.2, cipher: ECDHE-RSA-AES256-GCM-SHA384, bits: 256, compression: off) 
Type "help" for help. 
 
testdb=> 

 

 

 

 

Posted by 100%レンタルサーバーを使いこなすサイト管理人

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です

AlphaOmega Captcha Medica  –  What Do You See?
     
 

このサイトはスパムを低減するために Akismet を使っています。コメントデータの処理方法の詳細はこちらをご覧ください

Secured By miniOrange