db:console
Open an interactive MariaDB console using the credentials from .env.
Usage
splent db:console
Description
Reads the database credentials (MARIADB_USER, MARIADB_PASSWORD, MARIADB_HOSTNAME, MARIADB_DATABASE) from the environment and opens a mysql interactive session directly. Useful for quick database inspection without needing to remember connection parameters.
Requirements
- The database must be reachable.
mysqlclient must be available in the container (mariadb-clientinstalled in the CLI image).