![見出し画像](https://assets.st-note.com/production/uploads/images/98850583/rectangle_large_type_2_0a6141e6b4fbd0a15958722febb99bb6.png?width=800)
PostgreSQLクライアントのインストール
【対象】
・VirtualBox
対象OS:CentOS7(Ver:7.9.2009)
1.postgresqlをインストール
yum -y install postgresql
![](https://assets.st-note.com/img/1677291428222-16HrVKDqZx.png)
![](https://assets.st-note.com/img/1677291499710-k1d3j2AS3A.png?width=800)
2.psqlコマンドが利用できるか確認
which psql
![](https://assets.st-note.com/img/1677291776842-2dN5lbNOO4.png)
3.接続確認
psql -h ホスト名orIPアドレス -U PostgreSQLのユーザ名 -p Port番号 -d データベース名
★概要欄
・GitHub
https://github.com/tango3304