Last active
October 27, 2023 06:49
-
-
Save koehnlein/d102c6efe38cec7fbd25f6f888097002 to your computer and use it in GitHub Desktop.
ddev dbeaver // UPDATE: A better `ddev dbeaver` command is part of DDEV since https://github.com/ddev/ddev/releases/tag/v1.22.4 and nobody should need this snippet from here anymore.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
## Usage: dbeaver | |
## Description: Open DBeaver and create database connection with the current project | |
## Example: "ddev dbeaver" | |
dbeaver -con "name=ddev-${DDEV_PROJECT}|driver=mariadb|database=db|user=root|password=root|host=127.0.0.1|port=${DDEV_HOST_DB_PORT}|openConsole=true" |
Thanks - works like a charm!
For Ubuntu I needed to use dbeaver-ce
instead of dbeaver
A better ddev dbeaver
command is part of DDEV since 1.22.4 and nobody should need this snippet from here anymore.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Danke :)