{"id":598,"date":"2016-08-22T00:00:00","date_gmt":"2016-08-22T00:00:00","guid":{"rendered":"http:\/\/blog.hostinger.io\/hostinger-tutorials\/uncategorized\/wordpresshow-to-find-out-wordpress-database-name\/"},"modified":"2026-03-09T19:20:15","modified_gmt":"2026-03-09T19:20:15","slug":"how-to-find-wordpress-database-name","status":"publish","type":"post","link":"\/ng\/tutorials\/how-to-find-wordpress-database-name","title":{"rendered":"How to find your WordPress database name"},"content":{"rendered":"<?xml encoding=\"utf-8\" ?><p>Finding a WordPress database name is an important skill every webmaster should have. Aside from giving you more control over your site, it also offers you insights on WordPress configuration and setup. Fortunately, it&rsquo;s very easy to do, and this tutorial will show you how.<\/p><p>\n\n\n\n<\/p><h2 class=\"wp-block-heading\" id=\"h-locating-the-wp-config-php-file\">Locating the wp-config.php file<\/h2><p>Let&rsquo;s start with the <a href=\"\/ng\/tutorials\/wordpress-database\">WordPress database<\/a> location. Most web-based scripts have a configuration file containing the host&rsquo;s database information and instructions on how the system behaves. For WordPress, this specific file is called <strong><a href=\"\/ng\/tutorials\/wp-config-php\">wp-config.php<\/a><\/strong>. To open it, you&rsquo;ll need access to your website&rsquo;s files.<\/p><p>To do so, you can use the hPanel&rsquo;s file manager or an FTP client like <strong>FileZilla<\/strong>, both of which we will cover in this article.<\/p><h3 class=\"wp-block-heading\" id=\"h-using-hpanel-s-file-manager\">Using hPanel&rsquo;s File Manager<\/h3><div class=\"wp-block-image\"><figure data-wp-context='{\"imageId\":\"69e1c3eedd3f2\"}' data-wp-interactive=\"core\/image\" class=\"aligncenter size-large wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"646\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-on-async--load=\"callbacks.setButtonStyles\" data-wp-on-async-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/filemanager-wp-config.png\/public\" alt=\"Wp-config file in hPanel's File Manager\" class=\"wp-image-79511\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/filemanager-wp-config.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/filemanager-wp-config.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/filemanager-wp-config.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/filemanager-wp-config.png\/w=768,fit=scale-down 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" aria-label=\"Enlarge\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-style--right=\"state.imageButtonRight\" data-wp-style--top=\"state.imageButtonTop\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\"><\/path>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure><\/div><p>After opening the file manager in your panel, you will see several directories and files. The location of <strong>wp-config.php <\/strong>entirely depends on where you have <a href=\"\/ng\/tutorials\/how-to-install-wordpress\">installed WordPress<\/a>. However, in the hPanel, the installation path is typically \/<strong>public_html\/wp-config.php<\/strong>.<\/p><p><div class=\"protip\">\n                    <h4 class=\"title\">Pro Tip<\/h4>\n                    <p>If you experience difficulties finding the file, you can look it up using the search feature located in the upper menu.<\/p>\n                <\/div>\n\n\n\n<\/p><h3 class=\"wp-block-heading\" id=\"h-using-an-ftp-client\">Using an FTP client<\/h3><p>After <a href=\"\/ng\/tutorials\/ftp\/filezilla-ftp-configuration\" target=\"_blank\" rel=\"noreferrer noopener\">configuring FileZilla<\/a>, connect by accessing <strong>File <\/strong>-&gt; <strong>Site Manager. <\/strong>After successfully logging into your FTP account, you will see your hosting&rsquo;s primary directory on the right side of the screen. If you didn&rsquo;t install WordPress in a subfolder, the <strong>wp-config.php<\/strong> file should be there.<\/p><div class=\"wp-block-image\"><figure class=\"aligncenter\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2016\/08\/wp-config-ftp.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1331\" height=\"593\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2016\/08\/wp-config-ftp.png\/public\" alt=\"The wp-config.php file on FileZilla\" class=\"wp-image-39261\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2016\/08\/wp-config-ftp.png\/w=1331,fit=scale-down 1331w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2016\/08\/wp-config-ftp.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2016\/08\/wp-config-ftp.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2016\/08\/wp-config-ftp.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2016\/08\/wp-config-ftp.png\/w=768,fit=scale-down 768w\" sizes=\"auto, (max-width: 1331px) 100vw, 1331px\" \/><\/a><\/figure><\/div><h2 class=\"wp-block-heading\" id=\"h-finding-the-wordpress-database-name\">Finding the WordPress database name<\/h2><p>To open and inspect your <strong>wp-config.php<\/strong> file, you need to right-click on it and select <strong>edit<\/strong> or <strong>view<\/strong>. This action works similarly on both the FTP client and File Manager.<\/p><p>Once inside, navigate to the value called <strong>DB_NAME<\/strong>. The string of numbers or letters after it is the WordPress database name.<\/p><div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"649\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/filemanager-wp-config-db-name.png\/public\" alt=\"The database name on the wp-config.php file\" class=\"wp-image-79518\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/filemanager-wp-config-db-name.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/filemanager-wp-config-db-name.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/filemanager-wp-config-db-name.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/filemanager-wp-config-db-name.png\/w=768,fit=scale-down 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div><p>If you can&rsquo;t find the value or want to locate it faster, you may use the <strong>Ctrl+F<\/strong> combination on Windows or <strong>CMD+F <\/strong>on Mac. Similarly, you can check other database details there as well by looking up the <code data-enlighter-language=\"null\" class=\"EnlighterJSRAW\">DB_HOST,DB_USER<\/code>, or <code data-enlighter-language=\"null\" class=\"EnlighterJSRAW\">DB_PASSWORD<\/code> values since they all represent your WordPress database details.<\/p><?xml encoding=\"utf-8\" ?><figure class=\"wp-block-image size-large\"><a class=\"hgr-tutorials-cta hgr-tutorials-cta-wordpress-hosting\" href=\"\/ng\/wordpress-hosting\" target=\"_blank\" rel=\"noreferrer noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"2048\" height=\"600\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/06\/New-WP_in-text-banner.png\/public\" alt=\"\" class=\"wp-image-111781\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/06\/New-WP_in-text-banner.png\/w=2048,fit=scale-down 2048w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/06\/New-WP_in-text-banner.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/06\/New-WP_in-text-banner.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/06\/New-WP_in-text-banner.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/06\/New-WP_in-text-banner.png\/w=768,fit=scale-down 768w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/06\/New-WP_in-text-banner.png\/w=1536,fit=scale-down 1536w\" sizes=\"auto, (max-width: 2048px) 100vw, 2048px\" \/><\/a><\/figure><h2 class=\"wp-block-heading\" id=\"h-conclusion\">Conclusion<\/h2><p>We have shared two ways to locate your WordPress database name, both of which require checking the <strong>wp-config.php<\/strong> file. The first method uses hPanel&rsquo;s file manager, while the second one requires an FTP client.<\/p><p>Knowing the location of your WordPress database name reveals more than just the name. In the <strong>wp-config.php<\/strong>, you will also find other details that can lead you to a greater understanding of how <a href=\"\/ng\/tutorials\/what-is-wordpress\">WordPress is<\/a> structured, and will definitely help in managing your site more effectively.<\/p><p>Let us know in the comment section if this guide was helpful!<\/p><p><div class=\"protip\">\n                    <h4 class=\"title\">Learn other advanced WordPress techniques<\/h4>\n                    <p><a href=\"\/ng\/tutorials\/wordpress-pagination\" rel=\"noopener\">WordPress pagination guide<\/a><br>\n<a href=\"\/ng\/tutorials\/create-a-shortcode-in-wordpress\" rel=\"noopener\">How to create a shortcode in WordPress<\/a><br>\n<a href=\"\/ng\/tutorials\/wordpress-lazy-load\" rel=\"noopener\">Guide to lazy loading on WordPress<\/a><br>\n<a href=\"\/ng\/tutorials\/wordpress-excerpt-length\/\" rel=\"noopener\">How to change WordPress excerpt length<\/a><br>\n<a href=\"\/ng\/tutorials\/wordpress-a-b-testing\" rel=\"noopener\">A complete guide to WordPress A\/B testing<\/a><br>\n<a href=\"\/ng\/tutorials\/how-to-hide-page-title-wordpress\" rel=\"noopener\">How to hide a page title in WordPress<\/a><br>\n<a href=\"\/ng\/tutorials\/wp-cli\">A complete guide to use WP-CLI<\/a><\/p>\n                <\/div>\n<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Finding a WordPress database name is an important skill every webmaster should have. Aside from giving you more control over your site, it also offers you insights on WordPress configuration and setup. Fortunately, it&rsquo;s very easy to do, and this tutorial will show you how. Locating the wp-config.php file Let&rsquo;s start with the WordPress database [&#8230;]<\/p>\n<p><a class=\"btn btn-secondary understrap-read-more-link\" href=\"\/ng\/tutorials\/how-to-find-wordpress-database-name\">Read More&#8230;<\/a><\/p>\n","protected":false},"author":28,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rank_math_title":"How to Find Your WordPress Database Name","rank_math_description":"Knowing how to find WordPress database name is important. Read our step-by-step guide to learn how to find your WordPress database name!","rank_math_focus_keyword":"wordpress database name","footnotes":""},"categories":[22637],"tags":[],"class_list":["post-598","post","type-post","status-publish","format-standard","hentry","category-wordpress"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/tutorials\/how-to-find-wordpress-database-name","default":0},{"locale":"id-ID","link":"https:\/\/www.hostinger.com\/id\/tutorial\/cara-mengetahui-nama-database-wordpress","default":0},{"locale":"en-UK","link":"https:\/\/www.hostinger.com\/uk\/tutorials\/how-to-find-wordpress-database-name","default":0},{"locale":"en-MY","link":"https:\/\/www.hostinger.com\/my\/tutorials\/how-to-find-wordpress-database-name","default":0},{"locale":"en-PH","link":"https:\/\/www.hostinger.com\/ph\/tutorials\/how-to-find-wordpress-database-name","default":0},{"locale":"en-IN","link":"https:\/\/www.hostinger.com\/in\/tutorials\/how-to-find-wordpress-database-name","default":0},{"locale":"en-CA","link":"https:\/\/www.hostinger.com\/ca\/tutorials\/how-to-find-wordpress-database-name","default":0},{"locale":"en-AU","link":"https:\/\/www.hostinger.com\/au\/tutorials\/how-to-find-wordpress-database-name","default":0},{"locale":"en-NG","link":"https:\/\/www.hostinger.com\/ng\/tutorials\/how-to-find-wordpress-database-name","default":0}],"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/ng\/tutorials\/wp-json\/wp\/v2\/posts\/598","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostinger.com\/ng\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostinger.com\/ng\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/ng\/tutorials\/wp-json\/wp\/v2\/users\/28"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/ng\/tutorials\/wp-json\/wp\/v2\/comments?post=598"}],"version-history":[{"count":30,"href":"https:\/\/www.hostinger.com\/ng\/tutorials\/wp-json\/wp\/v2\/posts\/598\/revisions"}],"predecessor-version":[{"id":145447,"href":"https:\/\/www.hostinger.com\/ng\/tutorials\/wp-json\/wp\/v2\/posts\/598\/revisions\/145447"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/ng\/tutorials\/wp-json\/wp\/v2\/media?parent=598"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/ng\/tutorials\/wp-json\/wp\/v2\/categories?post=598"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/ng\/tutorials\/wp-json\/wp\/v2\/tags?post=598"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}