
あきぞらです。
PostgreSQLに接続するコマンドを紹介したいと思います。
簡単なコマンドで接続することができます。
$ psql -h ホスト名 -p ポート番号 -U ロール名 -d データベース名
ホストがlocalhostであれば、こんな感じで接続できます。
psql -h localhost -p 5432 -U postgres -d testdata
Copyright© あきぞらてっく , 2025 All Rights Reserved Powered by AFFINGER5.