0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

DBeaverでテーブルを新規作成したのに、データベースナビゲーターに表示されない

Last updated at Posted at 2023-09-20

お疲れ様です。
新卒一年目の翔太です!
今回は、DBeaverでデータベースを作成する際に、データベースが反映されなかったという問題が発生したため、調査しました。

DBeaverでテーブル作成すると、データベースナビゲーターに表示されませんでした

下記画像のように、テーブルを作成しましたが、画像の左側にあるデータベースナビゲーターに表示されませんでした。
スクリーンショット 2023-09-21 0.33.07.png

表示されないので、もう一度テーブルを作成してみる

下記画像のように、もう既に存在している旨のエラー(SQLエラー [42P04]: ERROR: database "sample" already exists)となりました。
ということは、「存在はしているけど反映されていない、または表示されてない」ということがわかりました。
スクリーンショット 2023-09-21 0.38.20.png

対処法

PostgreSQLの設定でテーブルの設定を「Show all databases」にしないと変更が反映されないことがわかりました。
手順としては、以下の通りです。

  1. データベース名で右クリックをし、編集接続をクリックします。(F4キーでもいけるそうです)
    スクリーンショット 2023-09-21 0.48.44.png

  2. 画面左側の接続設定を選択し、PostgreSQLを選択する
    スクリーンショット 2023-09-21 0.51.10.png

  3. Show all databasesのチェックボックスをクリックして、OKを選択します
    スクリーンショット 2023-09-21 0.52.50.png

  4. 再接続しますか?と出るのでYesを選択します
    スクリーンショット 2023-09-21 0.54.30.png

  5. これでデータベースの作成が反映されます。
    スクリーンショット 2023-09-21 0.56.26.png

参考文献

まとめ

Dbeaverの仕様は結構めんどくさいのと、記事を書いてのoutputは大事だなと感じました

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?