{"id":9612,"date":"2026-06-03T07:31:52","date_gmt":"2026-06-03T05:31:52","guid":{"rendered":"https:\/\/mybox.com\/help\/?post_type=manual_kb&#038;p=9612"},"modified":"2026-06-03T07:31:53","modified_gmt":"2026-06-03T05:31:53","slug":"how-to-find-database-login-credentials-in-joomlas-configuration-php-file","status":"publish","type":"manual_kb","link":"https:\/\/mybox.com\/help\/en\/knowledgebase\/how-to-find-database-login-credentials-in-joomlas-configuration-php-file\/","title":{"rendered":"How to Find Database Login Credentials in Joomla&#8217;s configuration.php File"},"content":{"rendered":"\n<div class=\"translation-block translation-block-merged\">\n<p class=\"wp-block-paragraph\">Sometimes you may need to access your Joomla database through phpMyAdmin, for example to modify settings, restore data, or troubleshoot issues. If you do not remember the database credentials that were configured during installation, you can retrieve them from Joomla&#8217;s configuration file.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\"><strong>Important:<\/strong> Do not change the database password from the mybox Panel unless you also update the Joomla configuration file. Otherwise, your website will no longer be able to connect to the database.<\/p>\n<\/blockquote>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_86 ez-toc-wrap-left counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/mybox.com\/help\/en\/knowledgebase\/how-to-find-database-login-credentials-in-joomlas-configuration-php-file\/#Step_1_Connect_to_the_Server_via_FTP\" >Step 1: Connect to the Server via FTP<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/mybox.com\/help\/en\/knowledgebase\/how-to-find-database-login-credentials-in-joomlas-configuration-php-file\/#Step_2_Locate_the_Joomla_Installation_Directory\" >Step 2: Locate the Joomla Installation Directory<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/mybox.com\/help\/en\/knowledgebase\/how-to-find-database-login-credentials-in-joomlas-configuration-php-file\/#Step_3_Open_the_Configuration_File\" >Step 3: Open the Configuration File<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/mybox.com\/help\/en\/knowledgebase\/how-to-find-database-login-credentials-in-joomlas-configuration-php-file\/#Understanding_the_Values\" >Understanding the Values<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/mybox.com\/help\/en\/knowledgebase\/how-to-find-database-login-credentials-in-joomlas-configuration-php-file\/#Using_the_Credentials_in_phpMyAdmin\" >Using the Credentials in phpMyAdmin<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/mybox.com\/help\/en\/knowledgebase\/how-to-find-database-login-credentials-in-joomlas-configuration-php-file\/#Security_Recommendations\" >Security Recommendations<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/mybox.com\/help\/en\/knowledgebase\/how-to-find-database-login-credentials-in-joomlas-configuration-php-file\/#Summary\" >Summary<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_1_Connect_to_the_Server_via_FTP\"><\/span>Step 1: Connect to the Server via FTP<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Connect to your hosting account using an FTP client such as:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>FileZilla<\/li>\n\n\n\n<li>WinSCP<\/li>\n\n\n\n<li>Cyberduck<\/li>\n<\/ul>\n\n\n\n<\/div>\n\n<div id=\"mybox-2374038800\" class=\"mybox-content mybox-entity-placement\"><div class=\"early-access-banner-inpost\">\r\n  <div class=\"banner-left-inpost\">\r\n    <div class=\"icon-box-inpost\">\r\n      <img decoding=\"async\" src=\"https:\/\/mybox.com\/help\/wp-content\/uploads\/2026\/02\/square-info-icon.svg\" alt=\"Info\">\r\n    <\/div>\r\n    <div class=\"text-box-inpost\">\r\n      <span class=\"label-inpost\"><span class=\"translation-block translation-block-banner-text\">Early access<\/span><\/span>\r\n      <h4><span class=\"translation-block translation-block-banner-text\">Still need help?<\/span><\/h4>\r\n      <p><span class=\"translation-block translation-block-banner-text\">Contact our customer service team.<\/span><\/p>\r\n    <\/div>\r\n  <\/div>\r\n\r\n  <div class=\"banner-right-inpost\">\r\n    <a href=\"https:\/\/panel.mybox.com\/helpdesk2\/v\/list\/\" class=\"banner-button-inpost\"><span class=\"translation-block translation-block-banner-text\">Message us<\/span><\/a>\r\n  <\/div>\r\n<\/div><\/div>\n\n<div class=\"translation-block translation-block-merged\"><p class=\"wp-block-paragraph\">Use the FTP credentials assigned to your website.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_2_Locate_the_Joomla_Installation_Directory\"><\/span>Step 2: Locate the Joomla Installation Directory<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Navigate to the directory where Joomla is installed.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In most cases, the website files are located in:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>yourdomain.com\/public_html<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Inside this directory, locate the file:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>configuration.php<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_3_Open_the_Configuration_File\"><\/span>Step 3: Open the Configuration File<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Download the file or open it directly for editing using your FTP client.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Search for the following lines:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>public $host = 'database_host';<br>public $user = 'database_user';<br>public $password = 'database_password';<br>public $db = 'database_name';<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Understanding_the_Values\"><\/span>Understanding the Values<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Parameter<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td><code>$host<\/code><\/td><td>Database server hostname<\/td><\/tr><tr><td><code>$user<\/code><\/td><td>Database username<\/td><\/tr><tr><td><code>$password<\/code><\/td><td>Database password<\/td><\/tr><tr><td><code>$db<\/code><\/td><td>Database name<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>public $host = 'example.mysql.mybox.com';<br>public $user = 'example_user';<br>public $password = 'MySecurePassword123';<br>public $db = 'example_database';<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">These values can be used to log in to phpMyAdmin or connect to the database from another application.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Using_the_Credentials_in_phpMyAdmin\"><\/span>Using the Credentials in phpMyAdmin<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">After obtaining the information from <code>configuration.php<\/code>:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Open phpMyAdmin from the mybox Panel.<\/li>\n\n\n\n<li>Enter the database username.<\/li>\n\n\n\n<li>Enter the database password.<\/li>\n\n\n\n<li>Log in to access the database.<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Security_Recommendations\"><\/span>Security Recommendations<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Never share the contents of the <code>configuration.php<\/code> file publicly.<\/li>\n\n\n\n<li>Do not send database credentials via unsecured communication channels.<\/li>\n\n\n\n<li>Keep a backup of the file before making any changes.<\/li>\n\n\n\n<li>Avoid editing database settings unless necessary.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Summary\"><\/span>Summary<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">To find your Joomla database credentials, connect to your website via FTP and open the <code>configuration.php<\/code> file located in the Joomla installation directory. The database hostname, username, password, and database name are stored in the following configuration variables:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>public $host = 'database_host';<br>public $user = 'database_user';<br>public $password = 'database_password';<br>public $db = 'database_name';<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">These credentials can then be used to access the database through phpMyAdmin or other database management tools.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n<\/div>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"template":"","format":"standard","manualknowledgebasecat":[58],"manual_kb_tag":[415,516,637,2146,2158,2805,2956,5114,5115,5116],"class_list":["post-9612","manual_kb","type-manual_kb","status-publish","format-standard","hentry","manualknowledgebasecat-web-applications-cms","manual_kb_tag-ftp-client","manual_kb_tag-filezilla","manual_kb_tag-database-credentials","manual_kb_tag-phpmyadmin","manual_kb_tag-phpmyadmin-login","manual_kb_tag-joomla","manual_kb_tag-configuration-file","manual_kb_tag-joomla-database","manual_kb_tag-joomla-configuration","manual_kb_tag-configuration-php-file"],"_links":{"self":[{"href":"https:\/\/mybox.com\/help\/en\/wp-json\/wp\/v2\/manual_kb\/9612","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mybox.com\/help\/en\/wp-json\/wp\/v2\/manual_kb"}],"about":[{"href":"https:\/\/mybox.com\/help\/en\/wp-json\/wp\/v2\/types\/manual_kb"}],"author":[{"embeddable":true,"href":"https:\/\/mybox.com\/help\/en\/wp-json\/wp\/v2\/users\/1"}],"version-history":[{"count":1,"href":"https:\/\/mybox.com\/help\/en\/wp-json\/wp\/v2\/manual_kb\/9612\/revisions"}],"predecessor-version":[{"id":9613,"href":"https:\/\/mybox.com\/help\/en\/wp-json\/wp\/v2\/manual_kb\/9612\/revisions\/9613"}],"wp:attachment":[{"href":"https:\/\/mybox.com\/help\/en\/wp-json\/wp\/v2\/media?parent=9612"}],"wp:term":[{"taxonomy":"manualknowledgebasecat","embeddable":true,"href":"https:\/\/mybox.com\/help\/en\/wp-json\/wp\/v2\/manualknowledgebasecat?post=9612"},{"taxonomy":"manual_kb_tag","embeddable":true,"href":"https:\/\/mybox.com\/help\/en\/wp-json\/wp\/v2\/manual_kb_tag?post=9612"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}