WordPress is responsible to store your database information in a file that is known as wp-config.php.
This configuration file is located in the document root directory of your domain name.
For example, if you install WordPress on your primary domain then the wp-config.php file gets located in the public_html directory of your hosting account.
It allows you to view and edit the file using File Manager in cPanel or using FTP.
Also Read :