Skip to Content

Database connectivity credentials and configuration file

How to view database connectivity credentials and configuration file?


Overview: This article provides details on database configuration files in Ezeelogin and includes steps for viewing database credentials.


Step 1: The database configuration files are stored on the Ezeelogin server in /usr/local/etc/ezlogin/ez.conf.

system_folder /var/www/ezlogin/

force_https no

uri_path /ezlogin/

db_host localhost

db_port /var/lib/mysql/mysql.sock

db_name ezlogin_pods

db_user ezlogin_mkn

db_pass Z%%e$^GZ{kB4EDD

db_prefix djw_

cookie_encryption_key kRF*uAKF_bB/e54DD

cookie_name gpy

cookie_path /ezlogin/

www_folder /var/www/html/ezlogin/

admin_user superadmin

mysql_encrypt no

Step 2: In order to  decrypt the database password from Ezeelogin configuration file, run the following command on the jump server.

root@gateway:~# php /usr/local/ezlogin/eztool.php -show_db_credentials

Step 3: After executing the above command you can see the database credentials as  shown below:

root@gateway:~# php /usr/local/ezlogin/eztool.php -show_db_credentials

                   _             _
  ___ _______  ___| | ___   __ _(_)_ __
 / _ \_  / _ \/ _ \ |/ _ \ / _` | | ’_ \
|  __// /  __/  __/ | (_) | (_| | | | | |
 \___/___\___|\___|_|\___/ \__, |_|_| |_|
                           |___/


#########################
# Ezeelogin Tool        #
#########################

Checking environment... done
Checking license... done (0)

Enter the Ezeelogin administrator password: Admin!2345
Database credentials:
Host: localhost
Port/Socket: /var/lib/mysql/mysql.sock
Database: ezlogin_pods
Username: ezlogin_mkn
Password: P4&][*V]Qx3jn3n7A6@p6p7]G
Table Prefix: djy_
[root@localhost ~]#


Related Articles:

Error log file and configuration file to troubleshoot