{"id":18,"date":"2020-02-12T10:36:13","date_gmt":"2020-02-12T10:36:13","guid":{"rendered":"https:\/\/www.lcn.com\/support\/knowledge-base\/how-to-change-your-wordpress-database-password\/"},"modified":"2021-05-21T15:40:33","modified_gmt":"2021-05-21T15:40:33","slug":"how-to-change-your-wordpress-database-password","status":"publish","type":"ht_kb","link":"https:\/\/www.lcn.com\/support\/articles\/how-to-change-your-wordpress-database-password\/","title":{"rendered":"How to change your WordPress database password"},"content":{"rendered":"\n<p>This guide will explain how to change your WordPress database password for customers using LCN.com\u202f<a href=\"https:\/\/www.lcn.com\/web-hosting\" target=\"_blank\" rel=\"noreferrer noopener\">web hosting<\/a>\u202fand\u202f<a href=\"https:\/\/www.lcn.com\/web-hosting\/wordpress\" target=\"_blank\" rel=\"noreferrer noopener\">WordPress hosting<\/a>.&nbsp;<\/p>\n\n\n\n<p>If you\u2019ve installed WordPress&nbsp;or&nbsp;you are&nbsp;using&nbsp;our WordPress hosting,&nbsp;simply follow the steps listed below.&nbsp;<\/p>\n\n\n\n<p>Let\u2019s get started\u2026&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Changing the password&nbsp;<\/h3>\n\n\n\n<ol class=\"wp-block-list\"><li>Login to\u00a0your\u00a0<a href=\"https:\/\/login.lcn.com\/login\" target=\"_blank\" rel=\"noreferrer noopener\">LCN account<\/a>\u00a0and move your\u00a0<strong>Control Panel<\/strong>.\u00a0<\/li><\/ol>\n\n\n\n<ol class=\"wp-block-list\" start=\"2\"><li>Click\u202fthe domain you wish to perform a change to.&nbsp;<\/li><\/ol>\n\n\n\n<ol class=\"wp-block-list\" start=\"3\"><li>Click&nbsp;<strong>Hosting Settings&nbsp;<\/strong>followed by&nbsp;<strong>MySQL<\/strong>&nbsp;<\/li><\/ol>\n\n\n\n<ol class=\"wp-block-list\" start=\"4\"><li>You will now see your&nbsp;<strong>MySQL Databases&nbsp;<\/strong>for that domain. Click the&nbsp;<strong>Database name&nbsp;<\/strong>for the one you wish to update.&nbsp;<\/li><\/ol>\n\n\n\n<ol class=\"wp-block-list\" start=\"5\"><li>Next click on the&nbsp;<strong>Username&nbsp;<\/strong>being used to access the Database by your WordPress site.&nbsp;<\/li><\/ol>\n\n\n\n<ol class=\"wp-block-list\" start=\"6\"><li>Enter a&nbsp;<strong>New Password<\/strong>&nbsp;in the first box.&nbsp;<\/li><\/ol>\n\n\n\n<div class=\"container row col-md-24 support-article panel panel-default panel-body\" style=\"background-color: #f6e9db; border-color: #ead9c7; border: 1px solid #ddd; border-radius: 4px; padding: 1% 2%; background-image: url('\/images\/my_account\/highlight.png'); background-position: left top; background-repeat: repeat-x;\">\n<p><span style=\"font-size: 17px;\"><strong style=\"color: #e77600 !important; font-size: 18px;\">Please Note:<\/strong>\u202fTo make sure your chosen password is secure you will need to make sure that it is at least 8 characters long, it must also include at least 3 of the following: Lower case letter, upper case letter, number, special character. For a guide on making a secure password click\u202f<a href=\"https:\/\/www.lcn.com\/support\/articles\/how-to-create-a-strong-password\/\" target=\"_blank\" rel=\"noreferrer noopener\">here<\/a>.&nbsp;<\/span><\/p>\n<\/div>\n\n\n\n<ol class=\"wp-block-list\" start=\"7\"><li>Followed by&nbsp;<strong>Confirm Password<\/strong>&nbsp;in the second box.&nbsp;<\/li><\/ol>\n\n\n\n<ol class=\"wp-block-list\" start=\"8\"><li>You can adjust the other settings if needed,&nbsp;other&nbsp;wise scroll down to the bottom and click&nbsp;<strong>Save.<\/strong>&nbsp;<\/li><\/ol>\n\n\n\n<p>Success! You\u2019ve changed your WordPress database password. Making this change will cause your website to display an\u202f<strong>Error establishing a database connection<\/strong>\u202fmessage until you\u2019ve completed the steps listed in the second half of this guide.&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Updating the WordPress configuration file&nbsp;<\/h3>\n\n\n\n<p>Now you\u2019ll need to update the password in the WordPress configuration file.&nbsp;<\/p>\n\n\n\n<p>To do this you will need to access your hosting using FTP which you can learn more about\u202f<a href=\"https:\/\/www.lcn.com\/support\/articles\/how-to-upload-files-to-your-website-with-ftp\/\" target=\"_blank\" rel=\"noreferrer noopener\">here<\/a>.&nbsp;Alternatively, you can use File Manager which you can find out more about&nbsp;<a href=\"https:\/\/www.lcn.com\/support\/articles\/how-to-use-the-lcn-file-manager\/\" target=\"_blank\" rel=\"noreferrer noopener\">here<\/a>.&nbsp;<\/p>\n\n\n\n<p>The below instructions will cover how to make this change via FTP.&nbsp;&nbsp;<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Using your FTP client, navigate to the\u202f<strong>Web<\/strong>\u202ffolder&nbsp;<\/li><\/ol>\n\n\n\n<ol class=\"wp-block-list\" start=\"2\"><li>Right-click the\u202f<strong>wp-config.php<\/strong>\u202ffile and select\u202f<strong>View\/Edit<\/strong>&nbsp;<\/li><\/ol>\n\n\n\n<ol class=\"wp-block-list\" start=\"3\"><li>Select\u202f<strong>Use default editor for text files<\/strong>\u202fand click\u202f<strong>OK<\/strong>&nbsp;<\/li><\/ol>\n\n\n\n<ol class=\"wp-block-list\" start=\"4\"><li>Once the file has opened, find the section below:&nbsp;<\/li><\/ol>\n\n\n\n<pre class=\"prettyprint linenums\">define(\u2018DB_PASSWORD\u2019, \u2018oldPassword123!\u2019);&nbsp;<\/pre>\n<\/br>\n\n\n\n<ol start=\"5\"><li>Replace the password inside the quotation marks with the new database password you chose earlier&nbsp;<\/li><\/ol>\n\n\n\n<ol start=\"6\"><li>Click the\u202f<strong>X<\/strong>\u202fin the top right of your text editor to close it&nbsp;<\/li><\/ol>\n\n\n\n<ol start=\"7\"><li>You\u2019ll be prompted to save the file you\u2019ve just edited, click\u202f<strong>Save<\/strong>&nbsp;<\/li><\/ol>\n\n\n\n<ol start=\"8\"><li>A box will appear notifying you that\u202f<strong>A file previously opened has been changed.<\/strong>\u202fClick\u202f<strong>Yes<\/strong>.&nbsp;<\/li><\/ol>\n\n\n\n<p>That\u2019s it! You\u2019ve changed your WordPress database password and updated your WordPress configuration file.&nbsp;<\/p>\n\n\n\n<video width=\"100%\" height=\"100%\" controls=\"\" loop=\"\" autoplay=\"\"><source src=\"\/support\/articles\/attachment\/485\/inline\/original\/1469612782\/ChangeWPConfig.mp4  \" type=\"video\/mp4\">Your browser does not support the video tag.<\/video>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This guide will explain how to change your WordPress database password for customers using LCN.com\u202fweb hosting\u202fand\u202fWordPress hosting.&nbsp; If you\u2019ve installed WordPress&nbsp;or&nbsp;you are&nbsp;using&nbsp;our WordPress hosting,&nbsp;simply follow the steps listed below.&nbsp; Let\u2019s get started\u2026&nbsp; Changing the password&nbsp; Login to\u00a0your\u00a0LCN account\u00a0and move your\u00a0Control Panel.\u00a0 Click\u202fthe domain you wish to perform a change to.&nbsp; Click&nbsp;Hosting Settings&nbsp;followed by&nbsp;MySQL&nbsp; You will [&hellip;]<\/p>\n","protected":false},"author":3,"comment_status":"closed","ping_status":"open","template":"","format":"standard","meta":{"footnotes":""},"ht-kb-category":[7],"ht-kb-tag":[8],"class_list":["post-18","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-creating-and-managing-databases","ht_kb_tag-wordpress-hosting"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to change your WordPress database password - LCN.com<\/title>\n<meta name=\"description\" content=\"A step-by-step guide to changing your WordPress database password on your LCN.com hosting package and update your wp-config file.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.lcn.com\/support\/articles\/how-to-change-your-wordpress-database-password\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to change your WordPress database password - LCN.com\" \/>\n<meta property=\"og:description\" content=\"A step-by-step guide to changing your WordPress database password on your LCN.com hosting package and update your wp-config file.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.lcn.com\/support\/articles\/how-to-change-your-wordpress-database-password\/\" \/>\n<meta property=\"og:site_name\" content=\"Customer Support Guides - LCN\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/lcndotcom\" \/>\n<meta property=\"article:modified_time\" content=\"2021-05-21T15:40:33+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.lcn.com\/support\/wp-content\/uploads\/support-facebook-feed.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"628\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:site\" content=\"@lcndotcom\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.lcn.com\/support\/articles\/how-to-change-your-wordpress-database-password\/\",\"url\":\"https:\/\/www.lcn.com\/support\/articles\/how-to-change-your-wordpress-database-password\/\",\"name\":\"How to change your WordPress database password - LCN.com\",\"isPartOf\":{\"@id\":\"https:\/\/www.lcn.com\/support\/#website\"},\"datePublished\":\"2020-02-12T10:36:13+00:00\",\"dateModified\":\"2021-05-21T15:40:33+00:00\",\"description\":\"A step-by-step guide to changing your WordPress database password on your LCN.com hosting package and update your wp-config file.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.lcn.com\/support\/articles\/how-to-change-your-wordpress-database-password\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.lcn.com\/support\/articles\/how-to-change-your-wordpress-database-password\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.lcn.com\/support\/articles\/how-to-change-your-wordpress-database-password\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.lcn.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to change your WordPress database password\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.lcn.com\/support\/#website\",\"url\":\"https:\/\/www.lcn.com\/support\/\",\"name\":\"Customer Support Guides - LCN\",\"description\":\"- LCN\",\"publisher\":{\"@id\":\"https:\/\/www.lcn.com\/support\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.lcn.com\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.lcn.com\/support\/#organization\",\"name\":\"LCN.com\",\"url\":\"https:\/\/www.lcn.com\/support\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.lcn.com\/support\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.lcn.com\/support\/wp-content\/uploads\/2020\/02\/ZF_-hcc3.jpg\",\"contentUrl\":\"https:\/\/www.lcn.com\/support\/wp-content\/uploads\/2020\/02\/ZF_-hcc3.jpg\",\"width\":461,\"height\":461,\"caption\":\"LCN.com\"},\"image\":{\"@id\":\"https:\/\/www.lcn.com\/support\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/lcndotcom\",\"https:\/\/x.com\/lcndotcom\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to change your WordPress database password - LCN.com","description":"A step-by-step guide to changing your WordPress database password on your LCN.com hosting package and update your wp-config file.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.lcn.com\/support\/articles\/how-to-change-your-wordpress-database-password\/","og_locale":"en_US","og_type":"article","og_title":"How to change your WordPress database password - LCN.com","og_description":"A step-by-step guide to changing your WordPress database password on your LCN.com hosting package and update your wp-config file.","og_url":"https:\/\/www.lcn.com\/support\/articles\/how-to-change-your-wordpress-database-password\/","og_site_name":"Customer Support Guides - LCN","article_publisher":"https:\/\/www.facebook.com\/lcndotcom","article_modified_time":"2021-05-21T15:40:33+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/www.lcn.com\/support\/wp-content\/uploads\/support-facebook-feed.jpg","type":"image\/jpeg"}],"twitter_card":"summary_large_image","twitter_site":"@lcndotcom","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.lcn.com\/support\/articles\/how-to-change-your-wordpress-database-password\/","url":"https:\/\/www.lcn.com\/support\/articles\/how-to-change-your-wordpress-database-password\/","name":"How to change your WordPress database password - LCN.com","isPartOf":{"@id":"https:\/\/www.lcn.com\/support\/#website"},"datePublished":"2020-02-12T10:36:13+00:00","dateModified":"2021-05-21T15:40:33+00:00","description":"A step-by-step guide to changing your WordPress database password on your LCN.com hosting package and update your wp-config file.","breadcrumb":{"@id":"https:\/\/www.lcn.com\/support\/articles\/how-to-change-your-wordpress-database-password\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.lcn.com\/support\/articles\/how-to-change-your-wordpress-database-password\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.lcn.com\/support\/articles\/how-to-change-your-wordpress-database-password\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.lcn.com\/support\/"},{"@type":"ListItem","position":2,"name":"How to change your WordPress database password"}]},{"@type":"WebSite","@id":"https:\/\/www.lcn.com\/support\/#website","url":"https:\/\/www.lcn.com\/support\/","name":"Customer Support Guides - LCN","description":"- LCN","publisher":{"@id":"https:\/\/www.lcn.com\/support\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.lcn.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.lcn.com\/support\/#organization","name":"LCN.com","url":"https:\/\/www.lcn.com\/support\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.lcn.com\/support\/#\/schema\/logo\/image\/","url":"https:\/\/www.lcn.com\/support\/wp-content\/uploads\/2020\/02\/ZF_-hcc3.jpg","contentUrl":"https:\/\/www.lcn.com\/support\/wp-content\/uploads\/2020\/02\/ZF_-hcc3.jpg","width":461,"height":461,"caption":"LCN.com"},"image":{"@id":"https:\/\/www.lcn.com\/support\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/lcndotcom","https:\/\/x.com\/lcndotcom"]}]}},"_links":{"self":[{"href":"https:\/\/www.lcn.com\/support\/wp-json\/wp\/v2\/ht-kb\/18","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.lcn.com\/support\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/www.lcn.com\/support\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/www.lcn.com\/support\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.lcn.com\/support\/wp-json\/wp\/v2\/comments?post=18"}],"version-history":[{"count":4,"href":"https:\/\/www.lcn.com\/support\/wp-json\/wp\/v2\/ht-kb\/18\/revisions"}],"predecessor-version":[{"id":1544,"href":"https:\/\/www.lcn.com\/support\/wp-json\/wp\/v2\/ht-kb\/18\/revisions\/1544"}],"wp:attachment":[{"href":"https:\/\/www.lcn.com\/support\/wp-json\/wp\/v2\/media?parent=18"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/www.lcn.com\/support\/wp-json\/wp\/v2\/ht-kb-category?post=18"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/www.lcn.com\/support\/wp-json\/wp\/v2\/ht-kb-tag?post=18"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}