How to install DBeaver's sample database? - dbeaver

How do I get DBeaver to create its sample database after declining its first offer (without re-installing or deleting %APPDATA%\DBeaverData\workspace6) ?
Example screenshots:

You can update your DBeaver version. You can find the "Create Sample Database" under the "Help" button. (Image from DBeaver 21.3.0, will be released soon).
Or you can just specify the way to the sample database directly in the new SQLite connection. Usually, you can find Chinook.db in the %APPDATA%\DBeaverData\workspace6. For me it was "workspace6.metadata.metadata\sample-database-sqlite-1" path.

Related

How to open firebird .fdb file in VS Code?

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.

"Cannot get password" error - Connecting PostgresQL with VS Code

I'm new with PostgreSQL.
I'm trying to add a connection using the extension PostgreSQL by Chris Kolkman, the error mentioned cannot get password on the lower right of VS code.
here's the image.
If you are on MacOS, you need to go into your keychain access and look for ckolkman.vscode-postgres. Delete the entries for this app and then reload your Postgres extension.
After some update, i have same problem on Linux (Ubuntu).
I remove folder ~/.config/Code and reinstall VSCode.
This solved my problem. I hope it will be helpful

Import/Export Dialog Disappeared in pgAdmin

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

typo3 4.7 recreate database

Is it possible to recreate the database from scratch on a typo3 4.7.10?
After a migration the database got lost and only the files are available. My job now is to create a new database for it.
Do I have to install a typo3 4.7 and then use this database or is it somehow possible to recreate the database with the current installation?
You can create an empty db via phpMyAdmin, for example.
Then go to Install Tool -> Basic Configuration and enter your db credentials there. After that you can switch to DB analyzer and click on "Compare" button.
TYPO3 will then prompt all the SQL queries it will perform, which in your case will be "CREATE TABLE ...". Just agree with that and your empty TYPO3 db will be created.

Mysql workbench refresh EER Diagram from server

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.