LinuxCommandLibrary

dbeaver

universal database tool and SQL client

TLDR

Launch DBeaver GUI

$ dbeaver
copy
Open specific database connection
$ dbeaver -con "name=[connection_name]"
copy
Connect with inline parameters
$ dbeaver -con "driver=postgresql|host=localhost|database=mydb"
copy
Execute SQL file on connection
$ dbeaver -con "name=[connection]" -f [script.sql]
copy
Export data to file
$ dbeaver -export "name=[connection]|table=[tablename]|file=[output.csv]"
copy
Run in headless mode for scripting
$ dbeaver-cli -con "name=[connection]" -f [script.sql]
copy

SYNOPSIS

dbeaver [options]

DESCRIPTION

DBeaver is a free, universal database tool and SQL client for developers and database administrators. It supports a wide range of databases including PostgreSQL, MySQL, MariaDB, SQLite, Oracle, SQL Server, and many others through JDBC drivers.
The application provides a graphical interface for database management including SQL editing with syntax highlighting and autocomplete, visual query builder, ER diagrams, data export/import, and schema comparison. It also supports NoSQL databases like MongoDB and Cassandra.
DBeaver includes a command-line interface for automation tasks such as running SQL scripts, exporting data, and managing connections without the GUI.

PARAMETERS

-con CONNECTION

Connection parameters (name, driver, host, database, user, etc.).
-f FILE
SQL script file to execute.
-export PARAMS
Export data with specified parameters.
-nosplash
Start without splash screen.
-data DIR
Workspace directory location.
-nl LOCALE
Override system locale.
-clean
Clear cached data and start fresh.
--help
Display help information.

CAVEATS

Requires Java Runtime Environment. Some enterprise features require the paid Enterprise Edition. Large result sets may consume significant memory. Connection configurations are stored in workspace and may need migration between versions.

HISTORY

DBeaver was created by Serge Rider and first released in 2010. It started as a simple database viewer and evolved into a comprehensive database management tool. The project is maintained by DBeaver Corp with both community and enterprise editions.

SEE ALSO

mysql(1), psql(1), sqlite3(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community