I'm using DBeaver 3.8.0 and trying to setup general connection to my local PostgreSQL database.
To view all the databases i have, I check the "Show non-default databases" checkbox. And when I try to access Schemas of one of my databases - I'm getting the error
org.jkiss.dbeaver.DBException: Can't access non-default database
Try to set your database active which you choose to open the schema:
Right-click on the Db Connection in the database navigator (right-click on PostgreSQL)
Click on edit connection
Select PostgreSQL tab
Select Show all databases
Click ok to save
Note: I am using DBeaver Enterprise 7.0.0
For more recent versions of DBeaver, you can improve this confusing default behavior.
You need to change an "Editors" setting. There are several ways to get to the setting, an easy way is:
[Postgres - #name#] right-click > Properties
Under Editors, check the auto-sync box:
After that, any time you click on a database in the right-hand navigator, it will automatically be set as the active database, so things should just work.
These types of pain points are enough to drive you away from new tools, this one in particular. Hang in there!
Related
I want to see and check .fdb file. And I am using VS Code to open it. I installed "DB Explorer For Firebird Databases" for this and file opened. However, the opened file was corrupt. How can I fix this?
A Firebird database file is a file to be read by the Firebird database engine and queried using SQL. It is not something to be opened in a text editor, like you did in the screenshot.
The DB Explorer For Firebird Databases is a plugin for connecting to a Firebird database server, and executing queries against that server. It is not something for viewing the contents of a FDB file directly.
Unfortunately, as far as I'm aware, the DB Explorer For Firebird Databases has been broken for a while now, and it seems it is no longer maintained. You can connect to a database, and see the tables it has, but attempting to execute queries or view data will not show any query results, but instead shows a broken image icon (the issue for this bug has been open since 2019, so I guess it is unlikely to get fixed).
You may want to consider using something like DBeaver or FlameRobin to query a Firebird database, but that will still require having a Firebird database server installed.
I use a PostgreSQL database on my local computer. I always import csv files via right-click to the relevant table and choosing the Import/Export Dialog. However, when I opened the pgadmin last time, there was no import/export option in the options. I do not know what happened to it. I, once, took a backup of files and use this backup file to migrate the database to another version of Postgres. I am not sure but I want to ask might one of the options that I selected or did not select cause this trouble?
I also tried to go in an alternative way by using copy from 'C://path/data.csv method and it did not work. then I tried \copy from 'C://path/data.csv but it did not even recognize the \ symbol and gave an error.
I wonder what happened to Postgres or pgadmin and how can I find a solution to import my data to the Postgres database?
I had the same issue, looked everywhere but nothing came up on WHY this happened or HOW to fix it.
RESOLUTION: I was able to resolve this by downloading the latest version of pgadmin4.
After downloading, the Import/Export dialog reappeared.
Hope this helps you too!
Import/Export Dialog - Resolved
With Microsoft SQL Server, there is a great schema comparison tool which lets you keep a database schema under source control and push changes in both directions (schema project to database and database to schema project) which can then be kept under source control. This made development very easy directly on the local database, push the changes to the source controlled project and then apply the changes to other environments when required by using the schema comparison tool to generate the updates from the diff.
Is there any way to do something similar to this with DataGrip for PostgreSQL?
Including how to keep a database as schema files.
I've seen that there is VCS integration but I can't get it to generate a project from a database and Google doesn't seem to help.
Any help would be greatly appreciated.
Thanks, James
There is no full integration for now. This is the ticket to follow: https://youtrack.jetbrains.com/issue/DBE-3852
But you can now already generate you file-project for your database.
Select schema in the database explorer
Context menu -> SQL scripts -> SQL Generator
Choose the tab with the diskette, select options
Press Save.
Is there a way to export my existing connections from MySQL Workbench to Sequel PRO
I have been browsing through all options I could and I cant find an option that would let me export all my connections from workbench
I have a lot of connections in the workbench and I am planning on using sequel pro now.
Unfortunately due to the fact that Sequel Pro does not have option to import connections at all, you will be unable to import the connections.
There are two ways in order to export your connections from MySQL Workbench into a file:
Follow the procedure to export the connections from the menu:
Open and Select MySQL Workbench > In the Menu bar select Tools > Configuration > Backup Connections
Find the CONNECTIONS.XML file located at
Users/Username/Library/Application Support/MySQL/Workbench/connections.xml
About Sequel Pro...
The connections strings are stored in the following preference file:
~/Library/Preferences/com.sequelpro.SequelPro.plist
The passwords are stored in the Mac OSX Keychain, which is stored here:
~/Library/Keychains/login.keychain
You can import a plist file using Sequel Pro. Click the gear icon in the bottom left.
credit to james-chevalier for showing me how to do this.
Open Keychain Access using Alfred.
Find (top right of GUI): sequel
Double-click the result you're looking for... It should be something like root#localhost/
Checkbox Show Password
Type in your Mac password
Enjoy
is it possible to refetch or reimport a whole database structure from a server in mysql workbench?
I've tried the synchronize options (both Model and any source), but it always works the other way round (workbench->server) and drops new columns which i've created online / outside of mysql workbench..
i'm using the latest version 5.2.41.
Thanks for any help
Use the latest version 5.2.42 and do a "Database > Synchronize with Any Source" because it appears that you are still experiencing this bug
http://bugs.mysql.com/bug.php?id=61211
At the step "Select changes to Apply", default it "Update source" (you see the arrow from Left->Right). In your case, you should select the tables and click "Update Model", it will sync from Mysql to Model.