How to get admin frontend url/database of the magento2 instance ?

admin/ March 25, 2016/ Linux, Magento2/ 0 comments

To get the admin frontend url or database name.

Connect the ftp or connect server using ssh.

ssh <username>@<host>

$ cd /var/www/html

nano app/etc/env.php 
<?php return array (
'backend' =>
array (
'frontName' => 'admin_siodmk',
),
'install' =>
array (
'date' => 'Fri, 25 Mar 2016 11:28:15 +0000',
),
'crypt' =>
array (
'key' => '2cb260d52761bd9e933f97562305454d',
),
'session' =>
array (
'save' => 'files',
),
'db' =>
array (
'table_prefix' => '',
'connection' =>
array (
'default' =>
array (
'host' => 'localhost',
'dbname' => 'magento2',
'username' => 'root',
'password' => 'XXXXXX',
'active' => '1',
),
),
),

you will find the admin frontend  url and database name

 

Leave a Reply