How to find the Magento 2 database credentials using the command line?

database
command-line
env.php
grep
credentials
(Dmitry Fedyuk) #1
grep -E "host|dbname|username|password|table_prefix" app/etc/env.php

0 Likes

How to find the Magento 2 backend's base URL using the command line?
app/etc/env.php — the place where Magento 2 stores the database credentials, backend URL, enabled cache types, etc
(Dmitry Fedyuk) #2

See also:

0 Likes