database:connect

Shows DB connection

Usage:

drupal database:connect [arguments] 
dbco
sqlc

Available arguments

ArgumentDetails

key

Database key from settings.php

target

Database target from settings.php

Examples

Connects to an specified database with key and target, or if no arguments default key and default target will be passed

drupal database:connect \
  <key> <target>