5
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

WindowsでPostgreSQLの環境変数を設定する方法

Posted at

手順

①Windowsのスタートメニューから「システム環境変数の編集」を選択

②「環境変数」ボタンを押下し環境変数ウィンドウを開く
③「Path」を選択し「編集」ボタンを押下、「環境変数名の編集」ウィンドウを開く
image.png
image.png

④「新規」ボタンを押下し、PostgreSQLのbinフォルダが保存されているパスを設定
⑤「OK」ボタンを押下
image.png

⑥ PCを再起動
⑦コマンドプロンプトを開き「psql --version」コマンドでパスが通っているか確認
image.png

この手順で、コマンドプロンプトやPowerShellからpsqlコマンドが使用できるようになりました。

5
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?