DBeaver how to switch database in sql editor

You can change the currently selected database when you create new sql tabs by selecting it from the dropdown.

dbeaver change database

When you do so be sure to double-click on the schema you want to bring into focus. Then you can open new sql editors with ctrl+].


You can set a different database as active in your current connection by right-clicking in the Database Navigator pane and selecting "Set active", below I am switching from 'postgres' to my 'report_service' DB (this is version 6.1.2, not sure about other versions)

enter image description here

EDIT: I have recently upgraded to version 6.3.5 and this now has "Set as default" in the dropdown rather than "Set active" but this seems to be roughly the same behaviour

Tags:

Dbeaver