CINXE.COM

How to Fix the Error Establishing a Database Connection in WordPress

<!DOCTYPE html> <html dir="ltr" lang="en-US" prefix="og: https://ogp.me/ns#"> <head > <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1" /> <title>How to Fix the Error Establishing a Database Connection in WordPress</title> <!-- All in One SEO Pro 4.7.0 - aioseo.com --> <meta name="description" content="Follow our step-by-step guide to fix the error establishing a database connection in WordPress. Multiple solutions that worked for various users." /> <meta name="robots" content="max-snippet:-1, max-image-preview:large, max-video-preview:-1" /> <meta name="p:domain_verify" content="7a814ba2a9486f59b188d9ea4633a67a" /> <link rel="canonical" href="https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/" /> <meta name="generator" content="All in One SEO Pro (AIOSEO) 4.7.0" /> <meta property="og:locale" content="en_US" /> <meta property="og:site_name" content="WPBeginner" /> <meta property="og:type" content="article" /> <meta property="og:title" content="How to Fix the Error Establishing a Database Connection in WordPress" /> <meta property="og:description" content="Follow our step-by-step guide to fix the error establishing a database connection in WordPress. Multiple solutions that worked for various users." /> <meta property="og:url" content="https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/" /> <meta property="fb:admins" content="1107000098" /> <meta property="og:image" content="https://www.wpbeginner.com/wp-content/uploads/2020/01/fix-the-error-establishing-a-database-connection-facebook.png" /> <meta property="og:image:secure_url" content="https://www.wpbeginner.com/wp-content/uploads/2020/01/fix-the-error-establishing-a-database-connection-facebook.png" /> <meta property="og:image:width" content="1920" /> <meta property="og:image:height" content="1080" /> <meta property="article:section" content="Tutorials" /> <meta property="article:tag" content="bluehost" /> <meta property="article:tag" content="error establishing a database connection in wordpress" /> <meta property="article:tag" content="error establishing a database connection solved wordpress" /> <meta property="article:tag" content="fixing the error establishing a database connection issue in wordpress" /> <meta property="article:tag" content="how to fix the error establishing a database connection in wordpress" /> <meta property="article:tag" content="how to repair a database in wordpress" /> <meta property="article:tag" content="seahawk" /> <meta property="article:tag" content="wordpress error establishing a database connection" /> <meta property="article:published_time" content="2020-01-14T09:00:15+00:00" /> <meta property="article:modified_time" content="2024-09-30T18:19:53+00:00" /> <meta property="article:publisher" content="https://facebook.com/wpbeginner" /> <meta property="article:author" content="https://facebook.com/syedbalkhi" /> <meta name="twitter:card" content="summary_large_image" /> <meta name="twitter:site" content="@wpbeginner" /> <meta name="twitter:title" content="How to Fix the Error Establishing a Database Connection in WordPress" /> <meta name="twitter:description" content="Follow our step-by-step guide to fix the error establishing a database connection in WordPress. Multiple solutions that worked for various users." /> <meta name="twitter:creator" content="@syedbalkhi" /> <meta name="twitter:image" content="https://www.wpbeginner.com/wp-content/uploads/2020/01/fix-the-error-establishing-a-database-connection-facebook.png" /> <meta name="twitter:label1" content="Written by" /> <meta name="twitter:data1" content="Editorial Staff" /> <meta name="twitter:label2" content="Est. reading time" /> <meta name="twitter:data2" content="9 minutes" /> <script type="application/ld+json" class="aioseo-schema"> {"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.wpbeginner.com\/wp-tutorials\/how-to-fix-the-error-establishing-a-database-connection-in-wordpress\/#article","name":"How to Fix the Error Establishing a Database Connection in WordPress","headline":"How to Fix the Error Establishing a Database Connection in WordPress","author":{"@type":"Person","@id":"https:\/\/www.wpbeginner.com\/author\/wpbeginner\/#author","url":"https:\/\/www.wpbeginner.com\/author\/wpbeginner\/","name":"Syed Balkhi","image":{"@type":"ImageObject","url":"https:\/\/www.wpbeginner.com\/wp-content\/uploads\/2022\/07\/wpbeginner-icon.png"},"sameAs":["https:\/\/facebook.com\/syedbalkhi","https:\/\/twitter.com\/syedbalkhi","https:\/\/www.instagram.com\/syedbalkhi","https:\/\/www.pinterest.com\/wpbeginner\/","https:\/\/youtube.com\/wpbeginner","https:\/\/www.linkedin.com\/in\/syedbalkhi\/"],"description":"Syed Balkhi is an award winning entepreneur and the founder of WPBeginner. In 2009, Syed created WPBeginner which has become the largest WordPress tutorial site in the industry reaching millions of readers worldwide. Syed has over 15 years of experience in the tech industry and developing websites. He has helped thousands of business owners get started with WordPress. Due to his unique background and experiences, he is considered among the leading experts in the WordPress and web hosting industry.","jobTitle":"Content Creator","knowsAbout":[{"@type":"Thing","name":"WordPress","url":"https:\/\/wordpress.org","sameAs":["https:\/\/en.wikipedia.org\/wiki\/WordPress"]},{"@type":"Thing","name":"SEO"},{"@type":"Thing","name":"Blogging"},{"@type":"Thing","name":"Content Marketing"}]},"publisher":{"@id":"https:\/\/www.wpbeginner.com\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/www.wpbeginner.com\/wp-content\/uploads\/2020\/01\/fix-the-error-establishing-a-database-connection-thumbnail.png","width":250,"height":250,"caption":"How to Fix the Error Establishing a Database Connection in WordPress"},"datePublished":"2020-01-14T04:00:15-05:00","dateModified":"2024-09-30T14:19:53-04:00","inLanguage":"en-US","commentCount":670,"mainEntityOfPage":{"@id":"https:\/\/www.wpbeginner.com\/wp-tutorials\/how-to-fix-the-error-establishing-a-database-connection-in-wordpress\/#webpage"},"isPartOf":{"@id":"https:\/\/www.wpbeginner.com\/wp-tutorials\/how-to-fix-the-error-establishing-a-database-connection-in-wordpress\/#webpage"},"articleSection":"Tutorials, bluehost, error establishing a database connection in wordpress, error establishing a database connection solved wordpress, fixing the error establishing a database connection issue in wordpress, how to fix the error establishing a database connection in wordpress, how to repair a database in wordpress, seahawk, wordpress error establishing a database connection"},{"@type":"BreadcrumbList","@id":"https:\/\/www.wpbeginner.com\/wp-tutorials\/how-to-fix-the-error-establishing-a-database-connection-in-wordpress\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/www.wpbeginner.com\/#listItem","position":1,"name":"Home","item":"https:\/\/www.wpbeginner.com\/","nextItem":"https:\/\/www.wpbeginner.com\/category\/wp-tutorials\/#listItem"},{"@type":"ListItem","@id":"https:\/\/www.wpbeginner.com\/category\/wp-tutorials\/#listItem","position":2,"name":"Tutorials","item":"https:\/\/www.wpbeginner.com\/category\/wp-tutorials\/","nextItem":"https:\/\/www.wpbeginner.com\/wp-tutorials\/how-to-fix-the-error-establishing-a-database-connection-in-wordpress\/#listItem","previousItem":"https:\/\/www.wpbeginner.com\/#listItem"},{"@type":"ListItem","@id":"https:\/\/www.wpbeginner.com\/wp-tutorials\/how-to-fix-the-error-establishing-a-database-connection-in-wordpress\/#listItem","position":3,"name":"How to Fix the Error Establishing a Database Connection in WordPress","previousItem":"https:\/\/www.wpbeginner.com\/category\/wp-tutorials\/#listItem"}]},{"@type":"Organization","@id":"https:\/\/www.wpbeginner.com\/#organization","name":"WPBeginner","description":"Beginner's Guide for WordPress","url":"https:\/\/www.wpbeginner.com\/","email":"support@wpbeginner.com","logo":{"@type":"ImageObject","url":"https:\/\/www.wpbeginner.com\/wp-content\/uploads\/2010\/02\/wpbeginner-logo-520.png","@id":"https:\/\/www.wpbeginner.com\/wp-tutorials\/how-to-fix-the-error-establishing-a-database-connection-in-wordpress\/#organizationLogo","width":520,"height":130,"caption":"WPBeginner Logo"},"image":{"@id":"https:\/\/www.wpbeginner.com\/wp-tutorials\/how-to-fix-the-error-establishing-a-database-connection-in-wordpress\/#organizationLogo"},"sameAs":["https:\/\/facebook.com\/wpbeginner","https:\/\/twitter.com\/wpbeginner","https:\/\/instagram.com\/wpbeginner","https:\/\/www.pinterest.com\/wpbeginner\/","https:\/\/youtube.com\/wpbeginner","https:\/\/www.linkedin.com\/company\/wpbeginner\/"]},{"@type":"WebPage","@id":"https:\/\/www.wpbeginner.com\/wp-tutorials\/how-to-fix-the-error-establishing-a-database-connection-in-wordpress\/#webpage","url":"https:\/\/www.wpbeginner.com\/wp-tutorials\/how-to-fix-the-error-establishing-a-database-connection-in-wordpress\/","name":"How to Fix the Error Establishing a Database Connection in WordPress","description":"Follow our step-by-step guide to fix the error establishing a database connection in WordPress. Multiple solutions that worked for various users.","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/www.wpbeginner.com\/#website"},"breadcrumb":{"@id":"https:\/\/www.wpbeginner.com\/wp-tutorials\/how-to-fix-the-error-establishing-a-database-connection-in-wordpress\/#breadcrumblist"},"author":{"@id":"https:\/\/www.wpbeginner.com\/author\/wpbeginner\/#author"},"creator":{"@id":"https:\/\/www.wpbeginner.com\/author\/wpbeginner\/#author"},"image":{"@type":"ImageObject","url":"https:\/\/www.wpbeginner.com\/wp-content\/uploads\/2020\/01\/fix-the-error-establishing-a-database-connection-thumbnail.png","@id":"https:\/\/www.wpbeginner.com\/wp-tutorials\/how-to-fix-the-error-establishing-a-database-connection-in-wordpress\/#mainImage","width":250,"height":250,"caption":"How to Fix the Error Establishing a Database Connection in WordPress"},"primaryImageOfPage":{"@id":"https:\/\/www.wpbeginner.com\/wp-tutorials\/how-to-fix-the-error-establishing-a-database-connection-in-wordpress\/#mainImage"},"datePublished":"2020-01-14T04:00:15-05:00","dateModified":"2024-09-30T14:19:53-04:00","reviewedBy":{"@type":"Person","@id":"https:\/\/www.wpbeginner.com\/author\/syedb\/#author","url":"https:\/\/www.wpbeginner.com\/author\/syedb\/","name":"Syed Balkhi","image":{"@type":"ImageObject","url":"https:\/\/www.wpbeginner.com\/wp-content\/uploads\/2022\/07\/syed-balkhi-profile-photo.png"},"sameAs":["https:\/\/facebook.com\/syedbalkhi","https:\/\/twitter.com\/syedbalkhi","https:\/\/www.instagram.com\/syedbalkhi\/","https:\/\/linkedin.com\/in\/syedbalkhi","https:\/\/www.entrepreneur.com\/author\/syed-balkhi","https:\/\/profiles.wordpress.org\/smub\/","https:\/\/adage.com\/author\/syed-balkhi\/7616","https:\/\/readwrite.com\/author\/syed\/","https:\/\/getflywheel.com\/layout\/author\/syedbalkhi\/","https:\/\/www.socialmediaexaminer.com\/author\/syed-balkhi\/"],"description":"Highlights Founder and CEO of WPBeginner and Awesome Motive Inc, one of the most prominent WordPress software companies in the industry. Over 25 million websites use WordPress plugins and software apps developed by Syed Balkhi and his team. Started using WordPress in 2006 and has over 16 years of experience building websites with WordPress. WordPress Core Contributor along with many other Open Source software contributions Experience Syed Balkhi is one of the most well-known WordPress experts in the world with over 16 years of experience. He graduated from University of Florida and have been building WordPress websites since 2006. In 2009, Syed created WPBeginner as a free online resource to help beginners and non-techy small business owners learn WordPress. At the time, no other WordPress training resource existed for beginners, and this led to WPBeginner growing in popularity and becoming the Wikipedia for WordPress.\u00a0 Syed was recognized as the top 100 entrepreneur under the age of 30 by the United Nations, and his work is featured in top publications like Entrepreneur, Forbes, Inc, Business Insider, The Guardian, Wired Magazine, and more. Over the years, Syed has been a featured speaker at highly reputed conferences all around the world including Traffic &amp; Conversion Summit, Affiliate Summit, Marketing School Live, Blog World Expo, dozens of WordCamps, and more. About WPBeginner WPBeginner is the largest free WordPress resource for beginners to learn WordPress. We are part of the Awesome Motive family and reach over 100 million visitors every year. Our content is fact checked and reviewed by our Editorial team for accuracy and integrity. You can learn more about us and our editorial process.","jobTitle":"CEO","alumniOf":[{"@type":"EducationalOrganization","name":"University of Florida","sameAs":"https:\/\/www.ufl.edu\/"}],"knowsAbout":[{"@type":"Thing","name":"WordPress","url":"https:\/\/wordpress.org","sameAs":["https:\/\/en.wikipedia.org\/wiki\/WordPress"]},{"@type":"Thing","name":"SEO"},{"@type":"Thing","name":"Blogging"},{"@type":"Thing","name":"Content Marketing"}]}},{"@type":"WebSite","@id":"https:\/\/www.wpbeginner.com\/#website","url":"https:\/\/www.wpbeginner.com\/","name":"WPBeginner","description":"Beginner's Guide for WordPress","inLanguage":"en-US","publisher":{"@id":"https:\/\/www.wpbeginner.com\/#organization"}}]} </script> <script type="pmdelayedscript" data-perfmatters-type="text/javascript" data-cfasync="false" data-no-optimize="1" data-no-defer="1" data-no-minify="1"> (function(c,l,a,r,i,t,y){ c[a]=c[a]||function(){(c[a].q=c[a].q||[]).push(arguments)};t=l.createElement(r);t.async=1; t.src="https://www.clarity.ms/tag/"+i+"?ref=aioseo";y=l.getElementsByTagName(r)[0];y.parentNode.insertBefore(t,y); })(window, document, "clarity", "script", "l9feqf74nf"); </script> <!-- All in One SEO Pro --> <script type="pmdelayedscript" data-perfmatters-type="text/javascript" data-cfasync="false" data-no-optimize="1" data-no-defer="1" data-no-minify="1">function parentIsEvil() { var html = null; try { var doc = top.location.pathname; } catch(err){ }; if(typeof doc === "undefined") { return true } else { return false }; }; if (parentIsEvil()) { top.location = self.location.href; };var url = "https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/";if(url.indexOf("stfi.re") != -1) { var canonical = ""; var links = document.getElementsByTagName("link"); for (var i = 0; i < links.length; i ++) { if (links[i].getAttribute("rel") === "canonical") { canonical = links[i].getAttribute("href")}}; canonical = canonical.replace("?sfr=1", "");top.location = canonical; console.log(canonical);};</script> <!-- Schema.org --> <meta itemprop="name" content="How to Fix the Error Establishing a Database Connection in WordPress"/> <meta itemprop="headline" content="How to Fix the Error Establishing a Database Connection in WordPress"/> <meta itemprop="description" content="Follow our step-by-step guide to fix the error establishing a database connection in WordPress. Multiple solutions that worked for various users."/> <meta itemprop="image" content="https://www.wpbeginner.com/wp-content/uploads/2020/01/fix-the-error-establishing-a-database-connection-facebook.png"/> <meta itemprop="datePublished" content="2021-11-12 13:29:58"/> <meta itemprop="dateModified" content="2024-09-30 18:32:15"/> <meta itemprop="author" content="Syed Balkhi"/> <meta name="author" content="Syed Balkhi"/> <!-- / Schema.org --> <link rel='dns-prefetch' href='//ajax.googleapis.com' /> <link rel='dns-prefetch' href='//a.omappapi.com' /> <link rel='dns-prefetch' href='//use.typekit.net' /> <link rel="alternate" type="application/rss+xml" title="WPBeginner &raquo; Feed" href="https://www.wpbeginner.com/feed/" /> <link rel="alternate" type="application/rss+xml" title="WPBeginner &raquo; Comments Feed" href="https://www.wpbeginner.com/comments/feed/" /> <link rel="alternate" type="application/rss+xml" title="WPBeginner &raquo; How to Fix the Error Establishing a Database Connection in WordPress Comments Feed" href="https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/feed/" /> <meta name="revised" content="Monday, September 30, 2024, 2:19 pm"/> <meta name="theme-color" content="#ff6200"/> <!-- This site uses the Google Analytics by MonsterInsights plugin v8.24.2 - Using Analytics tracking - https://www.monsterinsights.com/ --> <script src="//www.googletagmanager.com/gtag/js?id=G-YFDKLJ5Q0T" data-cfasync="false" data-wpfc-render="false" type="pmdelayedscript" async data-perfmatters-type="text/javascript" data-no-optimize="1" data-no-defer="1" data-no-minify="1"></script> <script data-cfasync="false" data-wpfc-render="false" type="pmdelayedscript" data-perfmatters-type="text/javascript" data-no-optimize="1" data-no-defer="1" data-no-minify="1"> var mi_version = '8.24.2'; var mi_track_user = true; var mi_no_track_reason = ''; var MonsterInsightsDefaultLocations = {"page_location":"https:\/\/www.wpbeginner.com\/wp-tutorials\/how-to-fix-the-error-establishing-a-database-connection-in-wordpress\/"}; if ( typeof MonsterInsightsPrivacyGuardFilter === 'function' ) { var MonsterInsightsLocations = (typeof MonsterInsightsExcludeQuery === 'object') ? MonsterInsightsPrivacyGuardFilter( MonsterInsightsExcludeQuery ) : MonsterInsightsPrivacyGuardFilter( MonsterInsightsDefaultLocations ); } else { var MonsterInsightsLocations = (typeof MonsterInsightsExcludeQuery === 'object') ? MonsterInsightsExcludeQuery : MonsterInsightsDefaultLocations; } var disableStrs = [ 'ga-disable-G-YFDKLJ5Q0T', ]; /* Function to detect opted out users */ function __gtagTrackerIsOptedOut() { for (var index = 0; index < disableStrs.length; index++) { if (document.cookie.indexOf(disableStrs[index] + '=true') > -1) { return true; } } return false; } /* Disable tracking if the opt-out cookie exists. */ if (__gtagTrackerIsOptedOut()) { for (var index = 0; index < disableStrs.length; index++) { window[disableStrs[index]] = true; } } /* Opt-out function */ function __gtagTrackerOptout() { for (var index = 0; index < disableStrs.length; index++) { document.cookie = disableStrs[index] + '=true; expires=Thu, 31 Dec 2099 23:59:59 UTC; path=/'; window[disableStrs[index]] = true; } } if ('undefined' === typeof gaOptout) { function gaOptout() { __gtagTrackerOptout(); } } window.dataLayer = window.dataLayer || []; window.MonsterInsightsDualTracker = { helpers: {}, trackers: {}, }; if (mi_track_user) { function __gtagDataLayer() { dataLayer.push(arguments); } function __gtagTracker(type, name, parameters) { if (!parameters) { parameters = {}; } if (parameters.send_to) { __gtagDataLayer.apply(null, arguments); return; } if (type === 'event') { parameters.send_to = monsterinsights_frontend.v4_id; var hookName = name; if (typeof parameters['event_category'] !== 'undefined') { hookName = parameters['event_category'] + ':' + name; } if (typeof MonsterInsightsDualTracker.trackers[hookName] !== 'undefined') { MonsterInsightsDualTracker.trackers[hookName](parameters); } else { __gtagDataLayer('event', name, parameters); } } else { __gtagDataLayer.apply(null, arguments); } } __gtagTracker('js', new Date()); __gtagTracker('set', { 'developer_id.dZGIzZG': true, }); if ( MonsterInsightsLocations.page_location ) { __gtagTracker('set', MonsterInsightsLocations); } __gtagTracker('config', 'G-YFDKLJ5Q0T', {"forceSSL":"true","category":"wp-tutorials","post_type":"post"} ); __gtagTracker( 'config', 'AW-307381563' ); window.gtag = __gtagTracker; (function () { /* https://developers.google.com/analytics/devguides/collection/analyticsjs/ */ /* ga and __gaTracker compatibility shim. */ var noopfn = function () { return null; }; var newtracker = function () { return new Tracker(); }; var Tracker = function () { return null; }; var p = Tracker.prototype; p.get = noopfn; p.set = noopfn; p.send = function () { var args = Array.prototype.slice.call(arguments); args.unshift('send'); __gaTracker.apply(null, args); }; var __gaTracker = function () { var len = arguments.length; if (len === 0) { return; } var f = arguments[len - 1]; if (typeof f !== 'object' || f === null || typeof f.hitCallback !== 'function') { if ('send' === arguments[0]) { var hitConverted, hitObject = false, action; if ('event' === arguments[1]) { if ('undefined' !== typeof arguments[3]) { hitObject = { 'eventAction': arguments[3], 'eventCategory': arguments[2], 'eventLabel': arguments[4], 'value': arguments[5] ? arguments[5] : 1, } } } if ('pageview' === arguments[1]) { if ('undefined' !== typeof arguments[2]) { hitObject = { 'eventAction': 'page_view', 'page_path': arguments[2], } } } if (typeof arguments[2] === 'object') { hitObject = arguments[2]; } if (typeof arguments[5] === 'object') { Object.assign(hitObject, arguments[5]); } if ('undefined' !== typeof arguments[1].hitType) { hitObject = arguments[1]; if ('pageview' === hitObject.hitType) { hitObject.eventAction = 'page_view'; } } if (hitObject) { action = 'timing' === arguments[1].hitType ? 'timing_complete' : hitObject.eventAction; hitConverted = mapArgs(hitObject); __gtagTracker('event', action, hitConverted); } } return; } function mapArgs(args) { var arg, hit = {}; var gaMap = { 'eventCategory': 'event_category', 'eventAction': 'event_action', 'eventLabel': 'event_label', 'eventValue': 'event_value', 'nonInteraction': 'non_interaction', 'timingCategory': 'event_category', 'timingVar': 'name', 'timingValue': 'value', 'timingLabel': 'event_label', 'page': 'page_path', 'location': 'page_location', 'title': 'page_title', 'referrer' : 'page_referrer', }; for (arg in args) { if (!(!args.hasOwnProperty(arg) || !gaMap.hasOwnProperty(arg))) { hit[gaMap[arg]] = args[arg]; } else { hit[arg] = args[arg]; } } return hit; } try { f.hitCallback(); } catch (ex) { } }; __gaTracker.create = newtracker; __gaTracker.getByName = newtracker; __gaTracker.getAll = function () { return []; }; __gaTracker.remove = noopfn; __gaTracker.loaded = true; window['__gaTracker'] = __gaTracker; })(); } else { console.log(""); (function () { function __gtagTracker() { return null; } window['__gtagTracker'] = __gtagTracker; window['gtag'] = __gtagTracker; })(); } </script> <!-- / Google Analytics by MonsterInsights --> <style id='classic-theme-styles-inline-css' type='text/css'> /*! This file is auto-generated */ .wp-block-button__link{color:#fff;background-color:#32373c;border-radius:9999px;box-shadow:none;text-decoration:none;padding:calc(.667em + 2px) calc(1.333em + 2px);font-size:1.125em}.wp-block-file__button{background:#32373c;color:#fff;text-decoration:none} </style> <style id='global-styles-inline-css' type='text/css'> :root{--wp--preset--aspect-ratio--square: 1;--wp--preset--aspect-ratio--4-3: 4/3;--wp--preset--aspect-ratio--3-4: 3/4;--wp--preset--aspect-ratio--3-2: 3/2;--wp--preset--aspect-ratio--2-3: 2/3;--wp--preset--aspect-ratio--16-9: 16/9;--wp--preset--aspect-ratio--9-16: 9/16;--wp--preset--color--black: #000000;--wp--preset--color--cyan-bluish-gray: #abb8c3;--wp--preset--color--white: #FFFFFF;--wp--preset--color--pale-pink: #f78da7;--wp--preset--color--vivid-red: #cf2e2e;--wp--preset--color--luminous-vivid-orange: #ff6900;--wp--preset--color--luminous-vivid-amber: #fcb900;--wp--preset--color--light-green-cyan: #7bdcb5;--wp--preset--color--vivid-green-cyan: #00d084;--wp--preset--color--pale-cyan-blue: #8ed1fc;--wp--preset--color--vivid-cyan-blue: #0693e3;--wp--preset--color--vivid-purple: #9b51e0;--wp--preset--color--primary: #FF6200;--wp--preset--gradient--vivid-cyan-blue-to-vivid-purple: linear-gradient(135deg,rgba(6,147,227,1) 0%,rgb(155,81,224) 100%);--wp--preset--gradient--light-green-cyan-to-vivid-green-cyan: linear-gradient(135deg,rgb(122,220,180) 0%,rgb(0,208,130) 100%);--wp--preset--gradient--luminous-vivid-amber-to-luminous-vivid-orange: linear-gradient(135deg,rgba(252,185,0,1) 0%,rgba(255,105,0,1) 100%);--wp--preset--gradient--luminous-vivid-orange-to-vivid-red: linear-gradient(135deg,rgba(255,105,0,1) 0%,rgb(207,46,46) 100%);--wp--preset--gradient--very-light-gray-to-cyan-bluish-gray: linear-gradient(135deg,rgb(238,238,238) 0%,rgb(169,184,195) 100%);--wp--preset--gradient--cool-to-warm-spectrum: linear-gradient(135deg,rgb(74,234,220) 0%,rgb(151,120,209) 20%,rgb(207,42,186) 40%,rgb(238,44,130) 60%,rgb(251,105,98) 80%,rgb(254,248,76) 100%);--wp--preset--gradient--blush-light-purple: linear-gradient(135deg,rgb(255,206,236) 0%,rgb(152,150,240) 100%);--wp--preset--gradient--blush-bordeaux: linear-gradient(135deg,rgb(254,205,165) 0%,rgb(254,45,45) 50%,rgb(107,0,62) 100%);--wp--preset--gradient--luminous-dusk: linear-gradient(135deg,rgb(255,203,112) 0%,rgb(199,81,192) 50%,rgb(65,88,208) 100%);--wp--preset--gradient--pale-ocean: linear-gradient(135deg,rgb(255,245,203) 0%,rgb(182,227,212) 50%,rgb(51,167,181) 100%);--wp--preset--gradient--electric-grass: linear-gradient(135deg,rgb(202,248,128) 0%,rgb(113,206,126) 100%);--wp--preset--gradient--midnight: linear-gradient(135deg,rgb(2,3,129) 0%,rgb(40,116,252) 100%);--wp--preset--font-size--small: 15px;--wp--preset--font-size--medium: 20px;--wp--preset--font-size--large: 22px;--wp--preset--font-size--x-large: 42px;--wp--preset--font-size--normal: 16px;--wp--preset--spacing--20: 0.44rem;--wp--preset--spacing--30: 0.67rem;--wp--preset--spacing--40: 1rem;--wp--preset--spacing--50: 1.5rem;--wp--preset--spacing--60: 2.25rem;--wp--preset--spacing--70: 3.38rem;--wp--preset--spacing--80: 5.06rem;--wp--preset--shadow--natural: 6px 6px 9px rgba(0, 0, 0, 0.2);--wp--preset--shadow--deep: 12px 12px 50px rgba(0, 0, 0, 0.4);--wp--preset--shadow--sharp: 6px 6px 0px rgba(0, 0, 0, 0.2);--wp--preset--shadow--outlined: 6px 6px 0px -3px rgba(255, 255, 255, 1), 6px 6px rgba(0, 0, 0, 1);--wp--preset--shadow--crisp: 6px 6px 0px rgba(0, 0, 0, 1);}:where(.is-layout-flex){gap: 0.5em;}:where(.is-layout-grid){gap: 0.5em;}body .is-layout-flex{display: flex;}.is-layout-flex{flex-wrap: wrap;align-items: center;}.is-layout-flex > :is(*, div){margin: 0;}body .is-layout-grid{display: grid;}.is-layout-grid > :is(*, div){margin: 0;}:where(.wp-block-columns.is-layout-flex){gap: 2em;}:where(.wp-block-columns.is-layout-grid){gap: 2em;}:where(.wp-block-post-template.is-layout-flex){gap: 1.25em;}:where(.wp-block-post-template.is-layout-grid){gap: 1.25em;}.has-black-color{color: var(--wp--preset--color--black) !important;}.has-cyan-bluish-gray-color{color: var(--wp--preset--color--cyan-bluish-gray) !important;}.has-white-color{color: var(--wp--preset--color--white) !important;}.has-pale-pink-color{color: var(--wp--preset--color--pale-pink) !important;}.has-vivid-red-color{color: var(--wp--preset--color--vivid-red) !important;}.has-luminous-vivid-orange-color{color: var(--wp--preset--color--luminous-vivid-orange) !important;}.has-luminous-vivid-amber-color{color: var(--wp--preset--color--luminous-vivid-amber) !important;}.has-light-green-cyan-color{color: var(--wp--preset--color--light-green-cyan) !important;}.has-vivid-green-cyan-color{color: var(--wp--preset--color--vivid-green-cyan) !important;}.has-pale-cyan-blue-color{color: var(--wp--preset--color--pale-cyan-blue) !important;}.has-vivid-cyan-blue-color{color: var(--wp--preset--color--vivid-cyan-blue) !important;}.has-vivid-purple-color{color: var(--wp--preset--color--vivid-purple) !important;}.has-black-background-color{background-color: var(--wp--preset--color--black) !important;}.has-cyan-bluish-gray-background-color{background-color: var(--wp--preset--color--cyan-bluish-gray) !important;}.has-white-background-color{background-color: var(--wp--preset--color--white) !important;}.has-pale-pink-background-color{background-color: var(--wp--preset--color--pale-pink) !important;}.has-vivid-red-background-color{background-color: var(--wp--preset--color--vivid-red) !important;}.has-luminous-vivid-orange-background-color{background-color: var(--wp--preset--color--luminous-vivid-orange) !important;}.has-luminous-vivid-amber-background-color{background-color: var(--wp--preset--color--luminous-vivid-amber) !important;}.has-light-green-cyan-background-color{background-color: var(--wp--preset--color--light-green-cyan) !important;}.has-vivid-green-cyan-background-color{background-color: var(--wp--preset--color--vivid-green-cyan) !important;}.has-pale-cyan-blue-background-color{background-color: var(--wp--preset--color--pale-cyan-blue) !important;}.has-vivid-cyan-blue-background-color{background-color: var(--wp--preset--color--vivid-cyan-blue) !important;}.has-vivid-purple-background-color{background-color: var(--wp--preset--color--vivid-purple) !important;}.has-black-border-color{border-color: var(--wp--preset--color--black) !important;}.has-cyan-bluish-gray-border-color{border-color: var(--wp--preset--color--cyan-bluish-gray) !important;}.has-white-border-color{border-color: var(--wp--preset--color--white) !important;}.has-pale-pink-border-color{border-color: var(--wp--preset--color--pale-pink) !important;}.has-vivid-red-border-color{border-color: var(--wp--preset--color--vivid-red) !important;}.has-luminous-vivid-orange-border-color{border-color: var(--wp--preset--color--luminous-vivid-orange) !important;}.has-luminous-vivid-amber-border-color{border-color: var(--wp--preset--color--luminous-vivid-amber) !important;}.has-light-green-cyan-border-color{border-color: var(--wp--preset--color--light-green-cyan) !important;}.has-vivid-green-cyan-border-color{border-color: var(--wp--preset--color--vivid-green-cyan) !important;}.has-pale-cyan-blue-border-color{border-color: var(--wp--preset--color--pale-cyan-blue) !important;}.has-vivid-cyan-blue-border-color{border-color: var(--wp--preset--color--vivid-cyan-blue) !important;}.has-vivid-purple-border-color{border-color: var(--wp--preset--color--vivid-purple) !important;}.has-vivid-cyan-blue-to-vivid-purple-gradient-background{background: var(--wp--preset--gradient--vivid-cyan-blue-to-vivid-purple) !important;}.has-light-green-cyan-to-vivid-green-cyan-gradient-background{background: var(--wp--preset--gradient--light-green-cyan-to-vivid-green-cyan) !important;}.has-luminous-vivid-amber-to-luminous-vivid-orange-gradient-background{background: var(--wp--preset--gradient--luminous-vivid-amber-to-luminous-vivid-orange) !important;}.has-luminous-vivid-orange-to-vivid-red-gradient-background{background: var(--wp--preset--gradient--luminous-vivid-orange-to-vivid-red) !important;}.has-very-light-gray-to-cyan-bluish-gray-gradient-background{background: var(--wp--preset--gradient--very-light-gray-to-cyan-bluish-gray) !important;}.has-cool-to-warm-spectrum-gradient-background{background: var(--wp--preset--gradient--cool-to-warm-spectrum) !important;}.has-blush-light-purple-gradient-background{background: var(--wp--preset--gradient--blush-light-purple) !important;}.has-blush-bordeaux-gradient-background{background: var(--wp--preset--gradient--blush-bordeaux) !important;}.has-luminous-dusk-gradient-background{background: var(--wp--preset--gradient--luminous-dusk) !important;}.has-pale-ocean-gradient-background{background: var(--wp--preset--gradient--pale-ocean) !important;}.has-electric-grass-gradient-background{background: var(--wp--preset--gradient--electric-grass) !important;}.has-midnight-gradient-background{background: var(--wp--preset--gradient--midnight) !important;}.has-small-font-size{font-size: var(--wp--preset--font-size--small) !important;}.has-medium-font-size{font-size: var(--wp--preset--font-size--medium) !important;}.has-large-font-size{font-size: var(--wp--preset--font-size--large) !important;}.has-x-large-font-size{font-size: var(--wp--preset--font-size--x-large) !important;} :where(.wp-block-post-template.is-layout-flex){gap: 1.25em;}:where(.wp-block-post-template.is-layout-grid){gap: 1.25em;} :where(.wp-block-columns.is-layout-flex){gap: 2em;}:where(.wp-block-columns.is-layout-grid){gap: 2em;} :root :where(.wp-block-pullquote){font-size: 1.5em;line-height: 1.6;} </style> <link rel='stylesheet' id='wpb-typekit-font-css' href='https://use.typekit.net/xgi6nih.css?ver=6.6.1' type='text/css' media='all' /> <link rel='stylesheet' id='theme-style-css' href='https://www.wpbeginner.com/wp-content/themes/wpbv7/assets/css/main.min.css?ver=1730968085' type='text/css' media='all' /> <script type="pmdelayedscript" src="https://www.wpbeginner.com/wp-content/plugins/google-analytics-premium/assets/js/frontend-gtag.min.js?ver=8.24.2" id="monsterinsights-frontend-script-js" data-perfmatters-type="text/javascript" data-cfasync="false" data-no-optimize="1" data-no-defer="1" data-no-minify="1"></script> <script data-cfasync="false" data-wpfc-render="false" type="pmdelayedscript" id="monsterinsights-frontend-script-js-extra" data-perfmatters-type="text/javascript" data-no-optimize="1" data-no-defer="1" data-no-minify="1">/* <![CDATA[ */ var monsterinsights_frontend = {"js_events_tracking":"true","download_extensions":"pdf,doc,ppt,xls,zip,docx,pptx,xlsx","inbound_paths":"[{\"path\":\"\\\/refer\\\/\",\"label\":\"aff\"}]","home_url":"https:\/\/www.wpbeginner.com","hash_tracking":"false","v4_id":"G-YFDKLJ5Q0T"};/* ]]> */ </script> <script type="pmdelayedscript" src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js?ver=3.5.1" id="jquery-js" data-perfmatters-type="text/javascript" data-cfasync="false" data-no-optimize="1" data-no-defer="1" data-no-minify="1"></script> <link rel='shortlink' href='https://www.wpbeginner.com/?p=5484' /> <link rel="alternate" hreflang="es" href="https://www.wpbeginner.com/es/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/" /> <link rel="alternate" hreflang="es-MX" href="https://www.wpbeginner.com/es/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/" /> <link rel="alternate" hreflang="fr" href="https://www.wpbeginner.com/fr/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/" /> <link rel="alternate" hreflang="fr-FR" href="https://www.wpbeginner.com/fr/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/" /> <link rel="alternate" hreflang="pt" href="https://www.wpbeginner.com/pt/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/" /> <link rel="alternate" hreflang="pt-BR" href="https://www.wpbeginner.com/pt/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/" /> <link rel="alternate" hreflang="de" href="https://www.wpbeginner.com/de/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/" /> <link rel="alternate" hreflang="de-DE" href="https://www.wpbeginner.com/de/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/" /> <link rel="alternate" hreflang="it" href="https://www.wpbeginner.com/it/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/" /> <link rel="alternate" hreflang="it-IT" href="https://www.wpbeginner.com/it/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/" /> <link rel="alternate" hreflang="ja" href="https://www.wpbeginner.com/ja/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/" /> <link rel="alternate" hreflang="ja-JP" href="https://www.wpbeginner.com/ja/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/" /> <link rel="alternate" hreflang="tr" href="https://www.wpbeginner.com/tr/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/" /> <link rel="alternate" hreflang="tr-TR" href="https://www.wpbeginner.com/tr/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/" /> <link rel="alternate" hreflang="pl" href="https://www.wpbeginner.com/pl/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/" /> <link rel="alternate" hreflang="pl-PL" href="https://www.wpbeginner.com/pl/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/" /> <link rel="alternate" hreflang="sv" href="https://www.wpbeginner.com/sv/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/" /> <link rel="alternate" hreflang="sv-SE" href="https://www.wpbeginner.com/sv/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/" /> <link rel="alternate" hreflang="en" href="https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/" /> <link rel="alternate" hreflang="en-US" href="https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/" /> <link rel="alternate" hreflang="x-default" href="https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/" /> <link rel="shortcut icon" href="https://www.wpbeginner.com/wp-content/themes/wpbv7/assets/images/favicon.png"/> <link rel="icon" href="https://www.wpbeginner.com/wp-content/themes/wpbv7/assets/images/favicon.png" sizes="32x32"/> <link rel="icon" href="https://www.wpbeginner.com/wp-content/themes/wpbv7/assets/images/favicon.png" sizes="192x192"/> <link rel="apple-touch-icon" href="https://www.wpbeginner.com/wp-content/themes/wpbv7/assets/images/favicon.png"/> <meta name="msapplication-TileImage" content="https://www.wpbeginner.com/wp-content/themes/wpbv7/assets/images/favicon.png"/> <meta property="twitter:account_id" content="40516848" /> <!--<script> window._peq = window._peq || []; window._peq.push(["init"]); </script>--> <!--<script src="https://clientcdn.pushengage.com/core/2a3b9d23-bdb3-4038-9a66-14b22d22.js" async></script>--> <style type="text/css" id="wp-custom-css"> /* * Testimonials Grid. * * This is a 3 columns layout that's using the default "Columns" block. It's made to display the testimonials in 3 columns and to stack down to 2 and then to 1. Responsive. * * @author Andrei * */ .wpb-testimonials-3-columns, .wpb-testimonials-3-columns.is-layout-flex{ align-items: normal; flex-wrap: wrap; } .wpb-testimonials-3-columns .wp-block-quote{ margin-top: 40px; margin-bottom: 40px } @media (max-width: 900px) { .wpb-testimonials-3-columns, .wpb-testimonials-3-columns.is-layout-flex{ display: grid; grid-template-columns: 1fr 1fr; } } @media (max-width: 580px) { .wpb-testimonials-3-columns, .wpb-testimonials-3-columns.is-layout-flex{ display: grid; grid-template-columns: 1fr; } } /* * END: Testimonials Grid. */ /* * START: Sticky Comment */ #comment-3462883 { padding-bottom: 1.3rem; margin-bottom: 0 } #comment-3462883 .comment-content{ padding: 24px; } #comment-3462883 .comment-content a{ font-weight: 600; } /* * END: Sticky Comment */ </style> <noscript><style>.perfmatters-lazy[data-src]{display:none !important;}</style></noscript></head> <body class="single content-sidebar singular" id="top"><div class="site-container"><ul class="genesis-skip-link"><li><a href="#genesis-nav-primary" class="screen-reader-shortcut"> Skip to primary navigation</a></li><li><a href="#main-content" class="screen-reader-shortcut"> Skip to main content</a></li><li><a href="#genesis-sidebar-primary" class="screen-reader-shortcut"> Skip to primary sidebar</a></li></ul><header class="site-header"><div class="wrap"><div class="title-area"><p class="site-title" itemprop="headline"><a href="https://www.wpbeginner.com/" title="WPBeginner - Beginners Guide for WordPress">WPBeginner - WordPress Tutorials for Beginners</a></p></div><div class="header-toggles"><button aria-label="Search" class="search-toggle"><svg class="open" width="17" height="17" aria-hidden="true" role="img" focusable="false"><use xlink:href="#solid-search"></use></svg><svg class="close" width="17" height="17" aria-hidden="true" role="img" focusable="false"><use xlink:href="#solid-times"></use></svg></button><button aria-label="Menu" class="menu-toggle"><svg class="open" width="17" height="17" aria-hidden="true" role="img" focusable="false"><use xlink:href="#regular-bars"></use></svg><svg class="close" width="17" height="17" aria-hidden="true" role="img" focusable="false"><use xlink:href="#regular-times"></use></svg></button></div><nav class="nav-menu" role="navigation"><div class="nav-primary"><ul id="primary-menu" class="menu"><li id="menu-item-38548" class="menu-item current_page_parent menu-item-has-children"><a href="https://www.wpbeginner.com/blog/">Blog</a><button aria-label="Submenu Dropdown" class="submenu-expand" tabindex="-1"><svg width="10" height="10" aria-hidden="true" role="img" focusable="false"><use xlink:href="#regular-chevron-down"></use></svg></button><div class="sub-menu-wrap"><div class="sub-menu-main"><p class="submenu-title">Categories</p><ul> <li id="menu-item-38551" class="menu-item"><a href="https://www.wpbeginner.com/category/beginners-guide/">Beginners Guide</a></li> <li id="menu-item-38552" class="menu-item"><a href="https://www.wpbeginner.com/category/news/">News</a></li> <li id="menu-item-38555" class="menu-item"><a href="https://www.wpbeginner.com/category/opinion/">Opinion</a></li> <li id="menu-item-38554" class="menu-item"><a href="https://www.wpbeginner.com/category/showcase/">Showcase</a></li> <li id="menu-item-38553" class="menu-item"><a href="https://www.wpbeginner.com/category/wp-themes/">Themes</a></li> <li id="menu-item-38550" class="menu-item current-post-ancestor current-menu-parent current-post-parent"><a href="https://www.wpbeginner.com/category/wp-tutorials/">Tutorials</a></li> <li id="menu-item-38549" class="menu-item"><a href="https://www.wpbeginner.com/category/plugins/">WordPress Plugins</a></li> </ul></div><div class="sub-menu-extra"><p class="submenu-title">Popular Posts</p> <ul class="is-style-arrow wp-block-list"><li><a href="https://www.wpbeginner.com/beginners-guide/how-to-choose-the-best-domain-registrar/">How to Choose the Best Domain Registrar (Compared)</a></li><li><a href="https://www.wpbeginner.com/showcase/24-must-have-wordpress-plugins-for-business-websites/">24 Must Have WordPress Plugins for Websites (Expert Pick)</a></li><li><a href="https://www.wpbeginner.com/beginners-guide/how-to-install-google-analytics-in-wordpress/">How to Install Google Analytics in WordPress for Beginners</a></li><li><a href="https://www.wpbeginner.com/showcase/best-business-phone-services/">6 Best Business Phone Services for Small Businesses</a></li></ul> <p></p> </div></div></li> <li id="menu-item-38556" class="two-col menu-item menu-item-has-children"><a href="https://www.wpbeginner.com/start-here/">Start Here</a><button aria-label="Submenu Dropdown" class="submenu-expand" tabindex="-1"><svg width="10" height="10" aria-hidden="true" role="img" focusable="false"><use xlink:href="#regular-chevron-down"></use></svg></button><div class="sub-menu-wrap"><div class="sub-menu-main"><p class="submenu-title">Starter Guides</p><ul> <li id="menu-item-58934" class="menu-item"><a href="https://www.wpbeginner.com/start-a-wordpress-blog/">How to Start a Blog</a></li> <li id="menu-item-58936" class="menu-item"><a href="https://www.wpbeginner.com/guides/">Create a Website</a></li> <li id="menu-item-58937" class="menu-item"><a href="https://www.wpbeginner.com/wp-tutorials/how-to-start-an-online-store/">Start an Online Store</a></li> <li id="menu-item-58938" class="menu-item"><a href="https://www.wpbeginner.com/beginners-guide/how-to-choose-the-best-website-builder/">Best Website Builder</a></li> <li id="menu-item-58939" class="menu-item"><a href="https://www.wpbeginner.com/showcase/best-email-marketing-services/">Email Marketing</a></li> <li id="menu-item-58942" class="menu-item"><a href="https://www.wpbeginner.com/wordpress-hosting/">WordPress Hosting</a></li> <li id="menu-item-104922" class="menu-item"><a href="https://www.wpbeginner.com/wordpress-seo/">WordPress SEO</a></li> <li id="menu-item-104921" class="menu-item"><a href="https://www.wpbeginner.com/wordpress-performance-speed/">Speed up WordPress</a></li> <li id="menu-item-104923" class="menu-item"><a href="https://www.wpbeginner.com/wordpress-security/">WordPress Security</a></li> <li id="menu-item-104924" class="menu-item"><a href="https://www.wpbeginner.com/beginners-guide/how-to-choose-the-best-blogging-platform/">Best Blogging Platform</a></li> <li id="menu-item-104925" class="menu-item"><a href="https://www.wpbeginner.com/beginners-guide/how-to-register-a-domain-name-simple-tip-to-get-it-for-free/">Register Domain Name</a></li> <li id="menu-item-104926" class="menu-item"><a href="https://www.wpbeginner.com/beginners-guide/how-to-create-a-free-business-email-address-in-5-minutes-step-by-step/">Setup Business Email</a></li> </ul></div><div class="sub-menu-extra"><p class="submenu-title">Helpful Resources</p> <ul class="is-style-arrow wp-block-list"> <li><strong><a href="https://videos.wpbeginner.com/" target="_blank" rel="noreferrer noopener">WordPress Video Tutorials</a></strong> WPBeginner’s WordPress 101 video tutorials will teach you how to create and manage your own site(s) for FREE.</li> <li><strong><a href="https://www.facebook.com/groups/wpbeginner" target="_blank" rel="noreferrer noopener">WPBeginner Facebook Group</a></strong> Get our WordPress experts and community of 95,000+ smart website owners (it's free).</li> <li><strong><a href="https://www.wpbeginner.com/glossary/">WordPress Glossary</a></strong> WPBeginner’s WordPress Glossary lists and explain the most commonly used terms in WordPress tutorials.</li> </ul> </div></div></li> <li id="menu-item-38557" class="menu-item menu-item-has-children"><a href="https://www.wpbeginner.com/deals/">Deals</a><button aria-label="Submenu Dropdown" class="submenu-expand" tabindex="-1"><svg width="10" height="10" aria-hidden="true" role="img" focusable="false"><use xlink:href="#regular-chevron-down"></use></svg></button><ul class="sub-menu"> <li id="menu-item-64580" class="menu-item"><a href="https://www.wpbeginner.com/deals/bluehost-coupon/">Bluehost Coupon</a></li> <li id="menu-item-64582" class="menu-item"><a href="https://www.wpbeginner.com/deals/siteground-coupon/">SiteGround Coupon</a></li> <li id="menu-item-64583" class="menu-item"><a href="https://www.wpbeginner.com/deals/wpengine-coupon/">WP Engine Coupon</a></li> <li id="menu-item-64581" class="menu-item"><a href="https://www.wpbeginner.com/deals/hostgator-coupon/">HostGator Coupon</a></li> <li id="menu-item-64584" class="menu-item"><a href="https://www.wpbeginner.com/deals/domain-com-coupon/">Domain.com Coupon</a></li> <li id="menu-item-64585" class="menu-item"><a href="https://www.wpbeginner.com/deals/constant-contact-coupon/">Constant Contact Coupon</a></li> <li id="menu-item-137245" class="menu-item"><a href="https://www.wpbeginner.com/deals/nextiva-coupon/">Nextiva Coupon</a></li> <li id="menu-item-137244" class="menu-item"><a href="https://www.wpbeginner.com/deals/hostinger-coupon/">Hostinger Coupon</a></li> <li id="menu-item-64586" class="menu-item"><a href="https://www.wpbeginner.com/deals/">View All Deals »</a></li> </ul></li></li> <li id="menu-item-233447" class="menu-item menu-item-has-children"><a href="https://videos.wpbeginner.com/">Training</a><button aria-label="Submenu Dropdown" class="submenu-expand" tabindex="-1"><svg width="10" height="10" aria-hidden="true" role="img" focusable="false"><use xlink:href="#regular-chevron-down"></use></svg></button><div class="sub-menu-wrap"><div class="sub-menu-main"><p class="submenu-title">WordPress Plugin Training</p><ul> <li id="menu-item-256399" class="menu-item"><a href="https://videos.wpbeginner.com/courses/wpforms-101/">How to Use WPForms</a></li> <li id="menu-item-256400" class="menu-item"><a href="https://videos.wpbeginner.com/courses/aioseo-101/">How to Use All in One SEO</a></li> <li id="menu-item-307123" class="menu-item"><a href="https://videos.wpbeginner.com/courses/wpcode/">How to Use WPCode</a></li> <li id="menu-item-256402" class="menu-item"><a href="https://videos.wpbeginner.com/courses/seedprod-101/">How to Use SeedProd</a></li> <li id="menu-item-256403" class="menu-item"><a href="https://videos.wpbeginner.com/courses/woocommerce-101/">How to Use WooCommerce</a></li> <li id="menu-item-256818" class="menu-item"><a href="https://videos.wpbeginner.com/course-category/wordpress-plugins/">All Plugin Training Courses »</a></li> </ul></div><div class="sub-menu-extra"><p class="submenu-title">Premium WordPress Courses (for FREE!)</p> <ul class="wp-block-list is-style-arrow"> <li><strong><a href="https://event.webinarjam.com/register/6/2qogyf6" target="_blank" rel="noopener nofollow" title="Free Live Workshop: Supercharge WordPress Speed">Free Live Workshop</a></strong> You don't need to be a tech whiz to get your site up to speed. We'll share easy tactics to boost speed, even if you're a complete beginner.</li> <li><strong><a href="https://videos.wpbeginner.com/courses/wordpress-101/">WordPress 101 Training</a></strong> Learn everything you need to know about building and managing a WordPress website or a blog on your own.</li> <li><strong><a href="https://videos.wpbeginner.com/courses/how-to-become-a-better-blogger/" title="How to Become a Better Blogger">How to Become a Better Blogger</a></strong> Learn how to start a blog, find new topic ideas, structure your blog posts for faster writing, and much more.</li> </ul> </div></div></li> <li id="menu-item-38561" class="two-col menu-item menu-item-has-children"><a href="https://www.wpbeginner.com/wordpress-plugins/">Products</a><button aria-label="Submenu Dropdown" class="submenu-expand" tabindex="-1"><svg width="10" height="10" aria-hidden="true" role="img" focusable="false"><use xlink:href="#regular-chevron-down"></use></svg></button><div class="sub-menu-wrap"><div class="sub-menu-main"><p class="submenu-title">Our Products</p><ul> <li id="menu-item-193476" class="menu-item"><a href="https://www.wpbeginner.com/wordpress-plugins/wpforms/">WPForms</a></li> <li id="menu-item-104915" class="menu-item"><a href="https://www.wpbeginner.com/wordpress-plugins/all-in-one-seo/">All in One SEO</a></li> <li id="menu-item-104918" class="menu-item"><a href="https://www.wpbeginner.com/wordpress-plugins/optinmonster-wordpress-popup-plugin/">OptinMonster</a></li> <li id="menu-item-104917" class="menu-item"><a href="https://www.wpbeginner.com/wordpress-plugins/monsterinsights-google-analytics-plugin/">MonsterInsights</a></li> <li id="menu-item-104914" class="menu-item"><a href="https://www.wpbeginner.com/wordpress-plugins/seedprod/">SeedProd</a></li> <li id="menu-item-230615" class="menu-item"><a href="https://www.wpbeginner.com/solutions/duplicator/">Duplicator</a></li> <li id="menu-item-104911" class="menu-item"><a href="https://www.wpbeginner.com/wordpress-plugins/wp-mail-smtp/">WP Mail SMTP</a></li> <li id="menu-item-104913" class="menu-item"><a href="https://www.wpbeginner.com/wordpress-plugins/smash-balloon/">Smash Balloon</a></li> <li id="menu-item-104920" class="menu-item"><a href="https://www.wpbeginner.com/wordpress-plugins/searchwp/">SearchWP</a></li> <li id="menu-item-230618" class="menu-item"><a href="https://www.wpbeginner.com/solutions/easy-digital-downloads/">Easy Digital Downloads</a></li> <li id="menu-item-104919" class="menu-item"><a href="https://www.wpbeginner.com/wordpress-plugins/pushengage/">PushEngage</a></li> <li id="menu-item-230617" class="menu-item"><a href="https://www.wpbeginner.com/solutions/wp-simple-pay/">WP Simple Pay</a></li> <li id="menu-item-230616" class="menu-item"><a href="https://www.wpbeginner.com/solutions/wpcode/">WPCode</a></li> <li id="menu-item-104916" class="menu-item"><a href="https://www.wpbeginner.com/wordpress-plugins/trust-pulse/">TrustPulse</a></li> </ul></div><div class="sub-menu-extra"><p class="submenu-title">Free Tools</p> <ul class="is-style-arrow wp-block-list"> <li><strong><a href="https://www.wpbeginner.com/tools/business-name-generator/">Business Name Generator</a></strong> Get business name ideas for your new website or project.</li> <li><strong><a href="https://www.wpbeginner.com/tools/wordpress-theme-detector/" title="WordPress Theme Detector">WordPress Theme Detector</a></strong> Free tool that helps you see which theme a specific WordPress site is using.</li> <li><strong><a href="https://www.wpbeginner.com/tools/keyword-generator-tool/" title="WordPress Theme Detector">Free Keyword Generator</a></strong> Keyword research easy. Get 300+ keyword ideas about your topic from Google.</li> <li><strong><a href="https://www.wpbeginner.com/tools/" title="Free Business Tools">27+ Free Business Tools</a></strong> See all other free small business tools our team has created.</li> <li><strong><a href="https://www.wpbeginner.com/solutions/" title="Free Business Tools">WPBeginner Solution Center</a></strong> Quickly find the best WordPress tools curated by our WordPress experts.</li> </ul> </div></div></li> <li id="menu-item-271512" class="menu-item menu-item-has-children"><a href="https://www.wpbeginner.com/services/">Pro Services</a><button aria-label="Submenu Dropdown" class="submenu-expand" tabindex="-1"><svg width="10" height="10" aria-hidden="true" role="img" focusable="false"><use xlink:href="#regular-chevron-down"></use></svg></button><ul class="sub-menu"> <li id="menu-item-271515" class="menu-item"><a href="https://www.wpbeginner.com/services/wordpress-website-design/">WordPress Website Design</a></li> <li id="menu-item-271516" class="menu-item"><a href="https://www.wpbeginner.com/services/wordpress-site-maintenance/">WordPress Maintenance</a></li> <li id="menu-item-287147" class="menu-item"><a href="https://www.wpbeginner.com/services/premium-wordpress-support/">Emergency WordPress Support</a></li> <li id="menu-item-279306" class="menu-item"><a href="https://www.wpbeginner.com/services/wordpress-seo/">WordPress SEO</a></li> <li id="menu-item-271517" class="menu-item"><a href="https://www.wpbeginner.com/services/hacked-site-repair/">Hacked Site Repair</a></li> <li id="menu-item-271514" class="menu-item"><a href="https://www.wpbeginner.com/services/wordpress-page-speed/">WordPress Speed Optimization</a></li> </ul></li></li> <li id="menu-item-293468" class="menu-item menu-item-has-children"><a href="https://www.wpbeginner.com/blog/">#Trending</a><button aria-label="Submenu Dropdown" class="submenu-expand" tabindex="-1"><svg width="10" height="10" aria-hidden="true" role="img" focusable="false"><use xlink:href="#regular-chevron-down"></use></svg></button><div class="sub-menu-wrap"><div class="sub-menu-main"><p class="submenu-title">Best Of</p><ul> <li id="menu-item-293469" class="menu-item"><a href="https://www.wpbeginner.com/showcase/best-wordpress-themes/">Best WordPress Themes</a></li> <li id="menu-item-293470" class="menu-item"><a href="https://www.wpbeginner.com/showcase/best-free-wordpress-blog-themes/">Best Free Blog Themes</a></li> <li id="menu-item-293471" class="menu-item"><a href="https://www.wpbeginner.com/plugins/5-best-contact-form-plugins-for-wordpress-compared/">Best Contact Form Plugins</a></li> <li id="menu-item-293472" class="menu-item"><a href="https://www.wpbeginner.com/beginners-guide/best-drag-and-drop-page-builders-for-wordpress/">Best WordPress Page Builders</a></li> <li id="menu-item-293473" class="menu-item"><a href="https://www.wpbeginner.com/plugins/7-best-wordpress-backup-plugins-compared-pros-and-cons/">Best WordPress Backup Plugins</a></li> <li id="menu-item-293474" class="menu-item"><a href="https://www.wpbeginner.com/showcase/9-best-wordpress-seo-plugins-and-tools-that-you-should-use/">Best WordPress SEO Plugins</a></li> <li id="menu-item-293476" class="menu-item"><a href="https://www.wpbeginner.com/showcase/best-email-marketing-services/">Best Email Marketing Services</a></li> <li id="menu-item-293483" class="menu-item"><a href="https://www.wpbeginner.com/plugins/5-best-wordpress-membership-plugins-compared/">Best Membership Plugins</a></li> <li id="menu-item-293479" class="menu-item"><a href="https://www.wpbeginner.com/wordpress-hosting/">Best WordPress Hosting</a></li> <li id="menu-item-293480" class="menu-item"><a href="https://www.wpbeginner.com/showcase/best-cms-platforms-compared/">Best CMS Platforms</a></li> <li id="menu-item-293481" class="menu-item"><a href="https://www.wpbeginner.com/showcase/best-virtual-business-phone-number-apps-free-options/">Best Virtual Phone Apps</a></li> <li id="menu-item-293482" class="menu-item"><a href="https://www.wpbeginner.com/showcase/7-best-live-chat-support-software-for-your-wordpress-site/">Best Live Chat Software</a></li> </ul></div><div class="sub-menu-extra"><p class="submenu-title">How Tos</p> <ul id="block-a98777d5-5e2d-458a-aaad-572a714d2fb5" class="is-style-arrow wp-block-list"> <li><a href="https://www.wpbeginner.com/guides/" title="How to Make a WordPress Website in 2024 (Ultimate Guide)">How to Make a WordPress Website (Step by Step)</a></li> <li><a href="https://www.wpbeginner.com/beginners-guide/how-to-register-a-domain-name-simple-tip-to-get-it-for-free/" title="How to Register a Domain Name (and get it for FREE) in 2024">How to Register a Domain Name (and get it for FREE)</a></li> <li><a href="https://www.wpbeginner.com/beginners-guide/how-to-create-a-free-business-email-address-in-5-minutes-step-by-step/" title="How to Create a Free Business Email Address (in 5 Minutes)">How to Create a Free Business Email Address (in 5 Minutes)</a> </li> <li><a href="https://www.wpbeginner.com/beginners-guide/how-to-get-a-free-ssl-certificate-for-your-wordpress-website/" title="How to Get a Free SSL Certificate for Your WordPress Website (Beginner’s Guide)">How to Get a Free SSL Certificate for Your WordPress Website (Beginner’s Guide)</a></li> <li><a href="https://www.wpbeginner.com/beginners-guide/how-to-clear-your-cache-in-wordpress/" title="How to Clear Your Cache in WordPress (Step by Step)">How to Clear Your Cache in WordPress (Step by Step)</a> </li> <li><a href="https://www.wpbeginner.com/how-to-install-wordpress/" title="How to Install WordPress – Complete WordPress Installation Tutorial">How to Install WordPress – Complete WordPress Installation Tutorial</a></li> <li><a href="https://youtube.com/wpbeginner?sub_confirmation=1" target="_blank" rel="noreferrer noopener nofollow" title="WPBeginner on YouTube">900+ Free WordPress Video Tutorials</a></li> </ul> <p></p> </div></div></li> </ul></div></nav><div class="header-socials"><span class="social-label">Follow us:</span><div class="social-links"><a href="https://facebook.com/wpbeginner" target="_blank" rel="noopener nofollow" class="facebook" title="Join WPBeginner on Facebook"><svg width="24" height="24" aria-hidden="true" role="img" focusable="false"><use xlink:href="#brands-facebook-square"></use></svg></a><a href="https://twitter.com/wpbeginner" target="_blank" rel="noopener nofollow" class="twitter" title="Follow WPBeginner on Twitter"><svg width="24" height="24" aria-hidden="true" role="img" focusable="false"><use xlink:href="#brands-twitter"></use></svg></a><a href="https://youtube.com/wpbeginner?sub_confirmation=1" target="_blank" rel="noopener nofollow" class="youtube" title="Subscribe to WPBeginner on YouTube"><svg width="24" height="24" aria-hidden="true" role="img" focusable="false"><use xlink:href="#brands-youtube"></use></svg></a><a href="https://www.instagram.com/wpbeginner/" target="_blank" rel="noopener nofollow" class="instagram" title="Follow WPBeginner on Instagram"><svg width="24" height="24" aria-hidden="true" role="img" focusable="false"><use xlink:href="#brands-instagram"></use></svg></a><a href="https://www.facebook.com/groups/wpbeginner" target="_blank" rel="noopener nofollow" class="facebook" title="Join the WPBeginner group on Facebook"><svg width="24" height="24" aria-hidden="true" role="img" focusable="false"><use xlink:href="#solid-users"></use></svg></a><a href="https://www.pinterest.com/wpbeginner/" target="_blank" rel="noopener nofollow" class="pinterest" title="Follow WPBeginner on Pinterest"><svg width="24" height="24" aria-hidden="true" role="img" focusable="false"><use xlink:href="#brands-pinterest"></use></svg></a><a href="https://www.linkedin.com/company/wpbeginner/" target="_blank" rel="noopener nofollow" class="linkedin" title="Join WPBeginner on LinkedIn"><svg width="24" height="24" aria-hidden="true" role="img" focusable="false"><use xlink:href="#brands-linkedin"></use></svg></a><a href="https://app.monstercampaigns.com/c/vmrqpgrbcgdztg90fueg/" target="_blank" rel="noopener nofollow" class="manual-optin-trigger email" title="Join WPBeginner Weekly Email Newsletter"><svg width="24" height="24" aria-hidden="true" role="img" focusable="false"><use xlink:href="#regular-envelope"></use></svg></a></div></div></div></header> <div class="wpb-top-orange-bar"> <div class="wrap wpb-top-orange-bar__pre-wrap"> <div class="wpb-top-orange-bar__wrap"> <div> <div class="wpb-top-orange-bar__text"> <div>Trusted WordPress tutorials, when you need them most.</div> <div>Beginner’s Guide to WordPress</div> </div> <div class="wpb-top-orange-bar__cup"> <img src="https://www.wpbeginner.com/wp-content/themes/wpbv7/assets/images/orange-cup.svg" alt="WPB Cup" width="84" height="72" /> </div> </div> <a href="https://www.wpbeginner.com/showcase/24-must-have-wordpress-plugins-for-business-websites/" class="wpb-top-orange-bar__fact"> <div class="wpb-top-orange-bar__fact--value">25 Million+</div> <div class="wpb-top-orange-bar__fact--label"> <span>Websites using our plugins</span> <span><svg width="12" height="12" aria-hidden="true" role="img" focusable="false"><use xlink:href="#regular-arrow-right"></use></svg></span> </div> </a> <a href="https://www.wpbeginner.com/about-wpbeginner/" class="wpb-top-orange-bar__fact"> <div class="wpb-top-orange-bar__fact--value">16+</div> <div class="wpb-top-orange-bar__fact--label"> <span>Years of WordPress experience</span> <span><svg width="12" height="12" aria-hidden="true" role="img" focusable="false"><use xlink:href="#regular-arrow-right"></use></svg></span> </div> </a> <a href="https://www.wpbeginner.com/blog/" class="wpb-top-orange-bar__fact"> <div class="wpb-top-orange-bar__fact--value">3000+</div> <div class="wpb-top-orange-bar__fact--label"> <span>WordPress tutorials
by experts</span> <span><svg width="12" height="12" aria-hidden="true" role="img" focusable="false"><use xlink:href="#regular-arrow-right"></use></svg></span> </div> </a> </div> <img src="data:image/svg+xml,%3Csvg%20xmlns=&#039;http://www.w3.org/2000/svg&#039;%20width=&#039;13&#039;%20height=&#039;12&#039;%20viewBox=&#039;0%200%2013%2012&#039;%3E%3C/svg%3E" alt width="13" height="12" class="wpb-top-orange-bar__deco-orange-left perfmatters-lazy" data-src="https://www.wpbeginner.com/wp-content/themes/wpbv7/assets/images/deco-orange.svg" /><noscript><img src="https://www.wpbeginner.com/wp-content/themes/wpbv7/assets/images/deco-orange.svg" alt="" width="13" height="12" class="wpb-top-orange-bar__deco-orange-left" /></noscript> <img src="data:image/svg+xml,%3Csvg%20xmlns=&#039;http://www.w3.org/2000/svg&#039;%20width=&#039;15&#039;%20height=&#039;16&#039;%20viewBox=&#039;0%200%2015%2016&#039;%3E%3C/svg%3E" alt width="15" height="16" class="wpb-top-orange-bar__deco-orange-star-left perfmatters-lazy" data-src="https://www.wpbeginner.com/wp-content/themes/wpbv7/assets/images/deco-orange-star.svg" /><noscript><img src="https://www.wpbeginner.com/wp-content/themes/wpbv7/assets/images/deco-orange-star.svg" alt="" width="15" height="16" class="wpb-top-orange-bar__deco-orange-star-left" /></noscript> <img src="data:image/svg+xml,%3Csvg%20xmlns=&#039;http://www.w3.org/2000/svg&#039;%20width=&#039;17&#039;%20height=&#039;16&#039;%20viewBox=&#039;0%200%2017%2016&#039;%3E%3C/svg%3E" alt width="17" height="16" class="wpb-top-orange-bar__deco-orange-right perfmatters-lazy" data-src="https://www.wpbeginner.com/wp-content/themes/wpbv7/assets/images/deco-orange.svg" /><noscript><img src="https://www.wpbeginner.com/wp-content/themes/wpbv7/assets/images/deco-orange.svg" alt="" width="17" height="16" class="wpb-top-orange-bar__deco-orange-right" /></noscript> <img src="data:image/svg+xml,%3Csvg%20xmlns=&#039;http://www.w3.org/2000/svg&#039;%20width=&#039;17&#039;%20height=&#039;19&#039;%20viewBox=&#039;0%200%2017%2019&#039;%3E%3C/svg%3E" alt width="17" height="19" class="wpb-top-orange-bar__deco-orange-star-right perfmatters-lazy" data-src="https://www.wpbeginner.com/wp-content/themes/wpbv7/assets/images/deco-orange-star.svg" /><noscript><img src="https://www.wpbeginner.com/wp-content/themes/wpbv7/assets/images/deco-orange-star.svg" alt="" width="17" height="19" class="wpb-top-orange-bar__deco-orange-star-right" /></noscript> </div> </div> <div class="site-inner" id="main-content"><div class="wrap"><div class="content-area"><main class="site-main" id="genesis-content"><div class="breadcrumbs" typeof="BreadcrumbList" vocab="http://schema.org/"><p id="breadcrumbs"><!-- Breadcrumb NavXT 7.3.1 --> <span property="itemListElement" typeof="ListItem"><a property="item" typeof="WebPage" title="Go to WPBeginner." href="https://www.wpbeginner.com" class="home"><span property="name">WPBeginner</span></a><meta property="position" content="1"></span><span class="sep">&raquo;</span><span property="itemListElement" typeof="ListItem"><a property="item" typeof="WebPage" title="Go to Blog." href="https://www.wpbeginner.com/blog/" class="post-root post-post"><span property="name">Blog</span></a><meta property="position" content="2"></span><span class="sep">&raquo;</span><span property="itemListElement" typeof="ListItem"><a property="item" typeof="WebPage" title="Go to the Tutorials category archives." href="https://www.wpbeginner.com/category/wp-tutorials/" class="taxonomy category"><span property="name">Tutorials</span></a><meta property="position" content="3"></span><span class="sep">&raquo;</span><span property="itemListElement" typeof="ListItem"><span property="name">How to Fix the Error Establishing a Database Connection in WordPress</span><meta property="position" content="4"></span></p></div><article class="type-post entry" aria-label="How to Fix the Error Establishing a Database Connection in WordPress"><header class="entry-header"><h1 class="entry-title">How to Fix the Error Establishing a Database Connection in WordPress</h1> <p class="entry-meta">By <a href="https://www.wpbeginner.com/author/wpbeginner/">Editorial Staff</a> | Reviewed by <a href="https://www.wpbeginner.com/author/syedb/">Syed Balkhi</a> | <time itemprop="dateModified" datetime="2024-09-30T14:19:53-04:00">September 30, 2024</time> | <a class="reader-disclosure__link" href="#reader-disclosure">Reader Disclosure</a></p> <div class="shared-counts-wrap before_content style-fancy"> <span class="shared-counts-button included_total" data-postid="5484" data-social-target="https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/"> <span class="shared-counts-icon-label"> <span class="shared-counts-icon"></span> <span class="shared-counts-label"> Shares </span> </span> <span class="shared-counts-count"> 969 </span> </span> <a href="https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fwww.wpbeginner.com%2Fwp-tutorials%2Fhow-to-fix-the-error-establishing-a-database-connection-in-wordpress%2F&#038;display=popup&#038;ref=plugin&#038;src=share_button" title="Share on Facebook" target="_blank" rel="nofollow noopener noreferrer" class="shared-counts-button facebook shared-counts-no-count" data-postid="5484" data-social-network="Facebook" data-social-action="Share" data-social-target="https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/"> <span class="shared-counts-icon-label"> <span class="shared-counts-icon"> <svg width="14" height="14" aria-hidden="true" role="img" focusable="false"> <use href="#brands-facebook-square"></use> </svg> </span> <span class="shared-counts-label"> Share </span> </span> </a> <a href="https://twitter.com/share?url=https%3A%2F%2Fwww.wpbeginner.com%2Fwp-tutorials%2Fhow-to-fix-the-error-establishing-a-database-connection-in-wordpress%2F&#038;text=How%20to%20Fix%20the%20Error%20Establishing%20a%20Database%20Connection%20in%20WordPress&#038;via=wpbeginner" title="Share on Twitter" target="_blank" rel="nofollow noopener noreferrer" class="shared-counts-button twitter shared-counts-no-count" data-postid="5484" data-social-network="Twitter" data-social-action="Tweet" data-social-target="https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/"> <span class="shared-counts-icon-label"> <span class="shared-counts-icon"> <svg width="14" height="14" aria-hidden="true" role="img" focusable="false"> <use href="#brands-twitter"></use> </svg> </span> <span class="shared-counts-label"> Tweet </span> </span> </a> <a href="https://www.linkedin.com/shareArticle?mini=true&#038;url=https%3A%2F%2Fwww.wpbeginner.com%2Fwp-tutorials%2Fhow-to-fix-the-error-establishing-a-database-connection-in-wordpress%2F&#038;text=How%20to%20Fix%20the%20Error%20Establishing%20a%20Database%20Connection%20in%20WordPress" title="Share on LinkedIn" target="_blank" rel="nofollow noopener noreferrer" class="shared-counts-button linkedin shared-counts-no-count" data-postid="5484" data-social-network="LinkedIn" data-social-action="Share" data-social-target="https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/"> <span class="shared-counts-icon-label"> <span class="shared-counts-icon"> <svg width="14" height="14" aria-hidden="true" role="img" focusable="false"> <use xlink:href="#brands-linkedin"></use> </svg> </span> <span class="shared-counts-label"> Share </span> </span> </a> <a href="https://wa.me/?text=https%3A%2F%2Fwww.wpbeginner.com%2Fwp-tutorials%2Fhow-to-fix-the-error-establishing-a-database-connection-in-wordpress%2F" title="Share on WhatsApp" target="_blank" rel="nofollow noopener noreferrer" class="shared-counts-button whatsapp shared-counts-no-count" data-postid="5484" data-social-target="https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/"> <span class="shared-counts-icon-label"> <span class="shared-counts-icon"> <svg width="16" height="16" aria-hidden="true" role="img" focusable="false"> <use href="#brands-whatsapp"></use> </svg> </span> <span class="shared-counts-label">WhatsApp</span> </span> </a> <a href="mailto:?subject=Your%20friend%20has%20shared%20an%20article%20you%20with%20you.&#038;body=How%20to%20Fix%20the%20Error%20Establishing%20a%20Database%20Connection%20in%20WordPress%20https%3A%2F%2Fwww.wpbeginner.com%2Fwp-tutorials%2Fhow-to-fix-the-error-establishing-a-database-connection-in-wordpress%2F" title="Share via Email" target="_blank" rel="nofollow noopener noreferrer" class="shared-counts-button email shared-counts-no-count" data-postid="5484" data-social-target="https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/" data-social-action="Emailed"> <span class="shared-counts-icon-label"> <span class="shared-counts-icon"> <svg width="14" height="14" aria-hidden="true" role="img" focusable="false"> <use href="#regular-envelope"></use> </svg> </span> <span class="shared-counts-label">Email</span> </span> </a> </div> <!-- .shared-counts-wrap --> </header><div class="entry-content"> <p>The &#8216;Error establishing a database connection&#8217; notice in WordPress is a fatal error that makes your site inaccessible to users. It happens when WordPress is unable to connect to the database.</p> <p>Since multiple factors can affect this connection, the error can be a bit difficult to troubleshoot for beginners.</p> <p>We have been running our blog on WordPress for the past 16 years and have encountered a variety of errors and warnings, including the &#8216;Error establishing a database connection.&#8217; Through our experience and lots of trial and error, we’ve learned how to troubleshoot these issues without disrupting our site.</p> <p>In this article, we will show you how to easily fix the &#8216;Error establishing a database connection&#8217; on your WordPress site, step by step.</p> <figure class="wp-block-image size-full"><img title="Fix the Error Establishing a Database Connection in WordPress" decoding="async" width="680" height="385" src="data:image/svg+xml,%3Csvg%20xmlns=&#039;http://www.w3.org/2000/svg&#039;%20width=&#039;680&#039;%20height=&#039;385&#039;%20viewBox=&#039;0%200%20680%20385&#039;%3E%3C/svg%3E" alt="Fix the Error Establishing a Database Connection in WordPress" class="wp-image-270052 perfmatters-lazy" data-src="https://www.wpbeginner.com/wp-content/uploads/2020/01/fix-the-error-establishing-a-database-connection-og.png" /><noscript><img title="Fix the Error Establishing a Database Connection in WordPress" decoding="async" width="680" height="385" src="https://www.wpbeginner.com/wp-content/uploads/2020/01/fix-the-error-establishing-a-database-connection-og.png" alt="Fix the Error Establishing a Database Connection in WordPress" class="wp-image-270052" /></noscript></figure> <h4 class="wp-block-heading">What Causes the Error Establishing a Database Connection in WordPress?</h4> <p>A <a href="https://www.wpbeginner.com/glossary/database/" title="Database">database</a> is software that makes it easy to store, organize, and retrieve data from other software.</p> <p>As a <a href="https://www.wpbeginner.com/showcase/best-cms-platforms-compared/" title="Best and Most Popular CMS Platforms (Compared)">content management system</a>, WordPress uses a database to store all your content and other website data. It then connects to the database each time someone visits your website.</p> <p>WordPress needs the following information for connecting to the database:</p> <ul class="wp-block-list"> <li>Your database name</li> <li>Database username and password</li> <li>Database server</li> </ul> <p>This information is stored in your WordPress configuration file, which is called <a href="https://www.wpbeginner.com/glossary/wp-config-php/" title="wp-config.php">wp-config.php</a>.</p> <p>If any of this information is incorrect, then WordPress will fail to connect to your database server, and you will see the &#8216;Error establishing a database connection&#8217; error.</p> <figure class="wp-block-image size-full"><img title="Database connection error in WordPress" decoding="async" width="680" height="225" src="data:image/svg+xml,%3Csvg%20xmlns=&#039;http://www.w3.org/2000/svg&#039;%20width=&#039;680&#039;%20height=&#039;225&#039;%20viewBox=&#039;0%200%20680%20225&#039;%3E%3C/svg%3E" alt="Database connection error in WordPress" class="wp-image-270048 perfmatters-lazy" data-src="https://www.wpbeginner.com/wp-content/uploads/2020/01/dbconnectionerrorwp-1.png" /><noscript><img title="Database connection error in WordPress" decoding="async" width="680" height="225" src="https://www.wpbeginner.com/wp-content/uploads/2020/01/dbconnectionerrorwp-1.png" alt="Database connection error in WordPress" class="wp-image-270048" /></noscript></figure> <p>It is one of the <a href="https://www.wpbeginner.com/common-wordpress-errors-and-how-to-fix-them/" title="Most Common WordPress Errors and How to Fix Them">most common WordPress errors</a>. Apart from incorrect credentials, this error can also appear if the database server is down or the database files are corrupt.</p> <p>Having said that, let&#8217;s take a look at how to fix the &#8216;Error establishing database connection&#8217; issue in WordPress with step-by-step troubleshooting.</p> <h4 class="wp-block-heading">1. Check Your WordPress Database Credentials</h4> <p><span style="margin: 0px;padding: 0px">Incorrect credentials </span>are the most common cause of the database connection error. If you recently&nbsp;<a href="https://www.wpbeginner.com/wp-tutorials/how-to-move-wordpress-to-a-new-host-or-server-with-no-downtime/" title="How to Move WordPress to a New Host or Server With No Downtime">moved your WordPress site to a new host</a>,&nbsp;then this is likely the problem.</p> <p>Your WordPress database credentials are stored in the wp-config.php file. It is the WordPress configuration file that contains important settings, including database information.</p> <p>If you have not edited a wp-config.php file before, then take a look at our beginner&#8217;s guide on <a href="https://www.wpbeginner.com/beginners-guide/how-to-edit-wp-config-php-file-in-wordpress/" title="How to Edit wp-config.php File in WordPress">how to edit the wp-config.php file</a> for more instructions.</p> <p>You will be looking for the following lines in the wp-config.php file:</p> <div class="wp-block-syntaxhighlighter-code "><pre class="brush: php; title: ; notranslate" title=""> // ** MySQL settings - You can get this info from your web host ** // /** The name of the database for WordPress */ define( 'DB_NAME', 'database_name_here' ); /** MySQL database username */ define( 'DB_USER', 'username_here' ); /** MySQL database password */ define( 'DB_PASSWORD', 'password_here' ); /** MySQL hostname */ define( 'DB_HOST', 'localhost' ); </pre><div class="wpcode-syntax-footer"> <div class="wpcode-syntax-code-footer-left">Hosted with ❤️ by <strong><a href="https://wpcode.com" target="_blank">WPCode</a></strong></div> <div class="wpcode-syntax-code-footer-right"> <svg width="65" height="16" viewBox="0 0 65 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M38.0415 7.99972C38.0415 6.44437 38.4062 5.38018 39.128 4.59879C39.8499 3.80995 40.8769 3.42297 42.1941 3.42297C42.8117 3.42297 43.4071 3.54949 43.9206 3.80251C44.4564 4.05553 44.8582 4.39786 45.1782 4.82204C45.2452 4.9039 45.2601 4.99321 45.2601 5.09739C45.2601 5.2239 45.2155 5.31321 45.1336 5.39507C45.0517 5.47693 44.9624 5.52158 44.8359 5.52158C44.6871 5.52158 44.5829 5.4546 44.4936 5.35042C44.2555 5.03042 43.9429 4.75507 43.5113 4.53925C43.1094 4.32344 42.6555 4.21925 42.1643 4.21925C41.1224 4.21925 40.3336 4.53925 39.7755 5.17925C39.2248 5.81925 38.942 6.68995 38.942 7.96995C38.942 9.30948 39.2173 10.2025 39.7531 10.7979C40.2889 11.3932 41.0927 11.7132 42.1643 11.7132C42.6331 11.7132 43.0573 11.6313 43.4889 11.4379C43.8908 11.2444 44.2331 10.9913 44.4936 10.6267C44.5755 10.5225 44.6871 10.4555 44.8359 10.4555C44.9624 10.4555 45.0517 10.5002 45.1336 10.582C45.2155 10.6639 45.2601 10.7755 45.2601 10.8797C45.2601 10.9616 45.2378 11.0509 45.1782 11.1327C44.8806 11.5569 44.4713 11.8993 43.9206 12.1523C43.3699 12.4053 42.7894 12.5318 42.1717 12.5318C40.8322 12.5318 39.8052 12.1523 39.0982 11.4006C38.3987 10.6788 38.0415 9.59228 38.0415 7.99972Z" fill="#1F2937"></path><path d="M46.9268 11.7654C46.4356 11.237 46.1826 10.4258 46.1826 9.36164C46.1826 8.29745 46.4208 7.50862 46.9045 6.98024C47.3956 6.45187 48.0803 6.19141 48.9733 6.19141C49.8663 6.19141 50.551 6.44443 51.0422 6.98024C51.5333 7.50862 51.764 8.29745 51.764 9.36164C51.764 10.4258 51.5259 11.237 51.0422 11.7654C50.551 12.2937 49.8663 12.5765 48.9733 12.5765C48.1026 12.5765 47.418 12.3012 46.9268 11.7654ZM47.0608 9.36164C47.0608 10.9765 47.7008 11.7877 48.9808 11.7877C50.2608 11.7877 50.9008 10.9765 50.9008 9.36164C50.9008 7.74676 50.2608 6.93559 48.9808 6.93559C47.6933 6.93559 47.0608 7.76908 47.0608 9.36164Z" fill="#1F2937"></path><path d="M52.583 9.3839C52.583 7.25553 53.476 6.31786 55.2472 6.31786C55.6491 6.31786 56.0137 6.39972 56.3337 6.57088C56.6537 6.74204 56.9067 6.93553 57.0556 7.18855V3.84716C57.0556 3.72065 57.1002 3.63135 57.1821 3.54949C57.2639 3.46762 57.3532 3.42297 57.4798 3.42297C57.6063 3.42297 57.6956 3.46762 57.7774 3.54949C57.8593 3.63135 57.9039 3.72065 57.9039 3.84716V9.95693C57.9039 10.8053 57.6658 11.4453 57.1821 11.8918C56.7132 12.3383 56.0732 12.569 55.2844 12.569C54.4137 12.569 53.7291 12.2937 53.2602 11.7579C52.8137 11.2369 52.583 10.4481 52.583 9.3839ZM53.4314 9.3839C53.4314 10.9988 54.0491 11.81 55.3067 11.81C55.8425 11.81 56.2667 11.6611 56.5867 11.3411C56.9067 11.0211 57.0556 10.5746 57.0556 9.95693V8.25274C57.0332 8.23042 57.0109 8.18576 56.9886 8.12623C56.9663 8.05925 56.9067 7.97739 56.7951 7.85088C56.6909 7.72437 56.5793 7.59786 56.4528 7.48623C56.3263 7.38204 56.1551 7.29274 55.9616 7.21088C55.7458 7.12902 55.5374 7.08437 55.2993 7.08437C54.6816 7.08437 54.2351 7.27786 53.8928 7.67972C53.5802 8.08158 53.4314 8.57274 53.4314 9.3839Z" fill="#1F2937"></path><path d="M58.9312 9.36193C58.9312 8.3424 59.1693 7.55356 59.653 7.00286C60.1367 6.45216 60.8065 6.16937 61.6772 6.16937C62.0195 6.16937 62.3395 6.21402 62.5925 6.29588C62.8679 6.37774 63.106 6.48937 63.2772 6.63821C63.4484 6.78705 63.6195 6.93588 63.746 7.12937C63.8725 7.30054 63.9842 7.49402 64.0437 7.7024C64.1107 7.91821 64.1479 8.08193 64.1925 8.25309C64.2372 8.42426 64.2372 8.59542 64.2372 8.76658C64.2372 8.89309 64.2372 8.99728 64.2372 9.06426C64.2372 9.13123 64.2149 9.21309 64.1702 9.31728C64.1479 9.42147 64.0884 9.48844 63.9991 9.53309C63.9172 9.57774 63.8279 9.60007 63.7014 9.60007H59.8316C59.8316 10.2624 60.0028 10.7908 60.3674 11.1777C60.7321 11.5573 61.2232 11.7731 61.8409 11.7731C62.1832 11.7731 62.4809 11.7284 62.7116 11.6243C62.9498 11.5201 63.2028 11.3936 63.4335 11.2001C63.5153 11.1331 63.6046 11.1182 63.6716 11.1182C63.7758 11.1182 63.8651 11.1629 63.947 11.2224C64.0139 11.3043 64.0512 11.3936 64.0512 11.4977C64.0512 11.6019 64.0065 11.7136 63.9023 11.7954C63.8205 11.8773 63.6865 11.9889 63.5377 12.0931C63.3888 12.1973 63.1507 12.2866 62.8307 12.3908C62.5107 12.495 62.1684 12.5396 61.8037 12.5396C60.8884 12.5396 60.1814 12.2866 59.6902 11.7508C59.1916 11.2522 58.9312 10.4484 58.9312 9.36193ZM59.8093 8.87077H63.3888C63.3888 8.61774 63.3665 8.37961 63.307 8.17123C63.2623 7.95542 63.1805 7.76937 63.0539 7.57588C62.9274 7.3824 62.7563 7.23356 62.5181 7.12937C62.28 7.02519 62.0046 6.95821 61.6846 6.95821C61.1116 6.95821 60.68 7.12937 60.3377 7.4717C60.0251 7.80658 59.8316 8.27542 59.8093 8.87077Z" fill="#1F2937"></path><path d="M19.229 4.18977C19.229 3.97395 19.3109 3.78791 19.4671 3.63907C19.616 3.49023 19.8095 3.40837 20.0253 3.40837C20.2188 3.40837 20.3899 3.47535 20.5164 3.57954C20.643 3.68372 20.7323 3.81023 20.7695 3.94419L22.3248 9.51814L23.8355 3.96651C23.8802 3.79535 23.962 3.66884 24.1109 3.56465C24.2597 3.46047 24.4085 3.41581 24.5574 3.41581C24.7285 3.41581 24.8774 3.46047 25.0039 3.56465C25.1304 3.66884 25.242 3.79535 25.2792 3.96651L26.7899 9.51814L28.3453 3.92186C28.3899 3.79535 28.4718 3.66884 28.5983 3.55721C28.7248 3.45302 28.8737 3.38605 29.0895 3.38605C29.3053 3.38605 29.4764 3.45302 29.6253 3.60186C29.7741 3.7507 29.8411 3.92186 29.8411 4.13023C29.8411 4.21209 29.8188 4.3014 29.7964 4.36093L27.5118 11.9591C27.4671 12.1079 27.3853 12.2567 27.2364 12.3386C27.1099 12.4428 26.9611 12.4874 26.7899 12.4874C26.6188 12.4874 26.4699 12.4428 26.3434 12.3386C26.2169 12.2344 26.1276 12.1079 26.0904 11.9367L24.5574 6.4893L23.0244 11.9963C22.9797 12.1674 22.8755 12.294 22.749 12.3981C22.6225 12.5023 22.4513 12.547 22.2802 12.547C22.109 12.547 21.9602 12.5023 21.8337 12.3981C21.7071 12.294 21.5955 12.1674 21.5583 12.0186L19.2737 4.42791C19.2513 4.36093 19.229 4.27907 19.229 4.18977Z" fill="#1F2937"></path><path d="M30.9351 11.8101V4.18967C30.9351 3.97386 31.0169 3.81014 31.1509 3.6613C31.2997 3.51246 31.4932 3.4306 31.709 3.4306H34.2467C35.0802 3.4306 35.7425 3.6613 36.2485 4.13014C36.762 4.59898 37.0374 5.27618 37.0374 6.15432C37.0374 7.04735 36.7844 7.70967 36.2709 8.17851C35.7574 8.64735 35.0802 8.87805 34.269 8.87805H32.4978V11.8176C32.4978 12.0334 32.4309 12.2194 32.282 12.3683C32.1332 12.5171 31.962 12.5841 31.7239 12.5841C31.4858 12.5841 31.322 12.5022 31.1732 12.3534C31.002 12.1897 30.9351 12.0185 30.9351 11.8101ZM32.4755 7.48642H34.1202C34.5444 7.48642 34.8644 7.35991 35.1025 7.12177C35.3406 6.89107 35.4448 6.54874 35.4448 6.12456C35.4448 5.70037 35.3406 5.35805 35.1025 5.12735C34.8644 4.89665 34.5444 4.78502 34.1425 4.78502H32.4978V7.48642H32.4755V7.48642Z" fill="#1F2937"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M14.3916 15.9999H1.64367C0.720884 15.9999 -0.000976562 15.278 -0.000976562 14.3627V1.63709C-0.000976562 0.721738 0.720884 -0.00012207 1.64367 -0.00012207H14.3916C15.3069 -0.00012207 16.0362 0.721738 16.0362 1.63709V14.3627C16.0362 15.278 15.3069 15.9999 14.3916 15.9999ZM3.96553 13.0231C3.88367 13.0231 3.77205 13.0008 3.69019 12.9785C3.30321 12.8296 3.11716 12.4055 3.266 12.0185L6.61484 3.44546C6.76367 3.06592 7.18786 2.87244 7.57484 3.02127C7.96181 3.17011 8.14786 3.5943 7.99902 3.98127L4.66507 12.5543C4.56088 12.852 4.26321 13.0231 3.96553 13.0231ZM8.76554 11.9366C8.91437 12.0855 9.10786 12.1524 9.30135 12.1524C9.49484 12.1524 9.68833 12.0855 9.83716 11.9366L12.4567 9.33941C12.9255 8.87058 12.9255 8.08174 12.4567 7.6129L9.83716 4.99337C9.56181 4.69569 9.09298 4.69569 8.7953 4.99337C8.49763 5.26872 8.49763 5.73755 8.7953 6.03523L11.2065 8.46127L8.77298 10.8873C8.46042 11.1701 8.46042 11.6389 8.76554 11.9366Z" fill="#1F2937"></path></svg> <a href="https://library.wpcode.com/use-snippet/" target="_blank">1-click Use in WordPress</a> </div> </div></div> <p>Here, you must make sure that the information for the database name, username, password, and database host is correct.</p> <p>You can confirm this information from your <a href="https://www.wpbeginner.com/wordpress-hosting/" title="How to Choose the Best WordPress Hosting (Compared)">WordPress hosting</a> account dashboard. For this tutorial, we will be using <a href="https://www.wpbeginner.com/refer/bluehost/" target="_blank" rel="noopener nofollow" title="Bluehost">Bluehost</a>, but the process will be similar for other hosting panels as well.</p> <p>Upon logging in, click on the &#8216;Website&#8217; tab in the left column and then switch to the &#8216;Advanced&#8217; tab. Then, scroll down to the &#8216;Database&#8217; section and click the &#8216;Manage&#8217; button next to it.</p> <figure class="wp-block-image size-full"><img title="Click the Manage button next to the Database section" decoding="async" width="680" height="284" src="data:image/svg+xml,%3Csvg%20xmlns=&#039;http://www.w3.org/2000/svg&#039;%20width=&#039;680&#039;%20height=&#039;284&#039;%20viewBox=&#039;0%200%20680%20284&#039;%3E%3C/svg%3E" alt="Click the Manage button next to the Database section" class="wp-image-270350 perfmatters-lazy" data-src="https://www.wpbeginner.com/wp-content/uploads/2020/01/click-manage-button-next-to-database-1.png" data-srcset="https://www.wpbeginner.com/wp-content/uploads/2020/01/click-manage-button-next-to-database-1.png 680w, https://www.wpbeginner.com/wp-content/uploads/2020/01/click-manage-button-next-to-database-1-300x125.png 300w" data-sizes="(max-width: 680px) 100vw, 680px" /><noscript><img title="Click the Manage button next to the Database section" decoding="async" width="680" height="284" src="https://www.wpbeginner.com/wp-content/uploads/2020/01/click-manage-button-next-to-database-1.png" alt="Click the Manage button next to the Database section" class="wp-image-270350" srcset="https://www.wpbeginner.com/wp-content/uploads/2020/01/click-manage-button-next-to-database-1.png 680w, https://www.wpbeginner.com/wp-content/uploads/2020/01/click-manage-button-next-to-database-1-300x125.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></noscript></figure> <p>This will open the MySQL Databases page in cPanel in a new window.</p> <p>Here, you can find your database name and username in the &#8216;Current Database&#8217; section. Keep in mind to copy and paste these details into a notepad so you can add them to the wp-config file.</p> <figure class="wp-block-image size-full"><img title="Find your database name and username in the Current Databases section" decoding="async" width="680" height="313" src="data:image/svg+xml,%3Csvg%20xmlns=&#039;http://www.w3.org/2000/svg&#039;%20width=&#039;680&#039;%20height=&#039;313&#039;%20viewBox=&#039;0%200%20680%20313&#039;%3E%3C/svg%3E" alt="Find your database name and username in the Current Databases section" class="wp-image-270360 perfmatters-lazy" data-src="https://www.wpbeginner.com/wp-content/uploads/2020/01/find-database-name-and-username-2.png" /><noscript><img title="Find your database name and username in the Current Databases section" decoding="async" width="680" height="313" src="https://www.wpbeginner.com/wp-content/uploads/2020/01/find-database-name-and-username-2.png" alt="Find your database name and username in the Current Databases section" class="wp-image-270360" /></noscript></figure> <p>Next, scroll down to the &#8216;Current Users&#8217; section, where you can click on the &#8216;Change Password&#8217; link next to your database name.</p> <p>This will take you to a new screen, where you can change the database password according to your liking.</p> <figure class="wp-block-image size-full"><img title="Change your database password" decoding="async" width="680" height="335" src="data:image/svg+xml,%3Csvg%20xmlns=&#039;http://www.w3.org/2000/svg&#039;%20width=&#039;680&#039;%20height=&#039;335&#039;%20viewBox=&#039;0%200%20680%20335&#039;%3E%3C/svg%3E" alt="Change your database password" class="wp-image-270353 perfmatters-lazy" data-src="https://www.wpbeginner.com/wp-content/uploads/2020/01/change-database-password-1.png" data-srcset="https://www.wpbeginner.com/wp-content/uploads/2020/01/change-database-password-1.png 680w, https://www.wpbeginner.com/wp-content/uploads/2020/01/change-database-password-1-300x148.png 300w" data-sizes="(max-width: 680px) 100vw, 680px" /><noscript><img title="Change your database password" decoding="async" width="680" height="335" src="https://www.wpbeginner.com/wp-content/uploads/2020/01/change-database-password-1.png" alt="Change your database password" class="wp-image-270353" srcset="https://www.wpbeginner.com/wp-content/uploads/2020/01/change-database-password-1.png 680w, https://www.wpbeginner.com/wp-content/uploads/2020/01/change-database-password-1-300x148.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></noscript></figure> <p>Once you have confirmed all your database details, you can change that information in your wp-config.php file if needed.</p> <p>After that, try visiting your website again to see if the database connection error has gone.</p> <p>If you can still see the error, then this means that something else is wrong.</p> <h4 class="wp-block-heading">2. Check Your Database Host Information</h4> <p>If you are confident that your database name, username, and password information are accurate, then you will want to make sure you are using the correct database host information.</p> <p>Most WordPress hosting companies use localhost as your database host. However, some <a href="https://www.wpbeginner.com/managed-wordpress-hosting/" title="When Do You Really Need Managed WordPress Hosting? Best Managed WordPress Hosting Compared">managed WordPress hosting companies</a> use separate servers to host databases. In that case, your database host information will not be localhost.</p> <p>This means that you will need to contact your WordPress hosting company to confirm these details.</p> <h4 class="wp-block-heading">3. Repair WordPress Database</h4> <p>Now, you may be getting a different error in the wp-admin dashboard, such as &#8216;One or more database tables are unavailable&#8217; or &#8216;The database may need to be repaired.&#8217; In that case, you need to repair your database.</p> <p>You can do this by adding the following line in your wp-config.php file. Make sure to add it just before the ‘That’s all, stop editing! Happy blogging’ line:</p> <div class="wp-block-syntaxhighlighter-code "><pre class="brush: php; title: ; notranslate" title=""> define('WP_ALLOW_REPAIR', true); </pre><div class="wpcode-syntax-footer"> <div class="wpcode-syntax-code-footer-left">Hosted with ❤️ by <strong><a href="https://wpcode.com" target="_blank">WPCode</a></strong></div> <div class="wpcode-syntax-code-footer-right"> <svg width="65" height="16" viewBox="0 0 65 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M38.0415 7.99972C38.0415 6.44437 38.4062 5.38018 39.128 4.59879C39.8499 3.80995 40.8769 3.42297 42.1941 3.42297C42.8117 3.42297 43.4071 3.54949 43.9206 3.80251C44.4564 4.05553 44.8582 4.39786 45.1782 4.82204C45.2452 4.9039 45.2601 4.99321 45.2601 5.09739C45.2601 5.2239 45.2155 5.31321 45.1336 5.39507C45.0517 5.47693 44.9624 5.52158 44.8359 5.52158C44.6871 5.52158 44.5829 5.4546 44.4936 5.35042C44.2555 5.03042 43.9429 4.75507 43.5113 4.53925C43.1094 4.32344 42.6555 4.21925 42.1643 4.21925C41.1224 4.21925 40.3336 4.53925 39.7755 5.17925C39.2248 5.81925 38.942 6.68995 38.942 7.96995C38.942 9.30948 39.2173 10.2025 39.7531 10.7979C40.2889 11.3932 41.0927 11.7132 42.1643 11.7132C42.6331 11.7132 43.0573 11.6313 43.4889 11.4379C43.8908 11.2444 44.2331 10.9913 44.4936 10.6267C44.5755 10.5225 44.6871 10.4555 44.8359 10.4555C44.9624 10.4555 45.0517 10.5002 45.1336 10.582C45.2155 10.6639 45.2601 10.7755 45.2601 10.8797C45.2601 10.9616 45.2378 11.0509 45.1782 11.1327C44.8806 11.5569 44.4713 11.8993 43.9206 12.1523C43.3699 12.4053 42.7894 12.5318 42.1717 12.5318C40.8322 12.5318 39.8052 12.1523 39.0982 11.4006C38.3987 10.6788 38.0415 9.59228 38.0415 7.99972Z" fill="#1F2937"></path><path d="M46.9268 11.7654C46.4356 11.237 46.1826 10.4258 46.1826 9.36164C46.1826 8.29745 46.4208 7.50862 46.9045 6.98024C47.3956 6.45187 48.0803 6.19141 48.9733 6.19141C49.8663 6.19141 50.551 6.44443 51.0422 6.98024C51.5333 7.50862 51.764 8.29745 51.764 9.36164C51.764 10.4258 51.5259 11.237 51.0422 11.7654C50.551 12.2937 49.8663 12.5765 48.9733 12.5765C48.1026 12.5765 47.418 12.3012 46.9268 11.7654ZM47.0608 9.36164C47.0608 10.9765 47.7008 11.7877 48.9808 11.7877C50.2608 11.7877 50.9008 10.9765 50.9008 9.36164C50.9008 7.74676 50.2608 6.93559 48.9808 6.93559C47.6933 6.93559 47.0608 7.76908 47.0608 9.36164Z" fill="#1F2937"></path><path d="M52.583 9.3839C52.583 7.25553 53.476 6.31786 55.2472 6.31786C55.6491 6.31786 56.0137 6.39972 56.3337 6.57088C56.6537 6.74204 56.9067 6.93553 57.0556 7.18855V3.84716C57.0556 3.72065 57.1002 3.63135 57.1821 3.54949C57.2639 3.46762 57.3532 3.42297 57.4798 3.42297C57.6063 3.42297 57.6956 3.46762 57.7774 3.54949C57.8593 3.63135 57.9039 3.72065 57.9039 3.84716V9.95693C57.9039 10.8053 57.6658 11.4453 57.1821 11.8918C56.7132 12.3383 56.0732 12.569 55.2844 12.569C54.4137 12.569 53.7291 12.2937 53.2602 11.7579C52.8137 11.2369 52.583 10.4481 52.583 9.3839ZM53.4314 9.3839C53.4314 10.9988 54.0491 11.81 55.3067 11.81C55.8425 11.81 56.2667 11.6611 56.5867 11.3411C56.9067 11.0211 57.0556 10.5746 57.0556 9.95693V8.25274C57.0332 8.23042 57.0109 8.18576 56.9886 8.12623C56.9663 8.05925 56.9067 7.97739 56.7951 7.85088C56.6909 7.72437 56.5793 7.59786 56.4528 7.48623C56.3263 7.38204 56.1551 7.29274 55.9616 7.21088C55.7458 7.12902 55.5374 7.08437 55.2993 7.08437C54.6816 7.08437 54.2351 7.27786 53.8928 7.67972C53.5802 8.08158 53.4314 8.57274 53.4314 9.3839Z" fill="#1F2937"></path><path d="M58.9312 9.36193C58.9312 8.3424 59.1693 7.55356 59.653 7.00286C60.1367 6.45216 60.8065 6.16937 61.6772 6.16937C62.0195 6.16937 62.3395 6.21402 62.5925 6.29588C62.8679 6.37774 63.106 6.48937 63.2772 6.63821C63.4484 6.78705 63.6195 6.93588 63.746 7.12937C63.8725 7.30054 63.9842 7.49402 64.0437 7.7024C64.1107 7.91821 64.1479 8.08193 64.1925 8.25309C64.2372 8.42426 64.2372 8.59542 64.2372 8.76658C64.2372 8.89309 64.2372 8.99728 64.2372 9.06426C64.2372 9.13123 64.2149 9.21309 64.1702 9.31728C64.1479 9.42147 64.0884 9.48844 63.9991 9.53309C63.9172 9.57774 63.8279 9.60007 63.7014 9.60007H59.8316C59.8316 10.2624 60.0028 10.7908 60.3674 11.1777C60.7321 11.5573 61.2232 11.7731 61.8409 11.7731C62.1832 11.7731 62.4809 11.7284 62.7116 11.6243C62.9498 11.5201 63.2028 11.3936 63.4335 11.2001C63.5153 11.1331 63.6046 11.1182 63.6716 11.1182C63.7758 11.1182 63.8651 11.1629 63.947 11.2224C64.0139 11.3043 64.0512 11.3936 64.0512 11.4977C64.0512 11.6019 64.0065 11.7136 63.9023 11.7954C63.8205 11.8773 63.6865 11.9889 63.5377 12.0931C63.3888 12.1973 63.1507 12.2866 62.8307 12.3908C62.5107 12.495 62.1684 12.5396 61.8037 12.5396C60.8884 12.5396 60.1814 12.2866 59.6902 11.7508C59.1916 11.2522 58.9312 10.4484 58.9312 9.36193ZM59.8093 8.87077H63.3888C63.3888 8.61774 63.3665 8.37961 63.307 8.17123C63.2623 7.95542 63.1805 7.76937 63.0539 7.57588C62.9274 7.3824 62.7563 7.23356 62.5181 7.12937C62.28 7.02519 62.0046 6.95821 61.6846 6.95821C61.1116 6.95821 60.68 7.12937 60.3377 7.4717C60.0251 7.80658 59.8316 8.27542 59.8093 8.87077Z" fill="#1F2937"></path><path d="M19.229 4.18977C19.229 3.97395 19.3109 3.78791 19.4671 3.63907C19.616 3.49023 19.8095 3.40837 20.0253 3.40837C20.2188 3.40837 20.3899 3.47535 20.5164 3.57954C20.643 3.68372 20.7323 3.81023 20.7695 3.94419L22.3248 9.51814L23.8355 3.96651C23.8802 3.79535 23.962 3.66884 24.1109 3.56465C24.2597 3.46047 24.4085 3.41581 24.5574 3.41581C24.7285 3.41581 24.8774 3.46047 25.0039 3.56465C25.1304 3.66884 25.242 3.79535 25.2792 3.96651L26.7899 9.51814L28.3453 3.92186C28.3899 3.79535 28.4718 3.66884 28.5983 3.55721C28.7248 3.45302 28.8737 3.38605 29.0895 3.38605C29.3053 3.38605 29.4764 3.45302 29.6253 3.60186C29.7741 3.7507 29.8411 3.92186 29.8411 4.13023C29.8411 4.21209 29.8188 4.3014 29.7964 4.36093L27.5118 11.9591C27.4671 12.1079 27.3853 12.2567 27.2364 12.3386C27.1099 12.4428 26.9611 12.4874 26.7899 12.4874C26.6188 12.4874 26.4699 12.4428 26.3434 12.3386C26.2169 12.2344 26.1276 12.1079 26.0904 11.9367L24.5574 6.4893L23.0244 11.9963C22.9797 12.1674 22.8755 12.294 22.749 12.3981C22.6225 12.5023 22.4513 12.547 22.2802 12.547C22.109 12.547 21.9602 12.5023 21.8337 12.3981C21.7071 12.294 21.5955 12.1674 21.5583 12.0186L19.2737 4.42791C19.2513 4.36093 19.229 4.27907 19.229 4.18977Z" fill="#1F2937"></path><path d="M30.9351 11.8101V4.18967C30.9351 3.97386 31.0169 3.81014 31.1509 3.6613C31.2997 3.51246 31.4932 3.4306 31.709 3.4306H34.2467C35.0802 3.4306 35.7425 3.6613 36.2485 4.13014C36.762 4.59898 37.0374 5.27618 37.0374 6.15432C37.0374 7.04735 36.7844 7.70967 36.2709 8.17851C35.7574 8.64735 35.0802 8.87805 34.269 8.87805H32.4978V11.8176C32.4978 12.0334 32.4309 12.2194 32.282 12.3683C32.1332 12.5171 31.962 12.5841 31.7239 12.5841C31.4858 12.5841 31.322 12.5022 31.1732 12.3534C31.002 12.1897 30.9351 12.0185 30.9351 11.8101ZM32.4755 7.48642H34.1202C34.5444 7.48642 34.8644 7.35991 35.1025 7.12177C35.3406 6.89107 35.4448 6.54874 35.4448 6.12456C35.4448 5.70037 35.3406 5.35805 35.1025 5.12735C34.8644 4.89665 34.5444 4.78502 34.1425 4.78502H32.4978V7.48642H32.4755V7.48642Z" fill="#1F2937"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M14.3916 15.9999H1.64367C0.720884 15.9999 -0.000976562 15.278 -0.000976562 14.3627V1.63709C-0.000976562 0.721738 0.720884 -0.00012207 1.64367 -0.00012207H14.3916C15.3069 -0.00012207 16.0362 0.721738 16.0362 1.63709V14.3627C16.0362 15.278 15.3069 15.9999 14.3916 15.9999ZM3.96553 13.0231C3.88367 13.0231 3.77205 13.0008 3.69019 12.9785C3.30321 12.8296 3.11716 12.4055 3.266 12.0185L6.61484 3.44546C6.76367 3.06592 7.18786 2.87244 7.57484 3.02127C7.96181 3.17011 8.14786 3.5943 7.99902 3.98127L4.66507 12.5543C4.56088 12.852 4.26321 13.0231 3.96553 13.0231ZM8.76554 11.9366C8.91437 12.0855 9.10786 12.1524 9.30135 12.1524C9.49484 12.1524 9.68833 12.0855 9.83716 11.9366L12.4567 9.33941C12.9255 8.87058 12.9255 8.08174 12.4567 7.6129L9.83716 4.99337C9.56181 4.69569 9.09298 4.69569 8.7953 4.99337C8.49763 5.26872 8.49763 5.73755 8.7953 6.03523L11.2065 8.46127L8.77298 10.8873C8.46042 11.1701 8.46042 11.6389 8.76554 11.9366Z" fill="#1F2937"></path></svg> <a href="https://library.wpcode.com/use-snippet/" target="_blank">1-click Use in WordPress</a> </div> </div></div> <p>Once you have done that, you can see the settings by visiting this page: http://www.yoursite.com/wp-admin/maint/repair.php. Just make sure to replace yoursite.com with your own <a href="https://www.wpbeginner.com/beginners-guide/beginners-guide-what-is-a-domain-name-and-how-do-domains-work/" title="Beginner’s Guide: What is a Domain Name and How Do Domains Work?">domain name</a>.</p> <p>Here, you must click the &#8216;Repair Database&#8217; button to start the process.</p> <figure class="wp-block-image size-full"><img decoding="async" width="680" height="360" src="data:image/svg+xml,%3Csvg%20xmlns=&#039;http://www.w3.org/2000/svg&#039;%20width=&#039;680&#039;%20height=&#039;360&#039;%20viewBox=&#039;0%200%20680%20360&#039;%3E%3C/svg%3E" alt="Repair WordPress database" class="wp-image-270066 perfmatters-lazy" title="Repair WordPress database" data-src="https://www.wpbeginner.com/wp-content/uploads/2020/01/repairwpdb-1.png" /><noscript><img decoding="async" width="680" height="360" src="https://www.wpbeginner.com/wp-content/uploads/2020/01/repairwpdb-1.png" alt="Repair WordPress database" class="wp-image-270066" title="Repair WordPress database" /></noscript></figure> <div class="wpb-alert style-yellow"> <p><strong>Note:</strong> The user does not need to be logged in to access the database repair page. Once you are done repairing and optimizing your database, make sure to remove this line to code from your wp-config.php.</p> </div> <p>However, if you don&#8217;t want to add any code to your site, then you can also repair your database using your hosting account&#8217;s cPanel.</p> <p>Go ahead and visit your hosting account, where you must open the &#8216;Websites&#8217; page from the left column. Then, switch to the &#8216;Advanced&#8217; tab and click the &#8216;Manage&#8217; button in the Database section.</p> <figure class="wp-block-image size-full"><img title="Click the Manage button next to the Database section" decoding="async" width="680" height="284" src="data:image/svg+xml,%3Csvg%20xmlns=&#039;http://www.w3.org/2000/svg&#039;%20width=&#039;680&#039;%20height=&#039;284&#039;%20viewBox=&#039;0%200%20680%20284&#039;%3E%3C/svg%3E" alt="Click the Manage button next to the Database section" class="wp-image-270350 perfmatters-lazy" data-src="https://www.wpbeginner.com/wp-content/uploads/2020/01/click-manage-button-next-to-database-1.png" data-srcset="https://www.wpbeginner.com/wp-content/uploads/2020/01/click-manage-button-next-to-database-1.png 680w, https://www.wpbeginner.com/wp-content/uploads/2020/01/click-manage-button-next-to-database-1-300x125.png 300w" data-sizes="(max-width: 680px) 100vw, 680px" /><noscript><img title="Click the Manage button next to the Database section" decoding="async" width="680" height="284" src="https://www.wpbeginner.com/wp-content/uploads/2020/01/click-manage-button-next-to-database-1.png" alt="Click the Manage button next to the Database section" class="wp-image-270350" srcset="https://www.wpbeginner.com/wp-content/uploads/2020/01/click-manage-button-next-to-database-1.png 680w, https://www.wpbeginner.com/wp-content/uploads/2020/01/click-manage-button-next-to-database-1-300x125.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></noscript></figure> <p>This will open cPanel in a new tab. Here, scroll down to the &#8216;Modify Databases&#8217; section and choose your database&#8217;s name from the &#8216;Repair Database&#8217; dropdown menu.</p> <p>Once you do that, simply click the &#8216;Repair Database&#8217; button to start the process.</p> <figure class="wp-block-image size-full"><img title="Click the Repair database button" decoding="async" width="680" height="321" src="data:image/svg+xml,%3Csvg%20xmlns=&#039;http://www.w3.org/2000/svg&#039;%20width=&#039;680&#039;%20height=&#039;321&#039;%20viewBox=&#039;0%200%20680%20321&#039;%3E%3C/svg%3E" alt="Click the Repair database button" class="wp-image-270354 perfmatters-lazy" data-src="https://www.wpbeginner.com/wp-content/uploads/2020/01/click-repair-database-button-1.png" /><noscript><img title="Click the Repair database button" decoding="async" width="680" height="321" src="https://www.wpbeginner.com/wp-content/uploads/2020/01/click-repair-database-button-1.png" alt="Click the Repair database button" class="wp-image-270354" /></noscript></figure> <p>The hosting panel will now automatically repair your database for you.</p> <p>Once the process is complete, you will also see a success message.</p> <figure class="wp-block-image size-full"><img title="Database repair success message" decoding="async" width="680" height="306" src="data:image/svg+xml,%3Csvg%20xmlns=&#039;http://www.w3.org/2000/svg&#039;%20width=&#039;680&#039;%20height=&#039;306&#039;%20viewBox=&#039;0%200%20680%20306&#039;%3E%3C/svg%3E" alt="Database repair success message" class="wp-image-270355 perfmatters-lazy" data-src="https://www.wpbeginner.com/wp-content/uploads/2020/01/databasr-repair-success-message-1.png" /><noscript><img title="Database repair success message" decoding="async" width="680" height="306" src="https://www.wpbeginner.com/wp-content/uploads/2020/01/databasr-repair-success-message-1.png" alt="Database repair success message" class="wp-image-270355" /></noscript></figure> <p>You can now visit your WordPress site to see if the error has been resolved or not.</p> <h4 class="wp-block-heading">4. Check If Your Database Server Is Down</h4> <p>If everything seems to be correct, and WordPress still cannot connect to the database, then your database server (<a href="https://www.wpbeginner.com/glossary/mysql/" title="MySQL">MySQL server</a>) may be down.</p> <p>This could happen due to heavy traffic on a server. Your host server just cannot handle the load (especially when you are on <a href="https://www.wpbeginner.com/the-truth-about-shared-wordpress-web-hosting/" title="The Truth About Best Shared WordPress Web Hosting">shared hosting</a>).</p> <p>Due to this, your site will get slow and may even output the error for some users. In this case, you should get on the phone call or live chat with your hosting provider and ask them if your MySQL server is responsive.</p> <p>Additionally, if you have other websites running on the same server, then you can check those sites to confirm that your <a href="https://www.wpbeginner.com/wp-tutorials/how-to-fix-php-missing-mysql-extension-error-in-wordpress/" title="How to Fix “PHP Missing MySQL Extension” Error in WordPress">SQL server is down</a>.</p> <p>If you do not have any other site on the same hosting account, then simply go to your hosting dashboard and switch to the &#8216;Advanced&#8217; tab.</p> <p>After that, click the &#8216;Manage&#8217; button next to the <a href="https://www.wpbeginner.com/beginners-guide/beginners-guide-to-wordpress-database-management-with-phpmyadmin/" title="Beginner’s Guide to WordPress Database Management with phpMyAdmin">phpMyAdmin</a> section.</p> <figure class="wp-block-image size-full"><img title="Click the Manage button next to the PHPMyAdmin option" decoding="async" width="680" height="327" src="data:image/svg+xml,%3Csvg%20xmlns=&#039;http://www.w3.org/2000/svg&#039;%20width=&#039;680&#039;%20height=&#039;327&#039;%20viewBox=&#039;0%200%20680%20327&#039;%3E%3C/svg%3E" alt="Click the Manage button next to the PHPMyAdmin option" class="wp-image-270356 perfmatters-lazy" data-src="https://www.wpbeginner.com/wp-content/uploads/2020/01/click-manage-button-next-to-the-phpmyadmin-option.png" data-srcset="https://www.wpbeginner.com/wp-content/uploads/2020/01/click-manage-button-next-to-the-phpmyadmin-option.png 680w, https://www.wpbeginner.com/wp-content/uploads/2020/01/click-manage-button-next-to-the-phpmyadmin-option-300x144.png 300w" data-sizes="(max-width: 680px) 100vw, 680px" /><noscript><img title="Click the Manage button next to the PHPMyAdmin option" decoding="async" width="680" height="327" src="https://www.wpbeginner.com/wp-content/uploads/2020/01/click-manage-button-next-to-the-phpmyadmin-option.png" alt="Click the Manage button next to the PHPMyAdmin option" class="wp-image-270356" srcset="https://www.wpbeginner.com/wp-content/uploads/2020/01/click-manage-button-next-to-the-phpmyadmin-option.png 680w, https://www.wpbeginner.com/wp-content/uploads/2020/01/click-manage-button-next-to-the-phpmyadmin-option-300x144.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></noscript></figure> <p>This will open phpMyAdmin in a new window, where you must click the &#8216;Database&#8217; option at the top. </p> <p>After that, click on your database&#8217;s name to access its settings. If you can do that, then it is time for you to check&nbsp;if your database user has sufficient permissions.</p> <figure class="wp-block-image size-full"><img title="Connect PHPMyAdmin with your database" decoding="async" width="680" height="366" src="data:image/svg+xml,%3Csvg%20xmlns=&#039;http://www.w3.org/2000/svg&#039;%20width=&#039;680&#039;%20height=&#039;366&#039;%20viewBox=&#039;0%200%20680%20366&#039;%3E%3C/svg%3E" alt="Connect PHPMyAdmin with your database" class="wp-image-270357 perfmatters-lazy" data-src="https://www.wpbeginner.com/wp-content/uploads/2020/01/connect-phpmyadmin-with-database-1.jpg" /><noscript><img title="Connect PHPMyAdmin with your database" decoding="async" width="680" height="366" src="https://www.wpbeginner.com/wp-content/uploads/2020/01/connect-phpmyadmin-with-database-1.jpg" alt="Connect PHPMyAdmin with your database" class="wp-image-270357" /></noscript></figure> <p>To do this, you need to create a new file called testconnection.php and paste the following code into it:</p> <div class="wp-block-syntaxhighlighter-code "><pre class="brush: php; title: ; notranslate" title=""> &lt;?php $link = mysqli_connect('localhost', 'username', 'password'); if (!$link) { die('Could not connect: ' . mysqli_error()); } echo 'Connected successfully'; mysqli_close($link); ?&gt; </pre><div class="wpcode-syntax-footer"> <div class="wpcode-syntax-code-footer-left">Hosted with ❤️ by <strong><a href="https://wpcode.com" target="_blank">WPCode</a></strong></div> <div class="wpcode-syntax-code-footer-right"> <svg width="65" height="16" viewBox="0 0 65 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M38.0415 7.99972C38.0415 6.44437 38.4062 5.38018 39.128 4.59879C39.8499 3.80995 40.8769 3.42297 42.1941 3.42297C42.8117 3.42297 43.4071 3.54949 43.9206 3.80251C44.4564 4.05553 44.8582 4.39786 45.1782 4.82204C45.2452 4.9039 45.2601 4.99321 45.2601 5.09739C45.2601 5.2239 45.2155 5.31321 45.1336 5.39507C45.0517 5.47693 44.9624 5.52158 44.8359 5.52158C44.6871 5.52158 44.5829 5.4546 44.4936 5.35042C44.2555 5.03042 43.9429 4.75507 43.5113 4.53925C43.1094 4.32344 42.6555 4.21925 42.1643 4.21925C41.1224 4.21925 40.3336 4.53925 39.7755 5.17925C39.2248 5.81925 38.942 6.68995 38.942 7.96995C38.942 9.30948 39.2173 10.2025 39.7531 10.7979C40.2889 11.3932 41.0927 11.7132 42.1643 11.7132C42.6331 11.7132 43.0573 11.6313 43.4889 11.4379C43.8908 11.2444 44.2331 10.9913 44.4936 10.6267C44.5755 10.5225 44.6871 10.4555 44.8359 10.4555C44.9624 10.4555 45.0517 10.5002 45.1336 10.582C45.2155 10.6639 45.2601 10.7755 45.2601 10.8797C45.2601 10.9616 45.2378 11.0509 45.1782 11.1327C44.8806 11.5569 44.4713 11.8993 43.9206 12.1523C43.3699 12.4053 42.7894 12.5318 42.1717 12.5318C40.8322 12.5318 39.8052 12.1523 39.0982 11.4006C38.3987 10.6788 38.0415 9.59228 38.0415 7.99972Z" fill="#1F2937"></path><path d="M46.9268 11.7654C46.4356 11.237 46.1826 10.4258 46.1826 9.36164C46.1826 8.29745 46.4208 7.50862 46.9045 6.98024C47.3956 6.45187 48.0803 6.19141 48.9733 6.19141C49.8663 6.19141 50.551 6.44443 51.0422 6.98024C51.5333 7.50862 51.764 8.29745 51.764 9.36164C51.764 10.4258 51.5259 11.237 51.0422 11.7654C50.551 12.2937 49.8663 12.5765 48.9733 12.5765C48.1026 12.5765 47.418 12.3012 46.9268 11.7654ZM47.0608 9.36164C47.0608 10.9765 47.7008 11.7877 48.9808 11.7877C50.2608 11.7877 50.9008 10.9765 50.9008 9.36164C50.9008 7.74676 50.2608 6.93559 48.9808 6.93559C47.6933 6.93559 47.0608 7.76908 47.0608 9.36164Z" fill="#1F2937"></path><path d="M52.583 9.3839C52.583 7.25553 53.476 6.31786 55.2472 6.31786C55.6491 6.31786 56.0137 6.39972 56.3337 6.57088C56.6537 6.74204 56.9067 6.93553 57.0556 7.18855V3.84716C57.0556 3.72065 57.1002 3.63135 57.1821 3.54949C57.2639 3.46762 57.3532 3.42297 57.4798 3.42297C57.6063 3.42297 57.6956 3.46762 57.7774 3.54949C57.8593 3.63135 57.9039 3.72065 57.9039 3.84716V9.95693C57.9039 10.8053 57.6658 11.4453 57.1821 11.8918C56.7132 12.3383 56.0732 12.569 55.2844 12.569C54.4137 12.569 53.7291 12.2937 53.2602 11.7579C52.8137 11.2369 52.583 10.4481 52.583 9.3839ZM53.4314 9.3839C53.4314 10.9988 54.0491 11.81 55.3067 11.81C55.8425 11.81 56.2667 11.6611 56.5867 11.3411C56.9067 11.0211 57.0556 10.5746 57.0556 9.95693V8.25274C57.0332 8.23042 57.0109 8.18576 56.9886 8.12623C56.9663 8.05925 56.9067 7.97739 56.7951 7.85088C56.6909 7.72437 56.5793 7.59786 56.4528 7.48623C56.3263 7.38204 56.1551 7.29274 55.9616 7.21088C55.7458 7.12902 55.5374 7.08437 55.2993 7.08437C54.6816 7.08437 54.2351 7.27786 53.8928 7.67972C53.5802 8.08158 53.4314 8.57274 53.4314 9.3839Z" fill="#1F2937"></path><path d="M58.9312 9.36193C58.9312 8.3424 59.1693 7.55356 59.653 7.00286C60.1367 6.45216 60.8065 6.16937 61.6772 6.16937C62.0195 6.16937 62.3395 6.21402 62.5925 6.29588C62.8679 6.37774 63.106 6.48937 63.2772 6.63821C63.4484 6.78705 63.6195 6.93588 63.746 7.12937C63.8725 7.30054 63.9842 7.49402 64.0437 7.7024C64.1107 7.91821 64.1479 8.08193 64.1925 8.25309C64.2372 8.42426 64.2372 8.59542 64.2372 8.76658C64.2372 8.89309 64.2372 8.99728 64.2372 9.06426C64.2372 9.13123 64.2149 9.21309 64.1702 9.31728C64.1479 9.42147 64.0884 9.48844 63.9991 9.53309C63.9172 9.57774 63.8279 9.60007 63.7014 9.60007H59.8316C59.8316 10.2624 60.0028 10.7908 60.3674 11.1777C60.7321 11.5573 61.2232 11.7731 61.8409 11.7731C62.1832 11.7731 62.4809 11.7284 62.7116 11.6243C62.9498 11.5201 63.2028 11.3936 63.4335 11.2001C63.5153 11.1331 63.6046 11.1182 63.6716 11.1182C63.7758 11.1182 63.8651 11.1629 63.947 11.2224C64.0139 11.3043 64.0512 11.3936 64.0512 11.4977C64.0512 11.6019 64.0065 11.7136 63.9023 11.7954C63.8205 11.8773 63.6865 11.9889 63.5377 12.0931C63.3888 12.1973 63.1507 12.2866 62.8307 12.3908C62.5107 12.495 62.1684 12.5396 61.8037 12.5396C60.8884 12.5396 60.1814 12.2866 59.6902 11.7508C59.1916 11.2522 58.9312 10.4484 58.9312 9.36193ZM59.8093 8.87077H63.3888C63.3888 8.61774 63.3665 8.37961 63.307 8.17123C63.2623 7.95542 63.1805 7.76937 63.0539 7.57588C62.9274 7.3824 62.7563 7.23356 62.5181 7.12937C62.28 7.02519 62.0046 6.95821 61.6846 6.95821C61.1116 6.95821 60.68 7.12937 60.3377 7.4717C60.0251 7.80658 59.8316 8.27542 59.8093 8.87077Z" fill="#1F2937"></path><path d="M19.229 4.18977C19.229 3.97395 19.3109 3.78791 19.4671 3.63907C19.616 3.49023 19.8095 3.40837 20.0253 3.40837C20.2188 3.40837 20.3899 3.47535 20.5164 3.57954C20.643 3.68372 20.7323 3.81023 20.7695 3.94419L22.3248 9.51814L23.8355 3.96651C23.8802 3.79535 23.962 3.66884 24.1109 3.56465C24.2597 3.46047 24.4085 3.41581 24.5574 3.41581C24.7285 3.41581 24.8774 3.46047 25.0039 3.56465C25.1304 3.66884 25.242 3.79535 25.2792 3.96651L26.7899 9.51814L28.3453 3.92186C28.3899 3.79535 28.4718 3.66884 28.5983 3.55721C28.7248 3.45302 28.8737 3.38605 29.0895 3.38605C29.3053 3.38605 29.4764 3.45302 29.6253 3.60186C29.7741 3.7507 29.8411 3.92186 29.8411 4.13023C29.8411 4.21209 29.8188 4.3014 29.7964 4.36093L27.5118 11.9591C27.4671 12.1079 27.3853 12.2567 27.2364 12.3386C27.1099 12.4428 26.9611 12.4874 26.7899 12.4874C26.6188 12.4874 26.4699 12.4428 26.3434 12.3386C26.2169 12.2344 26.1276 12.1079 26.0904 11.9367L24.5574 6.4893L23.0244 11.9963C22.9797 12.1674 22.8755 12.294 22.749 12.3981C22.6225 12.5023 22.4513 12.547 22.2802 12.547C22.109 12.547 21.9602 12.5023 21.8337 12.3981C21.7071 12.294 21.5955 12.1674 21.5583 12.0186L19.2737 4.42791C19.2513 4.36093 19.229 4.27907 19.229 4.18977Z" fill="#1F2937"></path><path d="M30.9351 11.8101V4.18967C30.9351 3.97386 31.0169 3.81014 31.1509 3.6613C31.2997 3.51246 31.4932 3.4306 31.709 3.4306H34.2467C35.0802 3.4306 35.7425 3.6613 36.2485 4.13014C36.762 4.59898 37.0374 5.27618 37.0374 6.15432C37.0374 7.04735 36.7844 7.70967 36.2709 8.17851C35.7574 8.64735 35.0802 8.87805 34.269 8.87805H32.4978V11.8176C32.4978 12.0334 32.4309 12.2194 32.282 12.3683C32.1332 12.5171 31.962 12.5841 31.7239 12.5841C31.4858 12.5841 31.322 12.5022 31.1732 12.3534C31.002 12.1897 30.9351 12.0185 30.9351 11.8101ZM32.4755 7.48642H34.1202C34.5444 7.48642 34.8644 7.35991 35.1025 7.12177C35.3406 6.89107 35.4448 6.54874 35.4448 6.12456C35.4448 5.70037 35.3406 5.35805 35.1025 5.12735C34.8644 4.89665 34.5444 4.78502 34.1425 4.78502H32.4978V7.48642H32.4755V7.48642Z" fill="#1F2937"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M14.3916 15.9999H1.64367C0.720884 15.9999 -0.000976562 15.278 -0.000976562 14.3627V1.63709C-0.000976562 0.721738 0.720884 -0.00012207 1.64367 -0.00012207H14.3916C15.3069 -0.00012207 16.0362 0.721738 16.0362 1.63709V14.3627C16.0362 15.278 15.3069 15.9999 14.3916 15.9999ZM3.96553 13.0231C3.88367 13.0231 3.77205 13.0008 3.69019 12.9785C3.30321 12.8296 3.11716 12.4055 3.266 12.0185L6.61484 3.44546C6.76367 3.06592 7.18786 2.87244 7.57484 3.02127C7.96181 3.17011 8.14786 3.5943 7.99902 3.98127L4.66507 12.5543C4.56088 12.852 4.26321 13.0231 3.96553 13.0231ZM8.76554 11.9366C8.91437 12.0855 9.10786 12.1524 9.30135 12.1524C9.49484 12.1524 9.68833 12.0855 9.83716 11.9366L12.4567 9.33941C12.9255 8.87058 12.9255 8.08174 12.4567 7.6129L9.83716 4.99337C9.56181 4.69569 9.09298 4.69569 8.7953 4.99337C8.49763 5.26872 8.49763 5.73755 8.7953 6.03523L11.2065 8.46127L8.77298 10.8873C8.46042 11.1701 8.46042 11.6389 8.76554 11.9366Z" fill="#1F2937"></path></svg> <a href="https://library.wpcode.com/use-snippet/" target="_blank">1-click Use in WordPress</a> </div> </div></div> <p>Upon pasting the code, make sure to replace the username and password with your own. You can now upload this file to your website and access it via a web browser.</p> <p>If the script connected successfully, then it means that your user has sufficient permissions, and something else is causing the error.</p> <p>Now, you must go back to your wp-config file and scan it to ensure that all the details are accurate and without any typos.</p> <h4 class="wp-block-heading">Additional Solutions That Have Worked for Users</h4> <p>If the above-mentioned troubleshooting tips fail to fix the database connection error on your website, then you may try these additional steps.</p> <p>As reported by our users, these steps have helped some of them resolve the database connection error on their websites.</p> <p><strong>1. Update the WordPress Site URL</strong></p> <p>You can try updating the WordPress site URL using phpMyAdmin in cPanel. </p> <p>Simply access phpMyAdmin from your hosting account dashboard and select your WordPress database from the list.</p> <p>After that, switch to the SQL menu on the top and enter the following MySQL query:</p> <div class="wp-block-syntaxhighlighter-code "><pre class="brush: sql; title: ; notranslate" title=""> UPDATE wp_options SET option_value='YOUR_SITE_URL' WHERE option_name='siteurl' </pre><div class="wpcode-syntax-footer"> <div class="wpcode-syntax-code-footer-left">Hosted with ❤️ by <strong><a href="https://wpcode.com" target="_blank">WPCode</a></strong></div> <div class="wpcode-syntax-code-footer-right"> <svg width="65" height="16" viewBox="0 0 65 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M38.0415 7.99972C38.0415 6.44437 38.4062 5.38018 39.128 4.59879C39.8499 3.80995 40.8769 3.42297 42.1941 3.42297C42.8117 3.42297 43.4071 3.54949 43.9206 3.80251C44.4564 4.05553 44.8582 4.39786 45.1782 4.82204C45.2452 4.9039 45.2601 4.99321 45.2601 5.09739C45.2601 5.2239 45.2155 5.31321 45.1336 5.39507C45.0517 5.47693 44.9624 5.52158 44.8359 5.52158C44.6871 5.52158 44.5829 5.4546 44.4936 5.35042C44.2555 5.03042 43.9429 4.75507 43.5113 4.53925C43.1094 4.32344 42.6555 4.21925 42.1643 4.21925C41.1224 4.21925 40.3336 4.53925 39.7755 5.17925C39.2248 5.81925 38.942 6.68995 38.942 7.96995C38.942 9.30948 39.2173 10.2025 39.7531 10.7979C40.2889 11.3932 41.0927 11.7132 42.1643 11.7132C42.6331 11.7132 43.0573 11.6313 43.4889 11.4379C43.8908 11.2444 44.2331 10.9913 44.4936 10.6267C44.5755 10.5225 44.6871 10.4555 44.8359 10.4555C44.9624 10.4555 45.0517 10.5002 45.1336 10.582C45.2155 10.6639 45.2601 10.7755 45.2601 10.8797C45.2601 10.9616 45.2378 11.0509 45.1782 11.1327C44.8806 11.5569 44.4713 11.8993 43.9206 12.1523C43.3699 12.4053 42.7894 12.5318 42.1717 12.5318C40.8322 12.5318 39.8052 12.1523 39.0982 11.4006C38.3987 10.6788 38.0415 9.59228 38.0415 7.99972Z" fill="#1F2937"></path><path d="M46.9268 11.7654C46.4356 11.237 46.1826 10.4258 46.1826 9.36164C46.1826 8.29745 46.4208 7.50862 46.9045 6.98024C47.3956 6.45187 48.0803 6.19141 48.9733 6.19141C49.8663 6.19141 50.551 6.44443 51.0422 6.98024C51.5333 7.50862 51.764 8.29745 51.764 9.36164C51.764 10.4258 51.5259 11.237 51.0422 11.7654C50.551 12.2937 49.8663 12.5765 48.9733 12.5765C48.1026 12.5765 47.418 12.3012 46.9268 11.7654ZM47.0608 9.36164C47.0608 10.9765 47.7008 11.7877 48.9808 11.7877C50.2608 11.7877 50.9008 10.9765 50.9008 9.36164C50.9008 7.74676 50.2608 6.93559 48.9808 6.93559C47.6933 6.93559 47.0608 7.76908 47.0608 9.36164Z" fill="#1F2937"></path><path d="M52.583 9.3839C52.583 7.25553 53.476 6.31786 55.2472 6.31786C55.6491 6.31786 56.0137 6.39972 56.3337 6.57088C56.6537 6.74204 56.9067 6.93553 57.0556 7.18855V3.84716C57.0556 3.72065 57.1002 3.63135 57.1821 3.54949C57.2639 3.46762 57.3532 3.42297 57.4798 3.42297C57.6063 3.42297 57.6956 3.46762 57.7774 3.54949C57.8593 3.63135 57.9039 3.72065 57.9039 3.84716V9.95693C57.9039 10.8053 57.6658 11.4453 57.1821 11.8918C56.7132 12.3383 56.0732 12.569 55.2844 12.569C54.4137 12.569 53.7291 12.2937 53.2602 11.7579C52.8137 11.2369 52.583 10.4481 52.583 9.3839ZM53.4314 9.3839C53.4314 10.9988 54.0491 11.81 55.3067 11.81C55.8425 11.81 56.2667 11.6611 56.5867 11.3411C56.9067 11.0211 57.0556 10.5746 57.0556 9.95693V8.25274C57.0332 8.23042 57.0109 8.18576 56.9886 8.12623C56.9663 8.05925 56.9067 7.97739 56.7951 7.85088C56.6909 7.72437 56.5793 7.59786 56.4528 7.48623C56.3263 7.38204 56.1551 7.29274 55.9616 7.21088C55.7458 7.12902 55.5374 7.08437 55.2993 7.08437C54.6816 7.08437 54.2351 7.27786 53.8928 7.67972C53.5802 8.08158 53.4314 8.57274 53.4314 9.3839Z" fill="#1F2937"></path><path d="M58.9312 9.36193C58.9312 8.3424 59.1693 7.55356 59.653 7.00286C60.1367 6.45216 60.8065 6.16937 61.6772 6.16937C62.0195 6.16937 62.3395 6.21402 62.5925 6.29588C62.8679 6.37774 63.106 6.48937 63.2772 6.63821C63.4484 6.78705 63.6195 6.93588 63.746 7.12937C63.8725 7.30054 63.9842 7.49402 64.0437 7.7024C64.1107 7.91821 64.1479 8.08193 64.1925 8.25309C64.2372 8.42426 64.2372 8.59542 64.2372 8.76658C64.2372 8.89309 64.2372 8.99728 64.2372 9.06426C64.2372 9.13123 64.2149 9.21309 64.1702 9.31728C64.1479 9.42147 64.0884 9.48844 63.9991 9.53309C63.9172 9.57774 63.8279 9.60007 63.7014 9.60007H59.8316C59.8316 10.2624 60.0028 10.7908 60.3674 11.1777C60.7321 11.5573 61.2232 11.7731 61.8409 11.7731C62.1832 11.7731 62.4809 11.7284 62.7116 11.6243C62.9498 11.5201 63.2028 11.3936 63.4335 11.2001C63.5153 11.1331 63.6046 11.1182 63.6716 11.1182C63.7758 11.1182 63.8651 11.1629 63.947 11.2224C64.0139 11.3043 64.0512 11.3936 64.0512 11.4977C64.0512 11.6019 64.0065 11.7136 63.9023 11.7954C63.8205 11.8773 63.6865 11.9889 63.5377 12.0931C63.3888 12.1973 63.1507 12.2866 62.8307 12.3908C62.5107 12.495 62.1684 12.5396 61.8037 12.5396C60.8884 12.5396 60.1814 12.2866 59.6902 11.7508C59.1916 11.2522 58.9312 10.4484 58.9312 9.36193ZM59.8093 8.87077H63.3888C63.3888 8.61774 63.3665 8.37961 63.307 8.17123C63.2623 7.95542 63.1805 7.76937 63.0539 7.57588C62.9274 7.3824 62.7563 7.23356 62.5181 7.12937C62.28 7.02519 62.0046 6.95821 61.6846 6.95821C61.1116 6.95821 60.68 7.12937 60.3377 7.4717C60.0251 7.80658 59.8316 8.27542 59.8093 8.87077Z" fill="#1F2937"></path><path d="M19.229 4.18977C19.229 3.97395 19.3109 3.78791 19.4671 3.63907C19.616 3.49023 19.8095 3.40837 20.0253 3.40837C20.2188 3.40837 20.3899 3.47535 20.5164 3.57954C20.643 3.68372 20.7323 3.81023 20.7695 3.94419L22.3248 9.51814L23.8355 3.96651C23.8802 3.79535 23.962 3.66884 24.1109 3.56465C24.2597 3.46047 24.4085 3.41581 24.5574 3.41581C24.7285 3.41581 24.8774 3.46047 25.0039 3.56465C25.1304 3.66884 25.242 3.79535 25.2792 3.96651L26.7899 9.51814L28.3453 3.92186C28.3899 3.79535 28.4718 3.66884 28.5983 3.55721C28.7248 3.45302 28.8737 3.38605 29.0895 3.38605C29.3053 3.38605 29.4764 3.45302 29.6253 3.60186C29.7741 3.7507 29.8411 3.92186 29.8411 4.13023C29.8411 4.21209 29.8188 4.3014 29.7964 4.36093L27.5118 11.9591C27.4671 12.1079 27.3853 12.2567 27.2364 12.3386C27.1099 12.4428 26.9611 12.4874 26.7899 12.4874C26.6188 12.4874 26.4699 12.4428 26.3434 12.3386C26.2169 12.2344 26.1276 12.1079 26.0904 11.9367L24.5574 6.4893L23.0244 11.9963C22.9797 12.1674 22.8755 12.294 22.749 12.3981C22.6225 12.5023 22.4513 12.547 22.2802 12.547C22.109 12.547 21.9602 12.5023 21.8337 12.3981C21.7071 12.294 21.5955 12.1674 21.5583 12.0186L19.2737 4.42791C19.2513 4.36093 19.229 4.27907 19.229 4.18977Z" fill="#1F2937"></path><path d="M30.9351 11.8101V4.18967C30.9351 3.97386 31.0169 3.81014 31.1509 3.6613C31.2997 3.51246 31.4932 3.4306 31.709 3.4306H34.2467C35.0802 3.4306 35.7425 3.6613 36.2485 4.13014C36.762 4.59898 37.0374 5.27618 37.0374 6.15432C37.0374 7.04735 36.7844 7.70967 36.2709 8.17851C35.7574 8.64735 35.0802 8.87805 34.269 8.87805H32.4978V11.8176C32.4978 12.0334 32.4309 12.2194 32.282 12.3683C32.1332 12.5171 31.962 12.5841 31.7239 12.5841C31.4858 12.5841 31.322 12.5022 31.1732 12.3534C31.002 12.1897 30.9351 12.0185 30.9351 11.8101ZM32.4755 7.48642H34.1202C34.5444 7.48642 34.8644 7.35991 35.1025 7.12177C35.3406 6.89107 35.4448 6.54874 35.4448 6.12456C35.4448 5.70037 35.3406 5.35805 35.1025 5.12735C34.8644 4.89665 34.5444 4.78502 34.1425 4.78502H32.4978V7.48642H32.4755V7.48642Z" fill="#1F2937"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M14.3916 15.9999H1.64367C0.720884 15.9999 -0.000976562 15.278 -0.000976562 14.3627V1.63709C-0.000976562 0.721738 0.720884 -0.00012207 1.64367 -0.00012207H14.3916C15.3069 -0.00012207 16.0362 0.721738 16.0362 1.63709V14.3627C16.0362 15.278 15.3069 15.9999 14.3916 15.9999ZM3.96553 13.0231C3.88367 13.0231 3.77205 13.0008 3.69019 12.9785C3.30321 12.8296 3.11716 12.4055 3.266 12.0185L6.61484 3.44546C6.76367 3.06592 7.18786 2.87244 7.57484 3.02127C7.96181 3.17011 8.14786 3.5943 7.99902 3.98127L4.66507 12.5543C4.56088 12.852 4.26321 13.0231 3.96553 13.0231ZM8.76554 11.9366C8.91437 12.0855 9.10786 12.1524 9.30135 12.1524C9.49484 12.1524 9.68833 12.0855 9.83716 11.9366L12.4567 9.33941C12.9255 8.87058 12.9255 8.08174 12.4567 7.6129L9.83716 4.99337C9.56181 4.69569 9.09298 4.69569 8.7953 4.99337C8.49763 5.26872 8.49763 5.73755 8.7953 6.03523L11.2065 8.46127L8.77298 10.8873C8.46042 11.1701 8.46042 11.6389 8.76554 11.9366Z" fill="#1F2937"></path></svg> <a href="https://library.wpcode.com/use-snippet/" target="_blank">1-click Use in WordPress</a> </div> </div></div> <p>It should look like this:</p> <figure class="wp-block-image size-full"><img title="Change site URL" decoding="async" width="680" height="318" src="data:image/svg+xml,%3Csvg%20xmlns=&#039;http://www.w3.org/2000/svg&#039;%20width=&#039;680&#039;%20height=&#039;318&#039;%20viewBox=&#039;0%200%20680%20318&#039;%3E%3C/svg%3E" alt="Change site URL " class="wp-image-270358 perfmatters-lazy" data-src="https://www.wpbeginner.com/wp-content/uploads/2020/01/change-site-url-1.jpg" /><noscript><img title="Change site URL" decoding="async" width="680" height="318" src="https://www.wpbeginner.com/wp-content/uploads/2020/01/change-site-url-1.jpg" alt="Change site URL " class="wp-image-270358" /></noscript></figure> <p>Don&#8217;t forget to provide your own site URL and change <code>wp_options</code> to your own table name, as you may have changed the <a href="https://www.wpbeginner.com/wp-tutorials/how-to-change-the-wordpress-database-prefix-to-improve-security/" title="How to Change the WordPress Database Prefix to Improve Security">WordPress table prefix</a>.</p> <p><strong>2. Rebooting Web Server</strong></p> <p>Users on dedicated servers, local servers, and <a href="https://www.wpbeginner.com/best-vps-hosting-compared/" title="Do You Really Need a VPS? Best WordPress VPS Hosting Compared">virtual private servers (VPS)</a> can try rebooting their servers.</p> <p>This will restart your web and database server, which may fix some temporary glitches causing the error.</p> <p><strong>3. Ask For Help</strong></p> <p>If everything else fails, then you may need to contact your web hosting company. All good WordPress hosting companies will help you troubleshoot the problem, point you in the right direction, or even fix it for you.</p> <p>You can also <a href="https://www.wpbeginner.com/showcase/best-places-to-hire-wordpress-developers/" title="Best Places to Hire WordPress Developers">hire WordPress developers</a> using a platform like <a href="https://www.wpbeginner.com/services/" title="WPBeginner Pro Services">WPBeginner Pro Services</a> to help you fix this issue for reasonable rates. We have a dedicated team of expert developers that you can trust to resolve any of your WordPress issues.</p> <figure class="wp-block-image size-full"><a href="https://www.wpbeginner.com/services/wordpress-site-maintenance/" target="_blank" rel="noopener"><img title="WPBeginner Pro Services" decoding="async" width="680" height="360" src="data:image/svg+xml,%3Csvg%20xmlns=&#039;http://www.w3.org/2000/svg&#039;%20width=&#039;680&#039;%20height=&#039;360&#039;%20viewBox=&#039;0%200%20680%20360&#039;%3E%3C/svg%3E" alt="WPBeginner Pro Services" class="wp-image-274824 perfmatters-lazy" data-src="https://www.wpbeginner.com/wp-content/uploads/2020/12/wpbproservices.png" data-srcset="https://www.wpbeginner.com/wp-content/uploads/2020/12/wpbproservices.png 680w, https://www.wpbeginner.com/wp-content/uploads/2020/12/wpbproservices-300x159.png 300w" data-sizes="(max-width: 680px) 100vw, 680px" /><noscript><img title="WPBeginner Pro Services" decoding="async" width="680" height="360" src="https://www.wpbeginner.com/wp-content/uploads/2020/12/wpbproservices.png" alt="WPBeginner Pro Services" class="wp-image-274824" srcset="https://www.wpbeginner.com/wp-content/uploads/2020/12/wpbproservices.png 680w, https://www.wpbeginner.com/wp-content/uploads/2020/12/wpbproservices-300x159.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></noscript></a></figure> <p>You can also use the service for site maintenance, hacked site repair, speed optimization, website rebuilding, and SEO optimization.</p> <p>We hope this article helped you fix the &#8216;Error establishing a database connection&#8217; issue in WordPress. You may also want to see our <a href="https://www.wpbeginner.com/beginners-guide/beginners-guide-to-troubleshooting-wordpress-errors-step-by-step/" title="Beginner’s Guide to Troubleshooting WordPress Errors (Step by Step)">WordPress troubleshooting guide</a> for tips on resolving WordPress issues on your own or our tutorial on <a href="https://www.wpbeginner.com/wp-tutorials/how-to-add-a-custom-database-error-page-in-wordpress/" title="How to Add a Custom Database Error Page in WordPress">how to add a custom database error page in WordPress</a>.</p> <p>If you liked this article, then please subscribe to our <a href="https://youtube.com/wpbeginner?sub_confirmation=1" target="_blank" rel="noreferrer noopener nofollow" title="Subscribe to WPBeginner YouTube Channel">YouTube Channel</a> for WordPress video tutorials. You can also find us on <a href="https://twitter.com/wpbeginner" target="_blank" rel="noreferrer noopener nofollow" title="Follow WPBeginner on Twitter">Twitter</a> and <a href="https://facebook.com/wpbeginner" target="_blank" rel="noreferrer noopener nofollow" title="Join WPBeginner Community on Facebook">Facebook</a>.</p> </div><footer class="entry-footer"> <div class="shared-counts-wrap before_content style-fancy"> <span class="shared-counts-button included_total" data-postid="5484" data-social-target="https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/"> <span class="shared-counts-icon-label"> <span class="shared-counts-icon"></span> <span class="shared-counts-label"> Shares </span> </span> <span class="shared-counts-count"> 969 </span> </span> <a href="https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fwww.wpbeginner.com%2Fwp-tutorials%2Fhow-to-fix-the-error-establishing-a-database-connection-in-wordpress%2F&#038;display=popup&#038;ref=plugin&#038;src=share_button" title="Share on Facebook" target="_blank" rel="nofollow noopener noreferrer" class="shared-counts-button facebook shared-counts-no-count" data-postid="5484" data-social-network="Facebook" data-social-action="Share" data-social-target="https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/"> <span class="shared-counts-icon-label"> <span class="shared-counts-icon"> <svg width="14" height="14" aria-hidden="true" role="img" focusable="false"> <use href="#brands-facebook-square"></use> </svg> </span> <span class="shared-counts-label"> Share </span> </span> </a> <a href="https://twitter.com/share?url=https%3A%2F%2Fwww.wpbeginner.com%2Fwp-tutorials%2Fhow-to-fix-the-error-establishing-a-database-connection-in-wordpress%2F&#038;text=How%20to%20Fix%20the%20Error%20Establishing%20a%20Database%20Connection%20in%20WordPress&#038;via=wpbeginner" title="Share on Twitter" target="_blank" rel="nofollow noopener noreferrer" class="shared-counts-button twitter shared-counts-no-count" data-postid="5484" data-social-network="Twitter" data-social-action="Tweet" data-social-target="https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/"> <span class="shared-counts-icon-label"> <span class="shared-counts-icon"> <svg width="14" height="14" aria-hidden="true" role="img" focusable="false"> <use href="#brands-twitter"></use> </svg> </span> <span class="shared-counts-label"> Tweet </span> </span> </a> <a href="https://www.linkedin.com/shareArticle?mini=true&#038;url=https%3A%2F%2Fwww.wpbeginner.com%2Fwp-tutorials%2Fhow-to-fix-the-error-establishing-a-database-connection-in-wordpress%2F&#038;text=How%20to%20Fix%20the%20Error%20Establishing%20a%20Database%20Connection%20in%20WordPress" title="Share on LinkedIn" target="_blank" rel="nofollow noopener noreferrer" class="shared-counts-button linkedin shared-counts-no-count" data-postid="5484" data-social-network="LinkedIn" data-social-action="Share" data-social-target="https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/"> <span class="shared-counts-icon-label"> <span class="shared-counts-icon"> <svg width="14" height="14" aria-hidden="true" role="img" focusable="false"> <use xlink:href="#brands-linkedin"></use> </svg> </span> <span class="shared-counts-label"> Share </span> </span> </a> <a href="https://wa.me/?text=https%3A%2F%2Fwww.wpbeginner.com%2Fwp-tutorials%2Fhow-to-fix-the-error-establishing-a-database-connection-in-wordpress%2F" title="Share on WhatsApp" target="_blank" rel="nofollow noopener noreferrer" class="shared-counts-button whatsapp shared-counts-no-count" data-postid="5484" data-social-target="https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/"> <span class="shared-counts-icon-label"> <span class="shared-counts-icon"> <svg width="16" height="16" aria-hidden="true" role="img" focusable="false"> <use href="#brands-whatsapp"></use> </svg> </span> <span class="shared-counts-label">WhatsApp</span> </span> </a> <a href="mailto:?subject=Your%20friend%20has%20shared%20an%20article%20you%20with%20you.&#038;body=How%20to%20Fix%20the%20Error%20Establishing%20a%20Database%20Connection%20in%20WordPress%20https%3A%2F%2Fwww.wpbeginner.com%2Fwp-tutorials%2Fhow-to-fix-the-error-establishing-a-database-connection-in-wordpress%2F" title="Share via Email" target="_blank" rel="nofollow noopener noreferrer" class="shared-counts-button email shared-counts-no-count" data-postid="5484" data-social-target="https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/" data-social-action="Emailed"> <span class="shared-counts-icon-label"> <span class="shared-counts-icon"> <svg width="14" height="14" aria-hidden="true" role="img" focusable="false"> <use href="#regular-envelope"></use> </svg> </span> <span class="shared-counts-label">Email</span> </span> </a> </div> <!-- .shared-counts-wrap --> <svg style="display:none;"><defs><symbol id="brands-facebook-messenger" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M256.55 8C116.52 8 8 110.34 8 248.57c0 72.3 29.71 134.78 78.07 177.94 8.35 7.51 6.63 11.86 8.05 58.23A19.92 19.92 0 00122 502.31c52.91-23.3 53.59-25.14 62.56-22.7C337.85 521.8 504 423.7 504 248.57 504 110.34 396.59 8 256.55 8zm149.24 185.13l-73 115.57a37.37 37.37 0 01-53.91 9.93l-58.08-43.47a15 15 0 00-18 0l-78.37 59.44c-10.46 7.93-24.16-4.6-17.11-15.67l73-115.57a37.36 37.36 0 0153.91-9.93l58.06 43.46a15 15 0 0018 0l78.41-59.38c10.44-7.98 24.14 4.54 17.09 15.62z"></path></symbol><symbol id="brands-slack" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M94.12 315.1c0 25.9-21.16 47.06-47.06 47.06S0 341 0 315.1c0-25.9 21.16-47.06 47.06-47.06h47.06v47.06zm23.72 0c0-25.9 21.16-47.06 47.06-47.06s47.06 21.16 47.06 47.06v117.84c0 25.9-21.16 47.06-47.06 47.06s-47.06-21.16-47.06-47.06V315.1zm47.06-188.98c-25.9 0-47.06-21.16-47.06-47.06S139 32 164.9 32s47.06 21.16 47.06 47.06v47.06H164.9zm0 23.72c25.9 0 47.06 21.16 47.06 47.06s-21.16 47.06-47.06 47.06H47.06C21.16 243.96 0 222.8 0 196.9s21.16-47.06 47.06-47.06H164.9zm188.98 47.06c0-25.9 21.16-47.06 47.06-47.06 25.9 0 47.06 21.16 47.06 47.06s-21.16 47.06-47.06 47.06h-47.06V196.9zm-23.72 0c0 25.9-21.16 47.06-47.06 47.06-25.9 0-47.06-21.16-47.06-47.06V79.06c0-25.9 21.16-47.06 47.06-47.06 25.9 0 47.06 21.16 47.06 47.06V196.9zM283.1 385.88c25.9 0 47.06 21.16 47.06 47.06 0 25.9-21.16 47.06-47.06 47.06-25.9 0-47.06-21.16-47.06-47.06v-47.06h47.06zm0-23.72c-25.9 0-47.06-21.16-47.06-47.06 0-25.9 21.16-47.06 47.06-47.06h117.84c25.9 0 47.06 21.16 47.06 47.06 0 25.9-21.16 47.06-47.06 47.06H283.1z"></path></symbol><symbol id="brands-whatsapp" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M380.9 97.1C339 55.1 283.2 32 223.9 32c-122.4 0-222 99.6-222 222 0 39.1 10.2 77.3 29.6 111L0 480l117.7-30.9c32.4 17.7 68.9 27 106.1 27h.1c122.3 0 224.1-99.6 224.1-222 0-59.3-25.2-115-67.1-157zm-157 341.6c-33.2 0-65.7-8.9-94-25.7l-6.7-4-69.8 18.3L72 359.2l-4.4-7c-18.5-29.4-28.2-63.3-28.2-98.2 0-101.7 82.8-184.5 184.6-184.5 49.3 0 95.6 19.2 130.4 54.1 34.8 34.9 56.2 81.2 56.1 130.5 0 101.8-84.9 184.6-186.6 184.6zm101.2-138.2c-5.5-2.8-32.8-16.2-37.9-18-5.1-1.9-8.8-2.8-12.5 2.8-3.7 5.6-14.3 18-17.6 21.8-3.2 3.7-6.5 4.2-12 1.4-32.6-16.3-54-29.1-75.5-66-5.7-9.8 5.7-9.1 16.3-30.3 1.8-3.7.9-6.9-.5-9.7-1.4-2.8-12.5-30.1-17.1-41.2-4.5-10.8-9.1-9.3-12.5-9.5-3.2-.2-6.9-.2-10.6-.2-3.7 0-9.7 1.4-14.8 6.9-5.1 5.6-19.4 19-19.4 46.3 0 27.3 19.9 53.7 22.6 57.4 2.8 3.7 39.1 59.7 94.8 83.8 35.2 15.2 49 16.5 66.6 13.9 10.7-1.6 32.8-13.4 37.4-26.4 4.6-13 4.6-24.1 3.2-26.4-1.3-2.5-5-3.9-10.5-6.6z"></path></symbol><symbol id="brands-facebook" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M504 256C504 119 393 8 256 8S8 119 8 256c0 123.78 90.69 226.38 209.25 245V327.69h-63V256h63v-54.64c0-62.15 37-96.48 93.67-96.48 27.14 0 55.52 4.84 55.52 4.84v61h-31.28c-30.8 0-40.41 19.12-40.41 38.73V256h68.78l-11 71.69h-57.78V501C413.31 482.38 504 379.78 504 256z"></path></symbol><symbol id="brands-facebook-square" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M400 32H48A48 48 0 000 80v352a48 48 0 0048 48h137.25V327.69h-63V256h63v-54.64c0-62.15 37-96.48 93.67-96.48 27.14 0 55.52 4.84 55.52 4.84v61h-31.27c-30.81 0-40.42 19.12-40.42 38.73V256h68.78l-11 71.69h-57.78V480H400a48 48 0 0048-48V80a48 48 0 00-48-48z"></path></symbol><symbol id="brands-twitter" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M459.37 151.716c.325 4.548.325 9.097.325 13.645 0 138.72-105.583 298.558-298.558 298.558-59.452 0-114.68-17.219-161.137-47.106 8.447.974 16.568 1.299 25.34 1.299 49.055 0 94.213-16.568 130.274-44.832-46.132-.975-84.792-31.188-98.112-72.772 6.498.974 12.995 1.624 19.818 1.624 9.421 0 18.843-1.3 27.614-3.573-48.081-9.747-84.143-51.98-84.143-102.985v-1.299c13.969 7.797 30.214 12.67 47.431 13.319-28.264-18.843-46.781-51.005-46.781-87.391 0-19.492 5.197-37.36 14.294-52.954 51.655 63.675 129.3 105.258 216.365 109.807-1.624-7.797-2.599-15.918-2.599-24.04 0-57.828 46.782-104.934 104.934-104.934 30.213 0 57.502 12.67 76.67 33.137 23.715-4.548 46.456-13.32 66.599-25.34-7.798 24.366-24.366 44.833-46.132 57.827 21.117-2.273 41.584-8.122 60.426-16.243-14.292 20.791-32.161 39.308-52.628 54.253z"></path></symbol><symbol id="brands-linkedin" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M416 32H31.9C14.3 32 0 46.5 0 64.3v383.4C0 465.5 14.3 480 31.9 480H416c17.6 0 32-14.5 32-32.3V64.3c0-17.8-14.4-32.3-32-32.3zM135.4 416H69V202.2h66.5V416zm-33.2-243c-21.3 0-38.5-17.3-38.5-38.5S80.9 96 102.2 96c21.2 0 38.5 17.3 38.5 38.5 0 21.3-17.2 38.5-38.5 38.5zm282.1 243h-66.4V312c0-24.8-.5-56.7-34.5-56.7-34.6 0-39.9 27-39.9 54.9V416h-66.4V202.2h63.7v29.2h.9c8.9-16.8 30.6-34.5 62.9-34.5 67.2 0 79.7 44.3 79.7 101.9V416z"></path></symbol><symbol id="brands-pinterest" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 496 512"><path d="M496 256c0 137-111 248-248 248-25.6 0-50.2-3.9-73.4-11.1 10.1-16.5 25.2-43.5 30.8-65 3-11.6 15.4-59 15.4-59 8.1 15.4 31.7 28.5 56.8 28.5 74.8 0 128.7-68.8 128.7-154.3 0-81.9-66.9-143.2-152.9-143.2-107 0-163.9 71.8-163.9 150.1 0 36.4 19.4 81.7 50.3 96.1 4.7 2.2 7.2 1.2 8.3-3.3.8-3.4 5-20.3 6.9-28.1.6-2.5.3-4.7-1.7-7.1-10.1-12.5-18.3-35.3-18.3-56.6 0-54.7 41.4-107.6 112-107.6 60.9 0 103.6 41.5 103.6 100.9 0 67.1-33.9 113.6-78 113.6-24.3 0-42.6-20.1-36.7-44.8 7-29.5 20.5-61.3 20.5-82.6 0-19-10.2-34.9-31.4-34.9-24.9 0-44.9 25.7-44.9 60.2 0 22 7.4 36.8 7.4 36.8s-24.5 103.8-29 123.2c-5 21.4-3 51.6-.9 71.2C65.4 450.9 0 361.1 0 256 0 119 111 8 248 8s248 111 248 248z"></path></symbol><symbol id="brands-youtube" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><path d="M549.655 124.083c-6.281-23.65-24.787-42.276-48.284-48.597C458.781 64 288 64 288 64S117.22 64 74.629 75.486c-23.497 6.322-42.003 24.947-48.284 48.597-11.412 42.867-11.412 132.305-11.412 132.305s0 89.438 11.412 132.305c6.281 23.65 24.787 41.5 48.284 47.821C117.22 448 288 448 288 448s170.78 0 213.371-11.486c23.497-6.321 42.003-24.171 48.284-47.821 11.412-42.867 11.412-132.305 11.412-132.305s0-89.438-11.412-132.305zm-317.51 213.508V175.185l142.739 81.205-142.739 81.201z"></path></symbol><symbol id="brands-instagram" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M224.1 141c-63.6 0-114.9 51.3-114.9 114.9s51.3 114.9 114.9 114.9S339 319.5 339 255.9 287.7 141 224.1 141zm0 189.6c-41.1 0-74.7-33.5-74.7-74.7s33.5-74.7 74.7-74.7 74.7 33.5 74.7 74.7-33.6 74.7-74.7 74.7zm146.4-194.3c0 14.9-12 26.8-26.8 26.8-14.9 0-26.8-12-26.8-26.8s12-26.8 26.8-26.8 26.8 12 26.8 26.8zm76.1 27.2c-1.7-35.9-9.9-67.7-36.2-93.9-26.2-26.2-58-34.4-93.9-36.2-37-2.1-147.9-2.1-184.9 0-35.8 1.7-67.6 9.9-93.9 36.1s-34.4 58-36.2 93.9c-2.1 37-2.1 147.9 0 184.9 1.7 35.9 9.9 67.7 36.2 93.9s58 34.4 93.9 36.2c37 2.1 147.9 2.1 184.9 0 35.9-1.7 67.7-9.9 93.9-36.2 26.2-26.2 34.4-58 36.2-93.9 2.1-37 2.1-147.8 0-184.8zM398.8 388c-7.8 19.6-22.9 34.7-42.6 42.6-29.5 11.7-99.5 9-132.1 9s-102.7 2.6-132.1-9c-19.6-7.8-34.7-22.9-42.6-42.6-11.7-29.5-9-99.5-9-132.1s-2.6-102.7 9-132.1c7.8-19.6 22.9-34.7 42.6-42.6 29.5-11.7 99.5-9 132.1-9s102.7-2.6 132.1 9c19.6 7.8 34.7 22.9 42.6 42.6 11.7 29.5 9 99.5 9 132.1s2.7 102.7-9 132.1z"></path></symbol><symbol id="brands-wordpress" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M61.7 169.4l101.5 278C92.2 413 43.3 340.2 43.3 256c0-30.9 6.6-60.1 18.4-86.6zm337.9 75.9c0-26.3-9.4-44.5-17.5-58.7-10.8-17.5-20.9-32.4-20.9-49.9 0-19.6 14.8-37.8 35.7-37.8.9 0 1.8.1 2.8.2-37.9-34.7-88.3-55.9-143.7-55.9-74.3 0-139.7 38.1-177.8 95.9 5 .2 9.7.3 13.7.3 22.2 0 56.7-2.7 56.7-2.7 11.5-.7 12.8 16.2 1.4 17.5 0 0-11.5 1.3-24.3 2l77.5 230.4L249.8 247l-33.1-90.8c-11.5-.7-22.3-2-22.3-2-11.5-.7-10.1-18.2 1.3-17.5 0 0 35.1 2.7 56 2.7 22.2 0 56.7-2.7 56.7-2.7 11.5-.7 12.8 16.2 1.4 17.5 0 0-11.5 1.3-24.3 2l76.9 228.7 21.2-70.9c9-29.4 16-50.5 16-68.7zm-139.9 29.3l-63.8 185.5c19.1 5.6 39.2 8.7 60.1 8.7 24.8 0 48.5-4.3 70.6-12.1-.6-.9-1.1-1.9-1.5-2.9l-65.4-179.2zm183-120.7c.9 6.8 1.4 14 1.4 21.9 0 21.6-4 45.8-16.2 76.2l-65 187.9C426.2 403 468.7 334.5 468.7 256c0-37-9.4-71.8-26-102.1zM504 256c0 136.8-111.3 248-248 248C119.2 504 8 392.7 8 256 8 119.2 119.2 8 256 8c136.7 0 248 111.2 248 248zm-11.4 0c0-130.5-106.2-236.6-236.6-236.6C125.5 19.4 19.4 125.5 19.4 256S125.6 492.6 256 492.6c130.5 0 236.6-106.1 236.6-236.6z"></path></symbol><symbol id="regular-envelope" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M464 64H48C21.49 64 0 85.49 0 112v288c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V112c0-26.51-21.49-48-48-48zm0 48v40.805c-22.422 18.259-58.168 46.651-134.587 106.49-16.841 13.247-50.201 45.072-73.413 44.701-23.208.375-56.579-31.459-73.413-44.701C106.18 199.465 70.425 171.067 48 152.805V112h416zM48 400V214.398c22.914 18.251 55.409 43.862 104.938 82.646 21.857 17.205 60.134 55.186 103.062 54.955 42.717.231 80.509-37.199 103.053-54.947 49.528-38.783 82.032-64.401 104.947-82.653V400H48z"></path></symbol><symbol id="regular-search" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M508.5 468.9L387.1 347.5c-2.3-2.3-5.3-3.5-8.5-3.5h-13.2c31.5-36.5 50.6-84 50.6-136C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c52 0 99.5-19.1 136-50.6v13.2c0 3.2 1.3 6.2 3.5 8.5l121.4 121.4c4.7 4.7 12.3 4.7 17 0l22.6-22.6c4.7-4.7 4.7-12.3 0-17zM208 368c-88.4 0-160-71.6-160-160S119.6 48 208 48s160 71.6 160 160-71.6 160-160 160z"></path></symbol><symbol id="regular-times" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512"><path d="M207.6 256l107.72-107.72c6.23-6.23 6.23-16.34 0-22.58l-25.03-25.03c-6.23-6.23-16.34-6.23-22.58 0L160 208.4 52.28 100.68c-6.23-6.23-16.34-6.23-22.58 0L4.68 125.7c-6.23 6.23-6.23 16.34 0 22.58L112.4 256 4.68 363.72c-6.23 6.23-6.23 16.34 0 22.58l25.03 25.03c6.23 6.23 16.34 6.23 22.58 0L160 303.6l107.72 107.72c6.23 6.23 16.34 6.23 22.58 0l25.03-25.03c6.23-6.23 6.23-16.34 0-22.58L207.6 256z"></path></symbol><symbol id="regular-bars" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"></path></symbol><symbol id="regular-chevron-down" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M441.9 167.3l-19.8-19.8c-4.7-4.7-12.3-4.7-17 0L224 328.2 42.9 147.5c-4.7-4.7-12.3-4.7-17 0L6.1 167.3c-4.7 4.7-4.7 12.3 0 17l209.4 209.4c4.7 4.7 12.3 4.7 17 0l209.4-209.4c4.7-4.7 4.7-12.3 0-17z"></path></symbol><symbol id="regular-long-arrow-right" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M295.515 115.716l-19.626 19.626c-4.753 4.753-4.675 12.484.173 17.14L356.78 230H12c-6.627 0-12 5.373-12 12v28c0 6.627 5.373 12 12 12h344.78l-80.717 77.518c-4.849 4.656-4.927 12.387-.173 17.14l19.626 19.626c4.686 4.686 12.284 4.686 16.971 0l131.799-131.799c4.686-4.686 4.686-12.284 0-16.971L312.485 115.716c-4.686-4.686-12.284-4.686-16.97 0z"></path></symbol><symbol id="regular-server" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M424 400c0 13.255-10.745 24-24 24s-24-10.745-24-24 10.745-24 24-24 24 10.745 24 24zm-88-24c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24zm64-144c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24zm-64 0c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24zm176-72a47.758 47.758 0 01-6.438 24A47.758 47.758 0 01512 208v96a47.758 47.758 0 01-6.438 24A47.758 47.758 0 01512 352v96c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48v-96a47.758 47.758 0 016.438-24A47.758 47.758 0 010 304v-96a47.758 47.758 0 016.438-24A47.758 47.758 0 010 160V64c0-26.51 21.49-48 48-48h416c26.51 0 48 21.49 48 48v96zm-464 0h416V64H48v96zm416 48H48v96h416v-96zm0 144H48v96h416v-96zm-64-216c13.255 0 24-10.745 24-24s-10.745-24-24-24-24 10.745-24 24 10.745 24 24 24zm-64 0c13.255 0 24-10.745 24-24s-10.745-24-24-24-24 10.745-24 24 10.745 24 24 24z"></path></symbol><symbol id="regular-tools" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M224 96.1v48.8l29.7 29.7c-6.8-34.8 3.5-70.3 28.5-95.3 20.3-20.3 47.2-31.2 75-31.2h1.2L301 105.3l15.1 90.6 90.6 15.1 57.3-57.3c.3 28.3-10.6 55.5-31.2 76.1-9.3 9.3-20.2 16.4-31.8 21.6 1.8 1.6 3.9 2.9 5.6 4.6l30.7 30.7c10.5-6.3 20.5-13.9 29.4-22.9 38.1-38.1 53.7-94.3 40.7-146.6C504.4 105 495 95.4 483 92c-12.2-3.4-25.2.1-34 9l-58.7 58.6-32.4-5.4-5.4-32.4 58.6-58.6c8.9-8.9 12.3-21.9 8.9-34-3.3-12.1-13-21.5-25.2-24.5-53.2-13.2-107.9 2-146.6 40.6C238 55.5 229.7 67 222.9 79.2l1.1.8v16.1zM106 454c-12.8 12.8-35.3 12.8-48.1 0-6.4-6.4-10-15-10-24 0-9.1 3.5-17.6 10-24l134.4-134.4-33.9-33.9L24 372C8.5 387.5 0 408.1 0 430s8.5 42.5 24 58 36.1 24 58 24 42.5-8.5 58-24l100.9-100.9c-9.7-15.8-15.2-33.8-15.7-52.1L106 454zm395.1-58.3L384 278.6c-23.1-23.1-57.6-27.6-85.4-13.9L192 158.1V96L64 0 0 64l96 128h62.1l106.6 106.6c-13.6 27.8-9.2 62.3 13.9 85.4l117.1 117.1c14.6 14.6 38.2 14.6 52.7 0l52.7-52.7c14.5-14.6 14.5-38.2 0-52.7z"></path></symbol><symbol id="regular-plug" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512"><path d="M312 24a24 24 0 00-48 0v88h48zm-192 0a24 24 0 00-48 0v88h48zm248 120H16a16 16 0 00-16 16v16a16 16 0 0016 16h16v64c0 80.14 59.11 145.92 136 157.58V512h48v-98.42c76.89-11.66 136-77.44 136-157.58v-64h16a16 16 0 0016-16v-16a16 16 0 00-16-16zm-64 112a112 112 0 01-224 0v-64h224z"></path></symbol><symbol id="regular-browser" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M464 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zM48 92c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v24c0 6.6-5.4 12-12 12H60c-6.6 0-12-5.4-12-12V92zm416 334c0 3.3-2.7 6-6 6H54c-3.3 0-6-2.7-6-6V168h416v258zm0-310c0 6.6-5.4 12-12 12H172c-6.6 0-12-5.4-12-12V92c0-6.6 5.4-12 12-12h280c6.6 0 12 5.4 12 12v24z"></path></symbol><symbol id="solid-users" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 512"><path d="M96 224c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64zm448 0c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64zm32 32h-64c-17.6 0-33.5 7.1-45.1 18.6 40.3 22.1 68.9 62 75.1 109.4h66c17.7 0 32-14.3 32-32v-32c0-35.3-28.7-64-64-64zm-256 0c61.9 0 112-50.1 112-112S381.9 32 320 32 208 82.1 208 144s50.1 112 112 112zm76.8 32h-8.3c-20.8 10-43.9 16-68.5 16s-47.6-6-68.5-16h-8.3C179.6 288 128 339.6 128 403.2V432c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48v-28.8c0-63.6-51.6-115.2-115.2-115.2zm-223.7-13.4C161.5 263.1 145.6 256 128 256H64c-35.3 0-64 28.7-64 64v32c0 17.7 14.3 32 32 32h65.9c6.3-47.4 34.9-87.3 75.2-109.4z"></path></symbol><symbol id="solid-server" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M480 160H32c-17.673 0-32-14.327-32-32V64c0-17.673 14.327-32 32-32h448c17.673 0 32 14.327 32 32v64c0 17.673-14.327 32-32 32zm-48-88c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24zm-64 0c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24zm112 248H32c-17.673 0-32-14.327-32-32v-64c0-17.673 14.327-32 32-32h448c17.673 0 32 14.327 32 32v64c0 17.673-14.327 32-32 32zm-48-88c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24zm-64 0c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24zm112 248H32c-17.673 0-32-14.327-32-32v-64c0-17.673 14.327-32 32-32h448c17.673 0 32 14.327 32 32v64c0 17.673-14.327 32-32 32zm-48-88c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24zm-64 0c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24z"></path></symbol><symbol id="solid-cogs" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 512"><path d="M512.1 191l-8.2 14.3c-3 5.3-9.4 7.5-15.1 5.4-11.8-4.4-22.6-10.7-32.1-18.6-4.6-3.8-5.8-10.5-2.8-15.7l8.2-14.3c-6.9-8-12.3-17.3-15.9-27.4h-16.5c-6 0-11.2-4.3-12.2-10.3-2-12-2.1-24.6 0-37.1 1-6 6.2-10.4 12.2-10.4h16.5c3.6-10.1 9-19.4 15.9-27.4l-8.2-14.3c-3-5.2-1.9-11.9 2.8-15.7 9.5-7.9 20.4-14.2 32.1-18.6 5.7-2.1 12.1.1 15.1 5.4l8.2 14.3c10.5-1.9 21.2-1.9 31.7 0L552 6.3c3-5.3 9.4-7.5 15.1-5.4 11.8 4.4 22.6 10.7 32.1 18.6 4.6 3.8 5.8 10.5 2.8 15.7l-8.2 14.3c6.9 8 12.3 17.3 15.9 27.4h16.5c6 0 11.2 4.3 12.2 10.3 2 12 2.1 24.6 0 37.1-1 6-6.2 10.4-12.2 10.4h-16.5c-3.6 10.1-9 19.4-15.9 27.4l8.2 14.3c3 5.2 1.9 11.9-2.8 15.7-9.5 7.9-20.4 14.2-32.1 18.6-5.7 2.1-12.1-.1-15.1-5.4l-8.2-14.3c-10.4 1.9-21.2 1.9-31.7 0zm-10.5-58.8c38.5 29.6 82.4-14.3 52.8-52.8-38.5-29.7-82.4 14.3-52.8 52.8zM386.3 286.1l33.7 16.8c10.1 5.8 14.5 18.1 10.5 29.1-8.9 24.2-26.4 46.4-42.6 65.8-7.4 8.9-20.2 11.1-30.3 5.3l-29.1-16.8c-16 13.7-34.6 24.6-54.9 31.7v33.6c0 11.6-8.3 21.6-19.7 23.6-24.6 4.2-50.4 4.4-75.9 0-11.5-2-20-11.9-20-23.6V418c-20.3-7.2-38.9-18-54.9-31.7L74 403c-10 5.8-22.9 3.6-30.3-5.3-16.2-19.4-33.3-41.6-42.2-65.7-4-10.9.4-23.2 10.5-29.1l33.3-16.8c-3.9-20.9-3.9-42.4 0-63.4L12 205.8c-10.1-5.8-14.6-18.1-10.5-29 8.9-24.2 26-46.4 42.2-65.8 7.4-8.9 20.2-11.1 30.3-5.3l29.1 16.8c16-13.7 34.6-24.6 54.9-31.7V57.1c0-11.5 8.2-21.5 19.6-23.5 24.6-4.2 50.5-4.4 76-.1 11.5 2 20 11.9 20 23.6v33.6c20.3 7.2 38.9 18 54.9 31.7l29.1-16.8c10-5.8 22.9-3.6 30.3 5.3 16.2 19.4 33.2 41.6 42.1 65.8 4 10.9.1 23.2-10 29.1l-33.7 16.8c3.9 21 3.9 42.5 0 63.5zm-117.6 21.1c59.2-77-28.7-164.9-105.7-105.7-59.2 77 28.7 164.9 105.7 105.7zm243.4 182.7l-8.2 14.3c-3 5.3-9.4 7.5-15.1 5.4-11.8-4.4-22.6-10.7-32.1-18.6-4.6-3.8-5.8-10.5-2.8-15.7l8.2-14.3c-6.9-8-12.3-17.3-15.9-27.4h-16.5c-6 0-11.2-4.3-12.2-10.3-2-12-2.1-24.6 0-37.1 1-6 6.2-10.4 12.2-10.4h16.5c3.6-10.1 9-19.4 15.9-27.4l-8.2-14.3c-3-5.2-1.9-11.9 2.8-15.7 9.5-7.9 20.4-14.2 32.1-18.6 5.7-2.1 12.1.1 15.1 5.4l8.2 14.3c10.5-1.9 21.2-1.9 31.7 0l8.2-14.3c3-5.3 9.4-7.5 15.1-5.4 11.8 4.4 22.6 10.7 32.1 18.6 4.6 3.8 5.8 10.5 2.8 15.7l-8.2 14.3c6.9 8 12.3 17.3 15.9 27.4h16.5c6 0 11.2 4.3 12.2 10.3 2 12 2.1 24.6 0 37.1-1 6-6.2 10.4-12.2 10.4h-16.5c-3.6 10.1-9 19.4-15.9 27.4l8.2 14.3c3 5.2 1.9 11.9-2.8 15.7-9.5 7.9-20.4 14.2-32.1 18.6-5.7 2.1-12.1-.1-15.1-5.4l-8.2-14.3c-10.4 1.9-21.2 1.9-31.7 0zM501.6 431c38.5 29.6 82.4-14.3 52.8-52.8-38.5-29.6-82.4 14.3-52.8 52.8z"></path></symbol><symbol id="light-edit" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><path d="M417.8 315.5l20-20c3.8-3.8 10.2-1.1 10.2 4.2V464c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V112c0-26.5 21.5-48 48-48h292.3c5.3 0 8 6.5 4.2 10.2l-20 20c-1.1 1.1-2.7 1.8-4.2 1.8H48c-8.8 0-16 7.2-16 16v352c0 8.8 7.2 16 16 16h352c8.8 0 16-7.2 16-16V319.7c0-1.6.6-3.1 1.8-4.2zm145.9-191.2L251.2 436.8l-99.9 11.1c-13.4 1.5-24.7-9.8-23.2-23.2l11.1-99.9L451.7 12.3c16.4-16.4 43-16.4 59.4 0l52.6 52.6c16.4 16.4 16.4 43 0 59.4zm-93.6 48.4L403.4 106 169.8 339.5l-8.3 75.1 75.1-8.3 233.5-233.6zm71-85.2l-52.6-52.6c-3.8-3.8-10.2-4-14.1 0L426 83.3l66.7 66.7 48.4-48.4c3.9-3.8 3.9-10.2 0-14.1z"></path></symbol><symbol id="light-chart-bar" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M424 352h16c4.4 0 8-3.6 8-8V104c0-4.4-3.6-8-8-8h-16c-4.4 0-8 3.6-8 8v240c0 4.4 3.6 8 8 8zm-96 0h16c4.4 0 8-3.6 8-8V200c0-4.4-3.6-8-8-8h-16c-4.4 0-8 3.6-8 8v144c0 4.4 3.6 8 8 8zm-192 0h16c4.4 0 8-3.6 8-8v-80c0-4.4-3.6-8-8-8h-16c-4.4 0-8 3.6-8 8v80c0 4.4 3.6 8 8 8zm96 0h16c4.4 0 8-3.6 8-8V136c0-4.4-3.6-8-8-8h-16c-4.4 0-8 3.6-8 8v208c0 4.4 3.6 8 8 8zm272 64H32V72c0-4.42-3.58-8-8-8H8c-4.42 0-8 3.58-8 8v360c0 8.84 7.16 16 16 16h488c4.42 0 8-3.58 8-8v-16c0-4.42-3.58-8-8-8z"></path></symbol><symbol id="light-tachometer-alt-fast" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><path d="M120 320c0 13.26-10.74 24-24 24s-24-10.74-24-24 10.74-24 24-24 24 10.74 24 24zm168-168c13.26 0 24-10.74 24-24s-10.74-24-24-24-24 10.74-24 24 10.74 24 24 24zm-136 8c-13.26 0-24 10.74-24 24s10.74 24 24 24 24-10.74 24-24-10.74-24-24-24zm282.06 11.56c6.88 5.56 7.94 15.64 2.38 22.5l-97.14 120C347.18 324.7 352 337.74 352 352c0 35.35-28.65 64-64 64s-64-28.65-64-64 28.65-64 64-64c9.47 0 18.38 2.18 26.47 5.88l97.09-119.94c5.56-6.88 15.6-7.92 22.5-2.38zM320 352c0-17.67-14.33-32-32-32s-32 14.33-32 32 14.33 32 32 32 32-14.33 32-32zm160-56c-13.26 0-24 10.74-24 24s10.74 24 24 24 24-10.74 24-24-10.74-24-24-24zm96 24c0 52.8-14.25 102.26-39.06 144.8-5.61 9.62-16.3 15.2-27.44 15.2h-443c-11.14 0-21.83-5.58-27.44-15.2C14.25 422.26 0 372.8 0 320 0 160.94 128.94 32 288 32s288 128.94 288 288zm-32 0c0-141.16-114.84-256-256-256S32 178.84 32 320c0 45.26 12 89.75 34.7 128.68l442.8-.68C532 409.75 544 365.26 544 320z"></path></symbol><symbol id="light-exclamation-circle" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M256 40c118.621 0 216 96.075 216 216 0 119.291-96.61 216-216 216-119.244 0-216-96.562-216-216 0-119.203 96.602-216 216-216m0-32C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm-11.49 120h22.979c6.823 0 12.274 5.682 11.99 12.5l-7 168c-.268 6.428-5.556 11.5-11.99 11.5h-8.979c-6.433 0-11.722-5.073-11.99-11.5l-7-168c-.283-6.818 5.167-12.5 11.99-12.5zM256 340c-15.464 0-28 12.536-28 28s12.536 28 28 28 28-12.536 28-28-12.536-28-28-28z"></path></symbol><symbol id="light-lock" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M400 224h-16v-62.5C384 73.1 312.9.3 224.5 0 136-.3 64 71.6 64 160v64H48c-26.5 0-48 21.5-48 48v192c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V272c0-26.5-21.5-48-48-48zM96 160c0-70.6 57.4-128 128-128s128 57.4 128 128v64H96v-64zm304 320H48c-8.8 0-16-7.2-16-16V272c0-8.8 7.2-16 16-16h352c8.8 0 16 7.2 16 16v192c0 8.8-7.2 16-16 16z"></path></symbol><symbol id="light-shopping-cart" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><path d="M551.991 64H129.28l-8.329-44.423C118.822 8.226 108.911 0 97.362 0H12C5.373 0 0 5.373 0 12v8c0 6.627 5.373 12 12 12h78.72l69.927 372.946C150.305 416.314 144 431.42 144 448c0 35.346 28.654 64 64 64s64-28.654 64-64a63.681 63.681 0 00-8.583-32h145.167a63.681 63.681 0 00-8.583 32c0 35.346 28.654 64 64 64 35.346 0 64-28.654 64-64 0-17.993-7.435-34.24-19.388-45.868C506.022 391.891 496.76 384 485.328 384H189.28l-12-64h331.381c11.368 0 21.177-7.976 23.496-19.105l43.331-208C578.592 77.991 567.215 64 551.991 64zM240 448c0 17.645-14.355 32-32 32s-32-14.355-32-32 14.355-32 32-32 32 14.355 32 32zm224 32c-17.645 0-32-14.355-32-32s14.355-32 32-32 32 14.355 32 32-14.355 32-32 32zm38.156-192H171.28l-36-192h406.876l-40 192z"></path></symbol></defs></svg> </footer></article><div class="after-entry"><div class="singlerelated"><div class="headingbig">Popular on WPBeginner <span class="headingorange">Right Now!</span></div><div class="relatedentry"><ul><li><a class="image" href="https://www.wpbeginner.com/beginners-guide/why-you-should-start-building-your-email-list-right-away/" title="Revealed: Why Building an Email List is so Important Today (6 Reasons)"><img width="96" height="96" src="data:image/svg+xml,%3Csvg%20xmlns=&#039;http://www.w3.org/2000/svg&#039;%20width=&#039;96&#039;%20height=&#039;96&#039;%20viewBox=&#039;0%200%2096%2096&#039;%3E%3C/svg%3E" class="relatedthumb wp-post-image perfmatters-lazy" alt="Revealed: Why Building an Email List is so Important Today (6 Reasons)" title="Revealed: Why Building an Email List is so Important Today (6 Reasons)" decoding="async" data-src="https://www.wpbeginner.com/wp-content/uploads/2018/12/emaillistbuilding-96x96.png" data-srcset="https://www.wpbeginner.com/wp-content/uploads/2018/12/emaillistbuilding-96x96.png 96w, https://www.wpbeginner.com/wp-content/uploads/2018/12/emaillistbuilding-150x150.png 150w, https://www.wpbeginner.com/wp-content/uploads/2018/12/emaillistbuilding-72x72.png 72w, https://www.wpbeginner.com/wp-content/uploads/2018/12/emaillistbuilding-180x180.png 180w, https://www.wpbeginner.com/wp-content/uploads/2018/12/emaillistbuilding.png 250w" data-sizes="(max-width: 96px) 100vw, 96px" /><noscript><img width="96" height="96" src="https://www.wpbeginner.com/wp-content/uploads/2018/12/emaillistbuilding-96x96.png" class="relatedthumb wp-post-image" alt="Revealed: Why Building an Email List is so Important Today (6 Reasons)" title="Revealed: Why Building an Email List is so Important Today (6 Reasons)" decoding="async" srcset="https://www.wpbeginner.com/wp-content/uploads/2018/12/emaillistbuilding-96x96.png 96w, https://www.wpbeginner.com/wp-content/uploads/2018/12/emaillistbuilding-150x150.png 150w, https://www.wpbeginner.com/wp-content/uploads/2018/12/emaillistbuilding-72x72.png 72w, https://www.wpbeginner.com/wp-content/uploads/2018/12/emaillistbuilding-180x180.png 180w, https://www.wpbeginner.com/wp-content/uploads/2018/12/emaillistbuilding.png 250w" sizes="(max-width: 96px) 100vw, 96px" /></noscript></a><p class="title"><a href="https://www.wpbeginner.com/beginners-guide/why-you-should-start-building-your-email-list-right-away/" title="Revealed: Why Building an Email List is so Important Today (6 Reasons)">Revealed: Why Building an Email List is so Important Today (6 Reasons)</a></p></li><li><a class="image" href="https://www.wpbeginner.com/wp-tutorials/step-by-step-guide-how-to-start-a-podcast-with-wordpress/" title="How to Start a Podcast (and Make it Successful) in 2024"><img width="96" height="96" src="data:image/svg+xml,%3Csvg%20xmlns=&#039;http://www.w3.org/2000/svg&#039;%20width=&#039;96&#039;%20height=&#039;96&#039;%20viewBox=&#039;0%200%2096%2096&#039;%3E%3C/svg%3E" class="relatedthumb wp-post-image perfmatters-lazy" alt="How to Start a Podcast (and Make it Successful) in 2024" title="How to Start a Podcast (and Make it Successful) in 2024" decoding="async" data-src="https://www.wpbeginner.com/wp-content/uploads/2018/11/how-to-start-a-podcast-and-make-it-successful-thumbnail.png" /><noscript><img width="96" height="96" src="https://www.wpbeginner.com/wp-content/uploads/2018/11/how-to-start-a-podcast-and-make-it-successful-thumbnail.png" class="relatedthumb wp-post-image" alt="How to Start a Podcast (and Make it Successful) in 2024" title="How to Start a Podcast (and Make it Successful) in 2024" decoding="async" /></noscript></a><p class="title"><a href="https://www.wpbeginner.com/wp-tutorials/step-by-step-guide-how-to-start-a-podcast-with-wordpress/" title="How to Start a Podcast (and Make it Successful) in 2024">How to Start a Podcast (and Make it Successful) in 2024</a></p></li><li><a class="image" href="https://www.wpbeginner.com/beginners-guide/checklist-15-things-you-must-do-before-changing-wordpress-themes/" title="13 Things You MUST DO Before Changing WordPress Themes"><img width="96" height="96" src="data:image/svg+xml,%3Csvg%20xmlns=&#039;http://www.w3.org/2000/svg&#039;%20width=&#039;96&#039;%20height=&#039;96&#039;%20viewBox=&#039;0%200%2096%2096&#039;%3E%3C/svg%3E" class="relatedthumb wp-post-image perfmatters-lazy" alt title="checklist-before-changing-wordpress-theme-thumb" decoding="async" data-src="https://www.wpbeginner.com/wp-content/uploads/2011/10/checklist-before-changing-wordpress-theme-thumb-96x96.png" data-srcset="https://www.wpbeginner.com/wp-content/uploads/2011/10/checklist-before-changing-wordpress-theme-thumb-96x96.png 96w, https://www.wpbeginner.com/wp-content/uploads/2011/10/checklist-before-changing-wordpress-theme-thumb-150x150.png 150w, https://www.wpbeginner.com/wp-content/uploads/2011/10/checklist-before-changing-wordpress-theme-thumb-72x72.png 72w, https://www.wpbeginner.com/wp-content/uploads/2011/10/checklist-before-changing-wordpress-theme-thumb-180x180.png 180w, https://www.wpbeginner.com/wp-content/uploads/2011/10/checklist-before-changing-wordpress-theme-thumb.png 250w" data-sizes="(max-width: 96px) 100vw, 96px" /><noscript><img width="96" height="96" src="https://www.wpbeginner.com/wp-content/uploads/2011/10/checklist-before-changing-wordpress-theme-thumb-96x96.png" class="relatedthumb wp-post-image" alt="" title="checklist-before-changing-wordpress-theme-thumb" decoding="async" srcset="https://www.wpbeginner.com/wp-content/uploads/2011/10/checklist-before-changing-wordpress-theme-thumb-96x96.png 96w, https://www.wpbeginner.com/wp-content/uploads/2011/10/checklist-before-changing-wordpress-theme-thumb-150x150.png 150w, https://www.wpbeginner.com/wp-content/uploads/2011/10/checklist-before-changing-wordpress-theme-thumb-72x72.png 72w, https://www.wpbeginner.com/wp-content/uploads/2011/10/checklist-before-changing-wordpress-theme-thumb-180x180.png 180w, https://www.wpbeginner.com/wp-content/uploads/2011/10/checklist-before-changing-wordpress-theme-thumb.png 250w" sizes="(max-width: 96px) 100vw, 96px" /></noscript></a><p class="title"><a href="https://www.wpbeginner.com/beginners-guide/checklist-15-things-you-must-do-before-changing-wordpress-themes/" title="13 Things You MUST DO Before Changing WordPress Themes">13 Things You MUST DO Before Changing WordPress Themes</a></p></li><li><a class="image" href="https://www.wpbeginner.com/beginners-guide/how-to-install-google-analytics-in-wordpress/" title="How to Install Google Analytics in WordPress for Beginners"><img width="96" height="96" src="data:image/svg+xml,%3Csvg%20xmlns=&#039;http://www.w3.org/2000/svg&#039;%20width=&#039;96&#039;%20height=&#039;96&#039;%20viewBox=&#039;0%200%2096%2096&#039;%3E%3C/svg%3E" class="relatedthumb wp-post-image perfmatters-lazy" alt="Google Analytics in WordPress" title="Google Analytics in WordPress" decoding="async" data-src="https://www.wpbeginner.com/wp-content/uploads/2010/04/googleanalyticsthumb-96x96.jpg" data-srcset="https://www.wpbeginner.com/wp-content/uploads/2010/04/googleanalyticsthumb-96x96.jpg 96w, https://www.wpbeginner.com/wp-content/uploads/2010/04/googleanalyticsthumb-150x150.jpg 150w, https://www.wpbeginner.com/wp-content/uploads/2010/04/googleanalyticsthumb-74x74.jpg 74w, https://www.wpbeginner.com/wp-content/uploads/2010/04/googleanalyticsthumb-52x52.jpg 52w, https://www.wpbeginner.com/wp-content/uploads/2010/04/googleanalyticsthumb-72x72.jpg 72w, https://www.wpbeginner.com/wp-content/uploads/2010/04/googleanalyticsthumb-180x180.jpg 180w, https://www.wpbeginner.com/wp-content/uploads/2010/04/googleanalyticsthumb-140x140.jpg 140w, https://www.wpbeginner.com/wp-content/uploads/2010/04/googleanalyticsthumb-100x100.jpg 100w, https://www.wpbeginner.com/wp-content/uploads/2010/04/googleanalyticsthumb-30x30.jpg 30w, https://www.wpbeginner.com/wp-content/uploads/2010/04/googleanalyticsthumb.jpg 250w" data-sizes="(max-width: 96px) 100vw, 96px" /><noscript><img width="96" height="96" src="https://www.wpbeginner.com/wp-content/uploads/2010/04/googleanalyticsthumb-96x96.jpg" class="relatedthumb wp-post-image" alt="Google Analytics in WordPress" title="Google Analytics in WordPress" decoding="async" srcset="https://www.wpbeginner.com/wp-content/uploads/2010/04/googleanalyticsthumb-96x96.jpg 96w, https://www.wpbeginner.com/wp-content/uploads/2010/04/googleanalyticsthumb-150x150.jpg 150w, https://www.wpbeginner.com/wp-content/uploads/2010/04/googleanalyticsthumb-74x74.jpg 74w, https://www.wpbeginner.com/wp-content/uploads/2010/04/googleanalyticsthumb-52x52.jpg 52w, https://www.wpbeginner.com/wp-content/uploads/2010/04/googleanalyticsthumb-72x72.jpg 72w, https://www.wpbeginner.com/wp-content/uploads/2010/04/googleanalyticsthumb-180x180.jpg 180w, https://www.wpbeginner.com/wp-content/uploads/2010/04/googleanalyticsthumb-140x140.jpg 140w, https://www.wpbeginner.com/wp-content/uploads/2010/04/googleanalyticsthumb-100x100.jpg 100w, https://www.wpbeginner.com/wp-content/uploads/2010/04/googleanalyticsthumb-30x30.jpg 30w, https://www.wpbeginner.com/wp-content/uploads/2010/04/googleanalyticsthumb.jpg 250w" sizes="(max-width: 96px) 100vw, 96px" /></noscript></a><p class="title"><a href="https://www.wpbeginner.com/beginners-guide/how-to-install-google-analytics-in-wordpress/" title="How to Install Google Analytics in WordPress for Beginners">How to Install Google Analytics in WordPress for Beginners</a></p></li></ul></div></div><p id="reader-disclosure"><strong>Disclosure:</strong> Our content is reader-supported. This means if you click on some of our links, then we may earn a commission. See <a href="https://www.wpbeginner.com/wpbeginner-disclaimer/" target="_blank" rel="noopener noreferrer" style="color: #555;text-decoration: underline">how WPBeginner is funded</a>, why it matters, and how you can support us. Here&#039;s our <a href="https://www.wpbeginner.com/wpbeginner-editorial-process/" target="_blank" rel="noopener noreferrer" style="color: #555;text-decoration: underline">editorial process</a>.</p><section class="author-box"><img src="data:image/svg+xml,%3Csvg%20xmlns=&#039;http://www.w3.org/2000/svg&#039;%20width=&#039;96&#039;%20height=&#039;96&#039;%20viewBox=&#039;0%200%2096%2096&#039;%3E%3C/svg%3E" width="96" height="96" alt="Editorial Staff" class="avatar avatar-96 wp-user-avatar wp-user-avatar-96 alignnone photo perfmatters-lazy" data-src="https://www.wpbeginner.com/wp-content/uploads/2022/07/wpbeginner-icon-96x96.png" /><noscript><img src="https://www.wpbeginner.com/wp-content/uploads/2022/07/wpbeginner-icon-96x96.png" width="96" height="96" alt="Editorial Staff" class="avatar avatar-96 wp-user-avatar wp-user-avatar-96 alignnone photo" /></noscript><h4 class="author-box-title"><a href="https://www.wpbeginner.com/author/wpbeginner/" class="aboutauthor" rel="author">About the Editorial Staff </a></h4><div class="author-box-content" itemprop="description"><p>Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi with over 16 years of experience in WordPress, Web Hosting, eCommerce, SEO, and Marketing. Started in 2009, WPBeginner is now the largest free WordPress resource site in the industry and is often referred to as the Wikipedia for WordPress.</p> </div></section><div class="sidebartoolkit widget"><div class="sidebartoolkit__icons"><svg width="12" height="12" aria-hidden="true" role="img" focusable="false"><use xlink:href="#regular-server"></use></svg><svg width="12" height="12" aria-hidden="true" role="img" focusable="false"><use xlink:href="#regular-tools"></use></svg><svg width="22" height="22" aria-hidden="true" role="img" focusable="false"><use xlink:href="#brands-wordpress"></use></svg><svg width="12" height="12" aria-hidden="true" role="img" focusable="false"><use xlink:href="#regular-plug"></use></svg><svg width="12" height="12" aria-hidden="true" role="img" focusable="false"><use xlink:href="#regular-browser"></use></svg></div><p class="sidebartoolkit__title">The Ultimate <strong>WordPress Toolkit</strong></p><p><strong>Get FREE access to our toolkit</strong> - a collection of WordPress related products and resources that every professional should have!</p><div class="wp-block-button"><a class="wp-block-button__link large" href="https://app.monstercampaigns.com/c/iyqfvnwed1i5jxbmo47x/" target="_blank" rel="noopener noreferrer">Download Now</a></div></div></div><h2 class="screen-reader-text">Reader Interactions</h2><div class="entry-comments" id="comments"><h3><svg width="24" height="24" aria-hidden="true" role="img" focusable="false"><use xlink:href="#light-comment-lines"></use></svg>670 Comments<a class="reply-button" href="#respond">Leave a Reply</a></h3><ol class="comment-list"> <li class="comment even thread-even depth-1" id="comment-5343529"> <article id="article-comment-5343529"> <header class="comment-header"> <p class="comment-author"> <span class="comment-author-name">Bogdan</span> </p> </header> <div class="comment-content"> <p>It helped me! Thanks a lot!</p> </div> <div class="comment-reply"><a rel='nofollow' class='comment-reply-link' href='https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/comment-page-10/?replytocom=5343529#respond' data-commentid="5343529" data-postid="5484" data-belowelement="article-comment-5343529" data-respondelement="respond" data-replyto="Reply to this review" aria-label='Reply to this review'>Reply<svg width="11" height="11" aria-hidden="true" role="img" focusable="false"><use xlink:href="#regular-level-down"></use></svg></a></div> </article> <ul class="children"> <li class="comment byuser comment-author-jeremycomments odd alt depth-2 staff" id="comment-5344139"> <article id="article-comment-5344139"> <header class="comment-header"> <p class="comment-author"> <span class="comment-author-name">WPBeginner Support</span> </p> </header> <div class="comment-content"> <p>You&#8217;re welcome, glad it was helpful! <img src="data:image/svg+xml,%3Csvg%20xmlns=&#039;http://www.w3.org/2000/svg&#039;%20width=&#039;0&#039;%20height=&#039;0&#039;%20viewBox=&#039;0%200%200%200&#039;%3E%3C/svg%3E" alt=":)" class="wp-smiley perfmatters-lazy" data-src="https://www.wpbeginner.com/wp-content/plugins/classic-smilies/img/icon_smile.gif" /><noscript><img src="https://www.wpbeginner.com/wp-content/plugins/classic-smilies/img/icon_smile.gif" alt=":)" class="wp-smiley" /></noscript></p> </div> <div class="comment-reply"><a rel='nofollow' class='comment-reply-link' href='https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/comment-page-10/?replytocom=5344139#respond' data-commentid="5344139" data-postid="5484" data-belowelement="article-comment-5344139" data-respondelement="respond" data-replyto="Reply to this review" aria-label='Reply to this review'>Reply<svg width="11" height="11" aria-hidden="true" role="img" focusable="false"><use xlink:href="#regular-level-down"></use></svg></a></div><div class="comment-admin-badge"> <p class="comment-badge">Admin</p> </div> </article> </li><!-- #comment-## --> </ul><!-- .children --> </li><!-- #comment-## --> <li class="comment even thread-odd thread-alt depth-1" id="comment-5047251"> <article id="article-comment-5047251"> <header class="comment-header"> <p class="comment-author"> <span class="comment-author-name">Rajender Singh</span> </p> </header> <div class="comment-content"> <p>Thank you very much for this tutorial. I have fixed one of my websites through this tutorial. I have been a reader of your website since 2018 and I was confident that I would find a solution to my problem on Wpbeginner.</p> </div> <div class="comment-reply"><a rel='nofollow' class='comment-reply-link' href='https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/comment-page-10/?replytocom=5047251#respond' data-commentid="5047251" data-postid="5484" data-belowelement="article-comment-5047251" data-respondelement="respond" data-replyto="Reply to this review" aria-label='Reply to this review'>Reply<svg width="11" height="11" aria-hidden="true" role="img" focusable="false"><use xlink:href="#regular-level-down"></use></svg></a></div> </article> <ul class="children"> <li class="comment byuser comment-author-jeremycomments odd alt depth-2 staff" id="comment-5068306"> <article id="article-comment-5068306"> <header class="comment-header"> <p class="comment-author"> <span class="comment-author-name">WPBeginner Support</span> </p> </header> <div class="comment-content"> <p>Glad to hear our guide was helpful! <img src="data:image/svg+xml,%3Csvg%20xmlns=&#039;http://www.w3.org/2000/svg&#039;%20width=&#039;0&#039;%20height=&#039;0&#039;%20viewBox=&#039;0%200%200%200&#039;%3E%3C/svg%3E" alt=":)" class="wp-smiley perfmatters-lazy" data-src="https://www.wpbeginner.com/wp-content/plugins/classic-smilies/img/icon_smile.gif" /><noscript><img src="https://www.wpbeginner.com/wp-content/plugins/classic-smilies/img/icon_smile.gif" alt=":)" class="wp-smiley" /></noscript></p> </div> <div class="comment-reply"><a rel='nofollow' class='comment-reply-link' href='https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/comment-page-10/?replytocom=5068306#respond' data-commentid="5068306" data-postid="5484" data-belowelement="article-comment-5068306" data-respondelement="respond" data-replyto="Reply to this review" aria-label='Reply to this review'>Reply<svg width="11" height="11" aria-hidden="true" role="img" focusable="false"><use xlink:href="#regular-level-down"></use></svg></a></div><div class="comment-admin-badge"> <p class="comment-badge">Admin</p> </div> </article> </li><!-- #comment-## --> </ul><!-- .children --> </li><!-- #comment-## --> <li class="comment even thread-even depth-1" id="comment-4752714"> <article id="article-comment-4752714"> <header class="comment-header"> <p class="comment-author"> <span class="comment-author-name">Kzain</span> </p> </header> <div class="comment-content"> <p>Thanks for a great guide never thought of it this way but are any of the problems related to caching plugins like Lite speed or wp-cache</p> </div> <div class="comment-reply"><a rel='nofollow' class='comment-reply-link' href='https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/comment-page-10/?replytocom=4752714#respond' data-commentid="4752714" data-postid="5484" data-belowelement="article-comment-4752714" data-respondelement="respond" data-replyto="Reply to this review" aria-label='Reply to this review'>Reply<svg width="11" height="11" aria-hidden="true" role="img" focusable="false"><use xlink:href="#regular-level-down"></use></svg></a></div> </article> <ul class="children"> <li class="comment byuser comment-author-jeremycomments odd alt depth-2 staff" id="comment-4764478"> <article id="article-comment-4764478"> <header class="comment-header"> <p class="comment-author"> <span class="comment-author-name">WPBeginner Support</span> </p> </header> <div class="comment-content"> <p>Normally this would not be a caching issue.</p> </div> <div class="comment-reply"><a rel='nofollow' class='comment-reply-link' href='https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/comment-page-10/?replytocom=4764478#respond' data-commentid="4764478" data-postid="5484" data-belowelement="article-comment-4764478" data-respondelement="respond" data-replyto="Reply to this review" aria-label='Reply to this review'>Reply<svg width="11" height="11" aria-hidden="true" role="img" focusable="false"><use xlink:href="#regular-level-down"></use></svg></a></div><div class="comment-admin-badge"> <p class="comment-badge">Admin</p> </div> </article> </li><!-- #comment-## --> </ul><!-- .children --> </li><!-- #comment-## --> <li class="comment even thread-odd thread-alt depth-1" id="comment-4704837"> <article id="article-comment-4704837"> <header class="comment-header"> <p class="comment-author"> <span class="comment-author-name">Mark</span> </p> </header> <div class="comment-content"> <p>Cheers for the article and the great tips!<br /> In my case I simply forgot to create a mysql user. Discovered by logging into mysql and scrolling back through the command line history with the up arrow&#8230;<br /> &#8220;Hmmm something&#8217;s missing here&#8230;.&#8221;.<br /> Up and running in a jiffy!</p> </div> <div class="comment-reply"><a rel='nofollow' class='comment-reply-link' href='https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/comment-page-10/?replytocom=4704837#respond' data-commentid="4704837" data-postid="5484" data-belowelement="article-comment-4704837" data-respondelement="respond" data-replyto="Reply to this review" aria-label='Reply to this review'>Reply<svg width="11" height="11" aria-hidden="true" role="img" focusable="false"><use xlink:href="#regular-level-down"></use></svg></a></div> </article> <ul class="children"> <li class="comment byuser comment-author-jeremycomments odd alt depth-2 staff" id="comment-4711226"> <article id="article-comment-4711226"> <header class="comment-header"> <p class="comment-author"> <span class="comment-author-name">WPBeginner Support</span> </p> </header> <div class="comment-content"> <p>Glad to hear you found and solved the issue <img src="data:image/svg+xml,%3Csvg%20xmlns=&#039;http://www.w3.org/2000/svg&#039;%20width=&#039;0&#039;%20height=&#039;0&#039;%20viewBox=&#039;0%200%200%200&#039;%3E%3C/svg%3E" alt=":)" class="wp-smiley perfmatters-lazy" data-src="https://www.wpbeginner.com/wp-content/plugins/classic-smilies/img/icon_smile.gif" /><noscript><img src="https://www.wpbeginner.com/wp-content/plugins/classic-smilies/img/icon_smile.gif" alt=":)" class="wp-smiley" /></noscript></p> </div> <div class="comment-reply"><a rel='nofollow' class='comment-reply-link' href='https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/comment-page-10/?replytocom=4711226#respond' data-commentid="4711226" data-postid="5484" data-belowelement="article-comment-4711226" data-respondelement="respond" data-replyto="Reply to this review" aria-label='Reply to this review'>Reply<svg width="11" height="11" aria-hidden="true" role="img" focusable="false"><use xlink:href="#regular-level-down"></use></svg></a></div><div class="comment-admin-badge"> <p class="comment-badge">Admin</p> </div> </article> </li><!-- #comment-## --> </ul><!-- .children --> </li><!-- #comment-## --> <li class="comment even thread-even depth-1" id="comment-4430919"> <article id="article-comment-4430919"> <header class="comment-header"> <p class="comment-author"> <span class="comment-author-name">Hajjalah</span> </p> </header> <div class="comment-content"> <p>I used to get this error more often when I was logged into my admin dashboard for a longer period but this article helped me solve the issue. I just updated the WordPress Site URL. Thanks for the useful guide.</p> </div> <div class="comment-reply"><a rel='nofollow' class='comment-reply-link' href='https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/comment-page-10/?replytocom=4430919#respond' data-commentid="4430919" data-postid="5484" data-belowelement="article-comment-4430919" data-respondelement="respond" data-replyto="Reply to this review" aria-label='Reply to this review'>Reply<svg width="11" height="11" aria-hidden="true" role="img" focusable="false"><use xlink:href="#regular-level-down"></use></svg></a></div> </article> <ul class="children"> <li class="comment byuser comment-author-jeremycomments odd alt depth-2 staff" id="comment-4462080"> <article id="article-comment-4462080"> <header class="comment-header"> <p class="comment-author"> <span class="comment-author-name">WPBeginner Support</span> </p> </header> <div class="comment-content"> <p>You&#8217;re welcome, glad our guide was helpful!</p> </div> <div class="comment-reply"><a rel='nofollow' class='comment-reply-link' href='https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/comment-page-10/?replytocom=4462080#respond' data-commentid="4462080" data-postid="5484" data-belowelement="article-comment-4462080" data-respondelement="respond" data-replyto="Reply to this review" aria-label='Reply to this review'>Reply<svg width="11" height="11" aria-hidden="true" role="img" focusable="false"><use xlink:href="#regular-level-down"></use></svg></a></div><div class="comment-admin-badge"> <p class="comment-badge">Admin</p> </div> </article> </li><!-- #comment-## --> </ul><!-- .children --> </li><!-- #comment-## --> <li class="comment even thread-odd thread-alt depth-1" id="comment-4095213"> <article id="article-comment-4095213"> <header class="comment-header"> <p class="comment-author"> <span class="comment-author-name">Dennis Muthomi</span> </p> </header> <div class="comment-content"> <p>I actually encountered this database connection error just recently when working on a staged WordPress site before going live.<br /> I had just moved a WordPress site from local to a vps. The video tutorial at timestamp 2:53; helped me solve the error <img src="data:image/svg+xml,%3Csvg%20xmlns=&#039;http://www.w3.org/2000/svg&#039;%20width=&#039;0&#039;%20height=&#039;0&#039;%20viewBox=&#039;0%200%200%200&#039;%3E%3C/svg%3E" alt=":-)" class="wp-smiley perfmatters-lazy" data-src="https://www.wpbeginner.com/wp-content/plugins/classic-smilies/img/icon_smile.gif" /><noscript><img src="https://www.wpbeginner.com/wp-content/plugins/classic-smilies/img/icon_smile.gif" alt=":-)" class="wp-smiley" /></noscript></p> </div> <div class="comment-reply"><a rel='nofollow' class='comment-reply-link' href='https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/comment-page-10/?replytocom=4095213#respond' data-commentid="4095213" data-postid="5484" data-belowelement="article-comment-4095213" data-respondelement="respond" data-replyto="Reply to this review" aria-label='Reply to this review'>Reply<svg width="11" height="11" aria-hidden="true" role="img" focusable="false"><use xlink:href="#regular-level-down"></use></svg></a></div> </article> <ul class="children"> <li class="comment byuser comment-author-jeremycomments odd alt depth-2 staff" id="comment-4104240"> <article id="article-comment-4104240"> <header class="comment-header"> <p class="comment-author"> <span class="comment-author-name">WPBeginner Support</span> </p> </header> <div class="comment-content"> <p>Glad our guide was able to help you <img src="data:image/svg+xml,%3Csvg%20xmlns=&#039;http://www.w3.org/2000/svg&#039;%20width=&#039;0&#039;%20height=&#039;0&#039;%20viewBox=&#039;0%200%200%200&#039;%3E%3C/svg%3E" alt=":)" class="wp-smiley perfmatters-lazy" data-src="https://www.wpbeginner.com/wp-content/plugins/classic-smilies/img/icon_smile.gif" /><noscript><img src="https://www.wpbeginner.com/wp-content/plugins/classic-smilies/img/icon_smile.gif" alt=":)" class="wp-smiley" /></noscript></p> </div> <div class="comment-reply"><a rel='nofollow' class='comment-reply-link' href='https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/comment-page-10/?replytocom=4104240#respond' data-commentid="4104240" data-postid="5484" data-belowelement="article-comment-4104240" data-respondelement="respond" data-replyto="Reply to this review" aria-label='Reply to this review'>Reply<svg width="11" height="11" aria-hidden="true" role="img" focusable="false"><use xlink:href="#regular-level-down"></use></svg></a></div><div class="comment-admin-badge"> <p class="comment-badge">Admin</p> </div> </article> </li><!-- #comment-## --> </ul><!-- .children --> </li><!-- #comment-## --> <li class="comment even thread-even depth-1" id="comment-3658975"> <article id="article-comment-3658975"> <header class="comment-header"> <p class="comment-author"> <span class="comment-author-name">Jiří Vaněk</span> </p> </header> <div class="comment-content"> <p>May I ask what the problem is, if I migrate the database to a new one, edit wp-config.php for the new connection, but wordpress does not connect? In the end, I had to delete the old wp-config and create new ones from the installation package. The only thing I found out was that the key stored in wp-config is probably a problem. Am I encrypting somehow connected to the DB and does it have to be removed from the wp-config file during the migration?</p> </div> <div class="comment-reply"><a rel='nofollow' class='comment-reply-link' href='https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/comment-page-10/?replytocom=3658975#respond' data-commentid="3658975" data-postid="5484" data-belowelement="article-comment-3658975" data-respondelement="respond" data-replyto="Reply to this review" aria-label='Reply to this review'>Reply<svg width="11" height="11" aria-hidden="true" role="img" focusable="false"><use xlink:href="#regular-level-down"></use></svg></a></div> </article> <ul class="children"> <li class="comment byuser comment-author-jeremycomments odd alt depth-2 staff" id="comment-3675302"> <article id="article-comment-3675302"> <header class="comment-header"> <p class="comment-author"> <span class="comment-author-name">WPBeginner Support</span> </p> </header> <div class="comment-content"> <p>You would want to ensure you have a user on that new database with the correct information that you have in your wp-config for the most common cause for that issue.</p> </div> <div class="comment-reply"><a rel='nofollow' class='comment-reply-link' href='https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/comment-page-10/?replytocom=3675302#respond' data-commentid="3675302" data-postid="5484" data-belowelement="article-comment-3675302" data-respondelement="respond" data-replyto="Reply to this review" aria-label='Reply to this review'>Reply<svg width="11" height="11" aria-hidden="true" role="img" focusable="false"><use xlink:href="#regular-level-down"></use></svg></a></div><div class="comment-admin-badge"> <p class="comment-badge">Admin</p> </div> </article> </li><!-- #comment-## --> </ul><!-- .children --> </li><!-- #comment-## --> <li class="comment even thread-odd thread-alt depth-1" id="comment-3405959"> <article id="article-comment-3405959"> <header class="comment-header"> <p class="comment-author"> <span class="comment-author-name">Raquel Lynn</span> </p> </header> <div class="comment-content"> <p>Thank you!!! Your YouTube video worked perfectly, I repaired my site : )</p> </div> <div class="comment-reply"><a rel='nofollow' class='comment-reply-link' href='https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/comment-page-10/?replytocom=3405959#respond' data-commentid="3405959" data-postid="5484" data-belowelement="article-comment-3405959" data-respondelement="respond" data-replyto="Reply to this review" aria-label='Reply to this review'>Reply<svg width="11" height="11" aria-hidden="true" role="img" focusable="false"><use xlink:href="#regular-level-down"></use></svg></a></div> </article> <ul class="children"> <li class="comment byuser comment-author-jeremycomments odd alt depth-2 staff" id="comment-3408080"> <article id="article-comment-3408080"> <header class="comment-header"> <p class="comment-author"> <span class="comment-author-name">WPBeginner Support</span> </p> </header> <div class="comment-content"> <p>Great to hear! <img src="data:image/svg+xml,%3Csvg%20xmlns=&#039;http://www.w3.org/2000/svg&#039;%20width=&#039;0&#039;%20height=&#039;0&#039;%20viewBox=&#039;0%200%200%200&#039;%3E%3C/svg%3E" alt=":)" class="wp-smiley perfmatters-lazy" data-src="https://www.wpbeginner.com/wp-content/plugins/classic-smilies/img/icon_smile.gif" /><noscript><img src="https://www.wpbeginner.com/wp-content/plugins/classic-smilies/img/icon_smile.gif" alt=":)" class="wp-smiley" /></noscript></p> </div> <div class="comment-reply"><a rel='nofollow' class='comment-reply-link' href='https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/comment-page-10/?replytocom=3408080#respond' data-commentid="3408080" data-postid="5484" data-belowelement="article-comment-3408080" data-respondelement="respond" data-replyto="Reply to this review" aria-label='Reply to this review'>Reply<svg width="11" height="11" aria-hidden="true" role="img" focusable="false"><use xlink:href="#regular-level-down"></use></svg></a></div><div class="comment-admin-badge"> <p class="comment-badge">Admin</p> </div> </article> </li><!-- #comment-## --> </ul><!-- .children --> </li><!-- #comment-## --> <li class="comment even thread-even depth-1" id="comment-2918276"> <article id="article-comment-2918276"> <header class="comment-header"> <p class="comment-author"> <span class="comment-author-name">Anoop</span> </p> </header> <div class="comment-content"> <p>When i am importing demo Error establishing a database connection message is showing</p> </div> <div class="comment-reply"><a rel='nofollow' class='comment-reply-link' href='https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/comment-page-10/?replytocom=2918276#respond' data-commentid="2918276" data-postid="5484" data-belowelement="article-comment-2918276" data-respondelement="respond" data-replyto="Reply to this review" aria-label='Reply to this review'>Reply<svg width="11" height="11" aria-hidden="true" role="img" focusable="false"><use xlink:href="#regular-level-down"></use></svg></a></div> </article> <ul class="children"> <li class="comment byuser comment-author-jeremycomments odd alt depth-2 staff" id="comment-2919386"> <article id="article-comment-2919386"> <header class="comment-header"> <p class="comment-author"> <span class="comment-author-name">WPBeginner Support</span> </p> </header> <div class="comment-content"> <p>The steps in this guide should still be able to assist you and we would recommend reaching out to the support for the demo you are importing and they can look into what could be the root of the problem you are running into.</p> </div> <div class="comment-reply"><a rel='nofollow' class='comment-reply-link' href='https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/comment-page-10/?replytocom=2919386#respond' data-commentid="2919386" data-postid="5484" data-belowelement="article-comment-2919386" data-respondelement="respond" data-replyto="Reply to this review" aria-label='Reply to this review'>Reply<svg width="11" height="11" aria-hidden="true" role="img" focusable="false"><use xlink:href="#regular-level-down"></use></svg></a></div><div class="comment-admin-badge"> <p class="comment-badge">Admin</p> </div> </article> </li><!-- #comment-## --> </ul><!-- .children --> </li><!-- #comment-## --> <li class="comment even thread-odd thread-alt depth-1" id="comment-2879870"> <article id="article-comment-2879870"> <header class="comment-header"> <p class="comment-author"> <span class="comment-author-name">Eddy</span> </p> </header> <div class="comment-content"> <p>Great video, great tutorial, excellent presentation. thanks a lot.</p> </div> <div class="comment-reply"><a rel='nofollow' class='comment-reply-link' href='https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/comment-page-10/?replytocom=2879870#respond' data-commentid="2879870" data-postid="5484" data-belowelement="article-comment-2879870" data-respondelement="respond" data-replyto="Reply to this review" aria-label='Reply to this review'>Reply<svg width="11" height="11" aria-hidden="true" role="img" focusable="false"><use xlink:href="#regular-level-down"></use></svg></a></div> </article> <ul class="children"> <li class="comment byuser comment-author-jeremycomments odd alt depth-2 staff" id="comment-2881962"> <article id="article-comment-2881962"> <header class="comment-header"> <p class="comment-author"> <span class="comment-author-name">WPBeginner Support</span> </p> </header> <div class="comment-content"> <p>You&#8217;re welcome, glad you liked our content!</p> </div> <div class="comment-reply"><a rel='nofollow' class='comment-reply-link' href='https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/comment-page-10/?replytocom=2881962#respond' data-commentid="2881962" data-postid="5484" data-belowelement="article-comment-2881962" data-respondelement="respond" data-replyto="Reply to this review" aria-label='Reply to this review'>Reply<svg width="11" height="11" aria-hidden="true" role="img" focusable="false"><use xlink:href="#regular-level-down"></use></svg></a></div><div class="comment-admin-badge"> <p class="comment-badge">Admin</p> </div> </article> </li><!-- #comment-## --> </ul><!-- .children --> </li><!-- #comment-## --> <li class="comment even thread-even depth-1" id="comment-2565104"> <article id="article-comment-2565104"> <header class="comment-header"> <p class="comment-author"> <span class="comment-author-name">Henrik R.</span> </p> </header> <div class="comment-content"> <p>I need to change the password for the MySQL database for security reasons.<br /> Isn&#8217;t there a way to login to the WP dashboard and tell WP about the new password, instead of having to change the wp-config.php file?</p> </div> <div class="comment-reply"><a rel='nofollow' class='comment-reply-link' href='https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/comment-page-10/?replytocom=2565104#respond' data-commentid="2565104" data-postid="5484" data-belowelement="article-comment-2565104" data-respondelement="respond" data-replyto="Reply to this review" aria-label='Reply to this review'>Reply<svg width="11" height="11" aria-hidden="true" role="img" focusable="false"><use xlink:href="#regular-level-down"></use></svg></a></div> </article> <ul class="children"> <li class="comment byuser comment-author-jeremycomments odd alt depth-2 staff" id="comment-2576654"> <article id="article-comment-2576654"> <header class="comment-header"> <p class="comment-author"> <span class="comment-author-name">WPBeginner Support</span> </p> </header> <div class="comment-content"> <p>There is not a simple alternative we would recommend at the moment.</p> </div> <div class="comment-reply"><a rel='nofollow' class='comment-reply-link' href='https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/comment-page-10/?replytocom=2576654#respond' data-commentid="2576654" data-postid="5484" data-belowelement="article-comment-2576654" data-respondelement="respond" data-replyto="Reply to this review" aria-label='Reply to this review'>Reply<svg width="11" height="11" aria-hidden="true" role="img" focusable="false"><use xlink:href="#regular-level-down"></use></svg></a></div><div class="comment-admin-badge"> <p class="comment-badge">Admin</p> </div> </article> </li><!-- #comment-## --> </ul><!-- .children --> </li><!-- #comment-## --> <li class="comment even thread-odd thread-alt depth-1" id="comment-1931443"> <article id="article-comment-1931443"> <header class="comment-header"> <p class="comment-author"> <span class="comment-author-name">Nwabufor John</span> </p> </header> <div class="comment-content"> <p>I changed my WordPress database username and password would it affect my websites SEO?</p> </div> <div class="comment-reply"><a rel='nofollow' class='comment-reply-link' href='https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/comment-page-10/?replytocom=1931443#respond' data-commentid="1931443" data-postid="5484" data-belowelement="article-comment-1931443" data-respondelement="respond" data-replyto="Reply to this review" aria-label='Reply to this review'>Reply<svg width="11" height="11" aria-hidden="true" role="img" focusable="false"><use xlink:href="#regular-level-down"></use></svg></a></div> </article> <ul class="children"> <li class="comment byuser comment-author-jeremycomments odd alt depth-2 staff" id="comment-1931664"> <article id="article-comment-1931664"> <header class="comment-header"> <p class="comment-author"> <span class="comment-author-name">WPBeginner Support</span> </p> </header> <div class="comment-content"> <p>No, that should not affect your site&#8217;s SEO</p> </div> <div class="comment-reply"><a rel='nofollow' class='comment-reply-link' href='https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/comment-page-10/?replytocom=1931664#respond' data-commentid="1931664" data-postid="5484" data-belowelement="article-comment-1931664" data-respondelement="respond" data-replyto="Reply to this review" aria-label='Reply to this review'>Reply<svg width="11" height="11" aria-hidden="true" role="img" focusable="false"><use xlink:href="#regular-level-down"></use></svg></a></div><div class="comment-admin-badge"> <p class="comment-badge">Admin</p> </div> </article> <ul class="children"> <li class="comment even depth-3" id="comment-1931886"> <article id="article-comment-1931886"> <header class="comment-header"> <p class="comment-author"> <span class="comment-author-name">Nwabufor John</span> </p> </header> <div class="comment-content"> <p>Thank you, I was scared when it happened</p> </div> <div class="comment-reply"><a rel='nofollow' class='comment-reply-link' href='https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/comment-page-10/?replytocom=1931886#respond' data-commentid="1931886" data-postid="5484" data-belowelement="article-comment-1931886" data-respondelement="respond" data-replyto="Reply to this review" aria-label='Reply to this review'>Reply<svg width="11" height="11" aria-hidden="true" role="img" focusable="false"><use xlink:href="#regular-level-down"></use></svg></a></div> </article> </li><!-- #comment-## --> </ul><!-- .children --> </li><!-- #comment-## --> </ul><!-- .children --> </li><!-- #comment-## --> <li class="comment odd alt thread-even depth-1" id="comment-1344860"> <article id="article-comment-1344860"> <header class="comment-header"> <p class="comment-author"> <span class="comment-author-name">varun kamath</span> </p> </header> <div class="comment-content"> <p>Thank you so much</p> </div> <div class="comment-reply"><a rel='nofollow' class='comment-reply-link' href='https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/comment-page-10/?replytocom=1344860#respond' data-commentid="1344860" data-postid="5484" data-belowelement="article-comment-1344860" data-respondelement="respond" data-replyto="Reply to this review" aria-label='Reply to this review'>Reply<svg width="11" height="11" aria-hidden="true" role="img" focusable="false"><use xlink:href="#regular-level-down"></use></svg></a></div> </article> <ul class="children"> <li class="comment byuser comment-author-jeremycomments even depth-2 staff" id="comment-1347406"> <article id="article-comment-1347406"> <header class="comment-header"> <p class="comment-author"> <span class="comment-author-name">WPBeginner Support</span> </p> </header> <div class="comment-content"> <p>Glad our guide was helpful <img src="data:image/svg+xml,%3Csvg%20xmlns=&#039;http://www.w3.org/2000/svg&#039;%20width=&#039;0&#039;%20height=&#039;0&#039;%20viewBox=&#039;0%200%200%200&#039;%3E%3C/svg%3E" alt=":)" class="wp-smiley perfmatters-lazy" data-src="https://www.wpbeginner.com/wp-content/plugins/classic-smilies/img/icon_smile.gif" /><noscript><img src="https://www.wpbeginner.com/wp-content/plugins/classic-smilies/img/icon_smile.gif" alt=":)" class="wp-smiley" /></noscript></p> </div> <div class="comment-reply"><a rel='nofollow' class='comment-reply-link' href='https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/comment-page-10/?replytocom=1347406#respond' data-commentid="1347406" data-postid="5484" data-belowelement="article-comment-1347406" data-respondelement="respond" data-replyto="Reply to this review" aria-label='Reply to this review'>Reply<svg width="11" height="11" aria-hidden="true" role="img" focusable="false"><use xlink:href="#regular-level-down"></use></svg></a></div><div class="comment-admin-badge"> <p class="comment-badge">Admin</p> </div> </article> </li><!-- #comment-## --> </ul><!-- .children --> </li><!-- #comment-## --> <li class="comment odd alt thread-odd thread-alt depth-1" id="comment-1224832"> <article id="article-comment-1224832"> <header class="comment-header"> <p class="comment-author"> <span class="comment-author-name">LN</span> </p> </header> <div class="comment-content"> <p>First I would like to say thanks for this guide!<br /> I am having an issue “Error establishing a database connection“ I have checked the wp-config.php and all the database information is correct. I wanted to try step 4 in this guide but I don’t really understand how. I logged in to phpMyAdmin, but not sure what the next step is. Do you have a video for that? I am not a developer just a new WP beginner.</p> </div> <div class="comment-reply"><a rel='nofollow' class='comment-reply-link' href='https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/comment-page-10/?replytocom=1224832#respond' data-commentid="1224832" data-postid="5484" data-belowelement="article-comment-1224832" data-respondelement="respond" data-replyto="Reply to this review" aria-label='Reply to this review'>Reply<svg width="11" height="11" aria-hidden="true" role="img" focusable="false"><use xlink:href="#regular-level-down"></use></svg></a></div> </article> <ul class="children"> <li class="comment byuser comment-author-jeremycomments even depth-2 staff" id="comment-1226882"> <article id="article-comment-1226882"> <header class="comment-header"> <p class="comment-author"> <span class="comment-author-name">WPBeginner Support</span> </p> </header> <div class="comment-content"> <p>You would want to go to your hosting provider&#8217;s dashboard or reach out to your hosting provider and they should be able to assist.</p> </div> <div class="comment-reply"><a rel='nofollow' class='comment-reply-link' href='https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/comment-page-10/?replytocom=1226882#respond' data-commentid="1226882" data-postid="5484" data-belowelement="article-comment-1226882" data-respondelement="respond" data-replyto="Reply to this review" aria-label='Reply to this review'>Reply<svg width="11" height="11" aria-hidden="true" role="img" focusable="false"><use xlink:href="#regular-level-down"></use></svg></a></div><div class="comment-admin-badge"> <p class="comment-badge">Admin</p> </div> </article> </li><!-- #comment-## --> </ul><!-- .children --> </li><!-- #comment-## --> <li class="comment odd alt thread-even depth-1" id="comment-1189874"> <article id="article-comment-1189874"> <header class="comment-header"> <p class="comment-author"> <span class="comment-author-name">IK</span> </p> </header> <div class="comment-content"> <p>Thanks for this wonderful article. it has really helped me</p> </div> <div class="comment-reply"><a rel='nofollow' class='comment-reply-link' href='https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/comment-page-10/?replytocom=1189874#respond' data-commentid="1189874" data-postid="5484" data-belowelement="article-comment-1189874" data-respondelement="respond" data-replyto="Reply to this review" aria-label='Reply to this review'>Reply<svg width="11" height="11" aria-hidden="true" role="img" focusable="false"><use xlink:href="#regular-level-down"></use></svg></a></div> </article> <ul class="children"> <li class="comment byuser comment-author-jeremycomments even depth-2 staff" id="comment-1190602"> <article id="article-comment-1190602"> <header class="comment-header"> <p class="comment-author"> <span class="comment-author-name">WPBeginner Support</span> </p> </header> <div class="comment-content"> <p>Glad our guide was helpful <img src="data:image/svg+xml,%3Csvg%20xmlns=&#039;http://www.w3.org/2000/svg&#039;%20width=&#039;0&#039;%20height=&#039;0&#039;%20viewBox=&#039;0%200%200%200&#039;%3E%3C/svg%3E" alt=":)" class="wp-smiley perfmatters-lazy" data-src="https://www.wpbeginner.com/wp-content/plugins/classic-smilies/img/icon_smile.gif" /><noscript><img src="https://www.wpbeginner.com/wp-content/plugins/classic-smilies/img/icon_smile.gif" alt=":)" class="wp-smiley" /></noscript></p> </div> <div class="comment-reply"><a rel='nofollow' class='comment-reply-link' href='https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/comment-page-10/?replytocom=1190602#respond' data-commentid="1190602" data-postid="5484" data-belowelement="article-comment-1190602" data-respondelement="respond" data-replyto="Reply to this review" aria-label='Reply to this review'>Reply<svg width="11" height="11" aria-hidden="true" role="img" focusable="false"><use xlink:href="#regular-level-down"></use></svg></a></div><div class="comment-admin-badge"> <p class="comment-badge">Admin</p> </div> </article> </li><!-- #comment-## --> </ul><!-- .children --> </li><!-- #comment-## --> <li class="comment odd alt thread-odd thread-alt depth-1" id="comment-1152794"> <article id="article-comment-1152794"> <header class="comment-header"> <p class="comment-author"> <span class="comment-author-name">Daniel</span> </p> </header> <div class="comment-content"> <p>I almost have given up after having one issue after the other, till i read this. I had this feeling that &#8220;this is it&#8221; this is the solution I have been looking for. tried it and it worked perfectly, thanks a lot.</p> </div> <div class="comment-reply"><a rel='nofollow' class='comment-reply-link' href='https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/comment-page-10/?replytocom=1152794#respond' data-commentid="1152794" data-postid="5484" data-belowelement="article-comment-1152794" data-respondelement="respond" data-replyto="Reply to this review" aria-label='Reply to this review'>Reply<svg width="11" height="11" aria-hidden="true" role="img" focusable="false"><use xlink:href="#regular-level-down"></use></svg></a></div> </article> <ul class="children"> <li class="comment byuser comment-author-jeremycomments even depth-2 staff" id="comment-1153000"> <article id="article-comment-1153000"> <header class="comment-header"> <p class="comment-author"> <span class="comment-author-name">WPBeginner Support</span> </p> </header> <div class="comment-content"> <p>Glad our guide was helpful <img src="data:image/svg+xml,%3Csvg%20xmlns=&#039;http://www.w3.org/2000/svg&#039;%20width=&#039;0&#039;%20height=&#039;0&#039;%20viewBox=&#039;0%200%200%200&#039;%3E%3C/svg%3E" alt=":)" class="wp-smiley perfmatters-lazy" data-src="https://www.wpbeginner.com/wp-content/plugins/classic-smilies/img/icon_smile.gif" /><noscript><img src="https://www.wpbeginner.com/wp-content/plugins/classic-smilies/img/icon_smile.gif" alt=":)" class="wp-smiley" /></noscript></p> </div> <div class="comment-reply"><a rel='nofollow' class='comment-reply-link' href='https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/comment-page-10/?replytocom=1153000#respond' data-commentid="1153000" data-postid="5484" data-belowelement="article-comment-1153000" data-respondelement="respond" data-replyto="Reply to this review" aria-label='Reply to this review'>Reply<svg width="11" height="11" aria-hidden="true" role="img" focusable="false"><use xlink:href="#regular-level-down"></use></svg></a></div><div class="comment-admin-badge"> <p class="comment-badge">Admin</p> </div> </article> </li><!-- #comment-## --> </ul><!-- .children --> </li><!-- #comment-## --> <li class="comment odd alt thread-even depth-1" id="comment-1118528"> <article id="article-comment-1118528"> <header class="comment-header"> <p class="comment-author"> <span class="comment-author-name">Paulo</span> </p> </header> <div class="comment-content"> <p>In my case, as I use digital ocean, I had to restart the DROPLET</p> </div> <div class="comment-reply"><a rel='nofollow' class='comment-reply-link' href='https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/comment-page-10/?replytocom=1118528#respond' data-commentid="1118528" data-postid="5484" data-belowelement="article-comment-1118528" data-respondelement="respond" data-replyto="Reply to this review" aria-label='Reply to this review'>Reply<svg width="11" height="11" aria-hidden="true" role="img" focusable="false"><use xlink:href="#regular-level-down"></use></svg></a></div> </article> <ul class="children"> <li class="comment byuser comment-author-jeremycomments even depth-2 staff" id="comment-1121171"> <article id="article-comment-1121171"> <header class="comment-header"> <p class="comment-author"> <span class="comment-author-name">WPBeginner Support</span> </p> </header> <div class="comment-content"> <p>Thanks for sharing what worked for you <img src="data:image/svg+xml,%3Csvg%20xmlns=&#039;http://www.w3.org/2000/svg&#039;%20width=&#039;0&#039;%20height=&#039;0&#039;%20viewBox=&#039;0%200%200%200&#039;%3E%3C/svg%3E" alt=":)" class="wp-smiley perfmatters-lazy" data-src="https://www.wpbeginner.com/wp-content/plugins/classic-smilies/img/icon_smile.gif" /><noscript><img src="https://www.wpbeginner.com/wp-content/plugins/classic-smilies/img/icon_smile.gif" alt=":)" class="wp-smiley" /></noscript></p> </div> <div class="comment-reply"><a rel='nofollow' class='comment-reply-link' href='https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/comment-page-10/?replytocom=1121171#respond' data-commentid="1121171" data-postid="5484" data-belowelement="article-comment-1121171" data-respondelement="respond" data-replyto="Reply to this review" aria-label='Reply to this review'>Reply<svg width="11" height="11" aria-hidden="true" role="img" focusable="false"><use xlink:href="#regular-level-down"></use></svg></a></div><div class="comment-admin-badge"> <p class="comment-badge">Admin</p> </div> </article> </li><!-- #comment-## --> </ul><!-- .children --> </li><!-- #comment-## --> <li class="comment odd alt thread-odd thread-alt depth-1" id="comment-1107946"> <article id="article-comment-1107946"> <header class="comment-header"> <p class="comment-author"> <span class="comment-author-name">Hrutik vijay kumthekar</span> </p> </header> <div class="comment-content"> <p>I&#8217;m getting this error when entered the URL of my site: </p> <p>There has been a critical error on your website.</p> </div> <div class="comment-reply"><a rel='nofollow' class='comment-reply-link' href='https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/comment-page-10/?replytocom=1107946#respond' data-commentid="1107946" data-postid="5484" data-belowelement="article-comment-1107946" data-respondelement="respond" data-replyto="Reply to this review" aria-label='Reply to this review'>Reply<svg width="11" height="11" aria-hidden="true" role="img" focusable="false"><use xlink:href="#regular-level-down"></use></svg></a></div> </article> <ul class="children"> <li class="comment byuser comment-author-jeremycomments even depth-2 staff" id="comment-1121140"> <article id="article-comment-1121140"> <header class="comment-header"> <p class="comment-author"> <span class="comment-author-name">WPBeginner Support</span> </p> </header> <div class="comment-content"> <p>For that issue, you would want to take a look at our article below:</p> <p><a href="https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-wordpress-white-screen-of-death/" rel="ugc">https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-wordpress-white-screen-of-death/</a></p> </div> <div class="comment-reply"><a rel='nofollow' class='comment-reply-link' href='https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/comment-page-10/?replytocom=1121140#respond' data-commentid="1121140" data-postid="5484" data-belowelement="article-comment-1121140" data-respondelement="respond" data-replyto="Reply to this review" aria-label='Reply to this review'>Reply<svg width="11" height="11" aria-hidden="true" role="img" focusable="false"><use xlink:href="#regular-level-down"></use></svg></a></div><div class="comment-admin-badge"> <p class="comment-badge">Admin</p> </div> </article> </li><!-- #comment-## --> </ul><!-- .children --> </li><!-- #comment-## --> <li class="comment odd alt thread-even depth-1" id="comment-1106872"> <article id="article-comment-1106872"> <header class="comment-header"> <p class="comment-author"> <span class="comment-author-name">Arunya</span> </p> </header> <div class="comment-content"> <p>Thank you very much This Article really helpful</p> </div> <div class="comment-reply"><a rel='nofollow' class='comment-reply-link' href='https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/comment-page-10/?replytocom=1106872#respond' data-commentid="1106872" data-postid="5484" data-belowelement="article-comment-1106872" data-respondelement="respond" data-replyto="Reply to this review" aria-label='Reply to this review'>Reply<svg width="11" height="11" aria-hidden="true" role="img" focusable="false"><use xlink:href="#regular-level-down"></use></svg></a></div> </article> <ul class="children"> <li class="comment byuser comment-author-jeremycomments even depth-2 staff" id="comment-1121083"> <article id="article-comment-1121083"> <header class="comment-header"> <p class="comment-author"> <span class="comment-author-name">WPBeginner Support</span> </p> </header> <div class="comment-content"> <p>Glad you found our guide helpful <img src="data:image/svg+xml,%3Csvg%20xmlns=&#039;http://www.w3.org/2000/svg&#039;%20width=&#039;0&#039;%20height=&#039;0&#039;%20viewBox=&#039;0%200%200%200&#039;%3E%3C/svg%3E" alt=":)" class="wp-smiley perfmatters-lazy" data-src="https://www.wpbeginner.com/wp-content/plugins/classic-smilies/img/icon_smile.gif" /><noscript><img src="https://www.wpbeginner.com/wp-content/plugins/classic-smilies/img/icon_smile.gif" alt=":)" class="wp-smiley" /></noscript></p> </div> <div class="comment-reply"><a rel='nofollow' class='comment-reply-link' href='https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/comment-page-10/?replytocom=1121083#respond' data-commentid="1121083" data-postid="5484" data-belowelement="article-comment-1121083" data-respondelement="respond" data-replyto="Reply to this review" aria-label='Reply to this review'>Reply<svg width="11" height="11" aria-hidden="true" role="img" focusable="false"><use xlink:href="#regular-level-down"></use></svg></a></div><div class="comment-admin-badge"> <p class="comment-badge">Admin</p> </div> </article> </li><!-- #comment-## --> </ul><!-- .children --> </li><!-- #comment-## --> <li class="comment odd alt thread-odd thread-alt depth-1" id="comment-1075366"> <article id="article-comment-1075366"> <header class="comment-header"> <p class="comment-author"> <span class="comment-author-name">Sal</span> </p> </header> <div class="comment-content"> <p>running out of space has done this to me a few times!</p> </div> <div class="comment-reply"><a rel='nofollow' class='comment-reply-link' href='https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/comment-page-10/?replytocom=1075366#respond' data-commentid="1075366" data-postid="5484" data-belowelement="article-comment-1075366" data-respondelement="respond" data-replyto="Reply to this review" aria-label='Reply to this review'>Reply<svg width="11" height="11" aria-hidden="true" role="img" focusable="false"><use xlink:href="#regular-level-down"></use></svg></a></div> </article> <ul class="children"> <li class="comment byuser comment-author-jeremycomments even depth-2 staff" id="comment-1076886"> <article id="article-comment-1076886"> <header class="comment-header"> <p class="comment-author"> <span class="comment-author-name">WPBeginner Support</span> </p> </header> <div class="comment-content"> <p>Thanks for sharing that should someone else run into this issue <img src="data:image/svg+xml,%3Csvg%20xmlns=&#039;http://www.w3.org/2000/svg&#039;%20width=&#039;0&#039;%20height=&#039;0&#039;%20viewBox=&#039;0%200%200%200&#039;%3E%3C/svg%3E" alt=":)" class="wp-smiley perfmatters-lazy" data-src="https://www.wpbeginner.com/wp-content/plugins/classic-smilies/img/icon_smile.gif" /><noscript><img src="https://www.wpbeginner.com/wp-content/plugins/classic-smilies/img/icon_smile.gif" alt=":)" class="wp-smiley" /></noscript></p> </div> <div class="comment-reply"><a rel='nofollow' class='comment-reply-link' href='https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/comment-page-10/?replytocom=1076886#respond' data-commentid="1076886" data-postid="5484" data-belowelement="article-comment-1076886" data-respondelement="respond" data-replyto="Reply to this review" aria-label='Reply to this review'>Reply<svg width="11" height="11" aria-hidden="true" role="img" focusable="false"><use xlink:href="#regular-level-down"></use></svg></a></div><div class="comment-admin-badge"> <p class="comment-badge">Admin</p> </div> </article> </li><!-- #comment-## --> </ul><!-- .children --> </li><!-- #comment-## --> <li class="comment odd alt thread-even depth-1" id="comment-1068983"> <article id="article-comment-1068983"> <header class="comment-header"> <p class="comment-author"> <span class="comment-author-name">jennifer mulder</span> </p> </header> <div class="comment-content"> <p>I am getting this error<br /> Warning: mysqli_real_connect(): (HY000/2002): Connection refused in /home/f5853789/public_html/wp-includes/wp-db.php on line 1635<br /> Connection refused</p> <p>what do I do</p> </div> <div class="comment-reply"><a rel='nofollow' class='comment-reply-link' href='https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/comment-page-10/?replytocom=1068983#respond' data-commentid="1068983" data-postid="5484" data-belowelement="article-comment-1068983" data-respondelement="respond" data-replyto="Reply to this review" aria-label='Reply to this review'>Reply<svg width="11" height="11" aria-hidden="true" role="img" focusable="false"><use xlink:href="#regular-level-down"></use></svg></a></div> </article> <ul class="children"> <li class="comment byuser comment-author-jeremycomments even depth-2 staff" id="comment-1071250"> <article id="article-comment-1071250"> <header class="comment-header"> <p class="comment-author"> <span class="comment-author-name">WPBeginner Support</span> </p> </header> <div class="comment-content"> <p>That is a different error, you would want to reach out to your hosting provider for assistance with that specific error.</p> </div> <div class="comment-reply"><a rel='nofollow' class='comment-reply-link' href='https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/comment-page-10/?replytocom=1071250#respond' data-commentid="1071250" data-postid="5484" data-belowelement="article-comment-1071250" data-respondelement="respond" data-replyto="Reply to this review" aria-label='Reply to this review'>Reply<svg width="11" height="11" aria-hidden="true" role="img" focusable="false"><use xlink:href="#regular-level-down"></use></svg></a></div><div class="comment-admin-badge"> <p class="comment-badge">Admin</p> </div> </article> </li><!-- #comment-## --> </ul><!-- .children --> </li><!-- #comment-## --> <li class="comment odd alt thread-odd thread-alt depth-1" id="comment-1063377"> <article id="article-comment-1063377"> <header class="comment-header"> <p class="comment-author"> <span class="comment-author-name">Tejas Misra</span> </p> </header> <div class="comment-content"> <p>I am a beginner to Wordpress, and I am using MAMP to install Wordpress but I&#8217;m still getting this error. My credentials are correct, and none of the steps shown above appeared to work. The database is repaired too. I don&#8217;t know what to do.</p> </div> <div class="comment-reply"><a rel='nofollow' class='comment-reply-link' href='https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/comment-page-10/?replytocom=1063377#respond' data-commentid="1063377" data-postid="5484" data-belowelement="article-comment-1063377" data-respondelement="respond" data-replyto="Reply to this review" aria-label='Reply to this review'>Reply<svg width="11" height="11" aria-hidden="true" role="img" focusable="false"><use xlink:href="#regular-level-down"></use></svg></a></div> </article> <ul class="children"> <li class="comment byuser comment-author-jeremycomments even depth-2 staff" id="comment-1064016"> <article id="article-comment-1064016"> <header class="comment-header"> <p class="comment-author"> <span class="comment-author-name">WPBeginner Support</span> </p> </header> <div class="comment-content"> <p>Following our guide on setting up your site on MAMP below, you may want to ensure you added the correct database prefix.</p> <p><a href="https://www.wpbeginner.com/wp-tutorials/how-to-install-wordpress-locally-on-mac-using-mamp/" rel="ugc">https://www.wpbeginner.com/wp-tutorials/how-to-install-wordpress-locally-on-mac-using-mamp/</a></p> </div> <div class="comment-reply"><a rel='nofollow' class='comment-reply-link' href='https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/comment-page-10/?replytocom=1064016#respond' data-commentid="1064016" data-postid="5484" data-belowelement="article-comment-1064016" data-respondelement="respond" data-replyto="Reply to this review" aria-label='Reply to this review'>Reply<svg width="11" height="11" aria-hidden="true" role="img" focusable="false"><use xlink:href="#regular-level-down"></use></svg></a></div><div class="comment-admin-badge"> <p class="comment-badge">Admin</p> </div> </article> </li><!-- #comment-## --> </ul><!-- .children --> </li><!-- #comment-## --> <li class="comment odd alt thread-even depth-1" id="comment-1055042"> <article id="article-comment-1055042"> <header class="comment-header"> <p class="comment-author"> <span class="comment-author-name">sain</span> </p> </header> <div class="comment-content"> <p>Hi, I have just moved my WordPress site to a new hosting provider via ftp when this error popped up. Is there anything I&#8217;m to update after a migration? Thanks</p> </div> <div class="comment-reply"><a rel='nofollow' class='comment-reply-link' href='https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/comment-page-10/?replytocom=1055042#respond' data-commentid="1055042" data-postid="5484" data-belowelement="article-comment-1055042" data-respondelement="respond" data-replyto="Reply to this review" aria-label='Reply to this review'>Reply<svg width="11" height="11" aria-hidden="true" role="img" focusable="false"><use xlink:href="#regular-level-down"></use></svg></a></div> </article> <ul class="children"> <li class="comment byuser comment-author-jeremycomments even depth-2 staff" id="comment-1056067"> <article id="article-comment-1056067"> <header class="comment-header"> <p class="comment-author"> <span class="comment-author-name">WPBeginner Support</span> </p> </header> <div class="comment-content"> <p>For moving to a new host, you would want to take a look at our article below:</p> <p><a href="https://www.wpbeginner.com/wp-tutorials/how-to-move-wordpress-to-a-new-host-or-server-with-no-downtime/" rel="ugc">https://www.wpbeginner.com/wp-tutorials/how-to-move-wordpress-to-a-new-host-or-server-with-no-downtime/</a></p> </div> <div class="comment-reply"><a rel='nofollow' class='comment-reply-link' href='https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/comment-page-10/?replytocom=1056067#respond' data-commentid="1056067" data-postid="5484" data-belowelement="article-comment-1056067" data-respondelement="respond" data-replyto="Reply to this review" aria-label='Reply to this review'>Reply<svg width="11" height="11" aria-hidden="true" role="img" focusable="false"><use xlink:href="#regular-level-down"></use></svg></a></div><div class="comment-admin-badge"> <p class="comment-badge">Admin</p> </div> </article> </li><!-- #comment-## --> </ul><!-- .children --> </li><!-- #comment-## --> <li class="comment odd alt thread-odd thread-alt depth-1" id="comment-984885"> <article id="article-comment-984885"> <header class="comment-header"> <p class="comment-author"> <span class="comment-author-name">KWS Adams</span> </p> </header> <div class="comment-content"> <p>Adding this line &#8220;&#8221;&#8221;define(&#8216;WP_ALLOW_REPAIR&#8217;, true);&#8221;&#8221; helped me get my site back after 14 hours of being down. Thought it was my hosts problem. Thanks for the info.</p> </div> <div class="comment-reply"><a rel='nofollow' class='comment-reply-link' href='https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/comment-page-10/?replytocom=984885#respond' data-commentid="984885" data-postid="5484" data-belowelement="article-comment-984885" data-respondelement="respond" data-replyto="Reply to this review" aria-label='Reply to this review'>Reply<svg width="11" height="11" aria-hidden="true" role="img" focusable="false"><use xlink:href="#regular-level-down"></use></svg></a></div> </article> <ul class="children"> <li class="comment byuser comment-author-jeremycomments even depth-2 staff" id="comment-985457"> <article id="article-comment-985457"> <header class="comment-header"> <p class="comment-author"> <span class="comment-author-name">WPBeginner Support</span> </p> </header> <div class="comment-content"> <p>You&#8217;re welcome, glad the recommendation was helpful <img src="data:image/svg+xml,%3Csvg%20xmlns=&#039;http://www.w3.org/2000/svg&#039;%20width=&#039;0&#039;%20height=&#039;0&#039;%20viewBox=&#039;0%200%200%200&#039;%3E%3C/svg%3E" alt=":)" class="wp-smiley perfmatters-lazy" data-src="https://www.wpbeginner.com/wp-content/plugins/classic-smilies/img/icon_smile.gif" /><noscript><img src="https://www.wpbeginner.com/wp-content/plugins/classic-smilies/img/icon_smile.gif" alt=":)" class="wp-smiley" /></noscript></p> </div> <div class="comment-reply"><a rel='nofollow' class='comment-reply-link' href='https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/comment-page-10/?replytocom=985457#respond' data-commentid="985457" data-postid="5484" data-belowelement="article-comment-985457" data-respondelement="respond" data-replyto="Reply to this review" aria-label='Reply to this review'>Reply<svg width="11" height="11" aria-hidden="true" role="img" focusable="false"><use xlink:href="#regular-level-down"></use></svg></a></div><div class="comment-admin-badge"> <p class="comment-badge">Admin</p> </div> </article> </li><!-- #comment-## --> </ul><!-- .children --> </li><!-- #comment-## --> <li class="comment odd alt thread-even depth-1" id="comment-978277"> <article id="article-comment-978277"> <header class="comment-header"> <p class="comment-author"> <span class="comment-author-name">Maxine</span> </p> </header> <div class="comment-content"> <p>Thanks! Step 1 worked for me.</p> </div> <div class="comment-reply"><a rel='nofollow' class='comment-reply-link' href='https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/comment-page-10/?replytocom=978277#respond' data-commentid="978277" data-postid="5484" data-belowelement="article-comment-978277" data-respondelement="respond" data-replyto="Reply to this review" aria-label='Reply to this review'>Reply<svg width="11" height="11" aria-hidden="true" role="img" focusable="false"><use xlink:href="#regular-level-down"></use></svg></a></div> </article> <ul class="children"> <li class="comment byuser comment-author-jeremycomments even depth-2 staff" id="comment-978702"> <article id="article-comment-978702"> <header class="comment-header"> <p class="comment-author"> <span class="comment-author-name">WPBeginner Support</span> </p> </header> <div class="comment-content"> <p>You&#8217;re welcome, glad our guide was able to help <img src="data:image/svg+xml,%3Csvg%20xmlns=&#039;http://www.w3.org/2000/svg&#039;%20width=&#039;0&#039;%20height=&#039;0&#039;%20viewBox=&#039;0%200%200%200&#039;%3E%3C/svg%3E" alt=":)" class="wp-smiley perfmatters-lazy" data-src="https://www.wpbeginner.com/wp-content/plugins/classic-smilies/img/icon_smile.gif" /><noscript><img src="https://www.wpbeginner.com/wp-content/plugins/classic-smilies/img/icon_smile.gif" alt=":)" class="wp-smiley" /></noscript></p> </div> <div class="comment-reply"><a rel='nofollow' class='comment-reply-link' href='https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/comment-page-10/?replytocom=978702#respond' data-commentid="978702" data-postid="5484" data-belowelement="article-comment-978702" data-respondelement="respond" data-replyto="Reply to this review" aria-label='Reply to this review'>Reply<svg width="11" height="11" aria-hidden="true" role="img" focusable="false"><use xlink:href="#regular-level-down"></use></svg></a></div><div class="comment-admin-badge"> <p class="comment-badge">Admin</p> </div> </article> </li><!-- #comment-## --> </ul><!-- .children --> </li><!-- #comment-## --> <li class="comment odd alt thread-odd thread-alt depth-1" id="comment-911379"> <article id="article-comment-911379"> <header class="comment-header"> <p class="comment-author"> <span class="comment-author-name">Zubair Rahman</span> </p> </header> <div class="comment-content"> <p>How to increase the connection limit in the MySQL database? My website is intermittently giving database error as it is exceeding the max connection limit allocated on the server.</p> </div> <div class="comment-reply"><a rel='nofollow' class='comment-reply-link' href='https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/comment-page-10/?replytocom=911379#respond' data-commentid="911379" data-postid="5484" data-belowelement="article-comment-911379" data-respondelement="respond" data-replyto="Reply to this review" aria-label='Reply to this review'>Reply<svg width="11" height="11" aria-hidden="true" role="img" focusable="false"><use xlink:href="#regular-level-down"></use></svg></a></div> </article> <ul class="children"> <li class="comment byuser comment-author-jeremycomments even depth-2 staff" id="comment-915640"> <article id="article-comment-915640"> <header class="comment-header"> <p class="comment-author"> <span class="comment-author-name">WPBeginner Support</span> </p> </header> <div class="comment-content"> <p>You would need to reach out to your hosting provider for changing that and they would be able to assist.</p> </div> <div class="comment-reply"><a rel='nofollow' class='comment-reply-link' href='https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/comment-page-10/?replytocom=915640#respond' data-commentid="915640" data-postid="5484" data-belowelement="article-comment-915640" data-respondelement="respond" data-replyto="Reply to this review" aria-label='Reply to this review'>Reply<svg width="11" height="11" aria-hidden="true" role="img" focusable="false"><use xlink:href="#regular-level-down"></use></svg></a></div><div class="comment-admin-badge"> <p class="comment-badge">Admin</p> </div> </article> </li><!-- #comment-## --> </ul><!-- .children --> </li><!-- #comment-## --> <li class="comment odd alt thread-even depth-1" id="comment-858403"> <article id="article-comment-858403"> <header class="comment-header"> <p class="comment-author"> <span class="comment-author-name">Agung Sudomo</span> </p> </header> <div class="comment-content"> <p>I use google cloud as hosting and encounter this problem. What should I do?</p> </div> <div class="comment-reply"><a rel='nofollow' class='comment-reply-link' href='https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/comment-page-10/?replytocom=858403#respond' data-commentid="858403" data-postid="5484" data-belowelement="article-comment-858403" data-respondelement="respond" data-replyto="Reply to this review" aria-label='Reply to this review'>Reply<svg width="11" height="11" aria-hidden="true" role="img" focusable="false"><use xlink:href="#regular-level-down"></use></svg></a></div> </article> <ul class="children"> <li class="comment byuser comment-author-jeremycomments even depth-2 staff" id="comment-859778"> <article id="article-comment-859778"> <header class="comment-header"> <p class="comment-author"> <span class="comment-author-name">WPBeginner Support</span> </p> </header> <div class="comment-content"> <p>You should still be able to follow the steps in this article</p> </div> <div class="comment-reply"><a rel='nofollow' class='comment-reply-link' href='https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/comment-page-10/?replytocom=859778#respond' data-commentid="859778" data-postid="5484" data-belowelement="article-comment-859778" data-respondelement="respond" data-replyto="Reply to this review" aria-label='Reply to this review'>Reply<svg width="11" height="11" aria-hidden="true" role="img" focusable="false"><use xlink:href="#regular-level-down"></use></svg></a></div><div class="comment-admin-badge"> <p class="comment-badge">Admin</p> </div> </article> </li><!-- #comment-## --> </ul><!-- .children --> </li><!-- #comment-## --> <li class="comment odd alt thread-odd thread-alt depth-1" id="comment-856475"> <article id="article-comment-856475"> <header class="comment-header"> <p class="comment-author"> <span class="comment-author-name">Anita</span> </p> </header> <div class="comment-content"> <p>Thank you so much for this! The solution for me was fixing url in sql. Thank you for the code!</p> </div> <div class="comment-reply"><a rel='nofollow' class='comment-reply-link' href='https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/comment-page-10/?replytocom=856475#respond' data-commentid="856475" data-postid="5484" data-belowelement="article-comment-856475" data-respondelement="respond" data-replyto="Reply to this review" aria-label='Reply to this review'>Reply<svg width="11" height="11" aria-hidden="true" role="img" focusable="false"><use xlink:href="#regular-level-down"></use></svg></a></div> </article> <ul class="children"> <li class="comment byuser comment-author-jeremycomments even depth-2 staff" id="comment-856977"> <article id="article-comment-856977"> <header class="comment-header"> <p class="comment-author"> <span class="comment-author-name">WPBeginner Support</span> </p> </header> <div class="comment-content"> <p>You&#8217;re welcome, glad our guide could be helpful <img src="data:image/svg+xml,%3Csvg%20xmlns=&#039;http://www.w3.org/2000/svg&#039;%20width=&#039;0&#039;%20height=&#039;0&#039;%20viewBox=&#039;0%200%200%200&#039;%3E%3C/svg%3E" alt=":)" class="wp-smiley perfmatters-lazy" data-src="https://www.wpbeginner.com/wp-content/plugins/classic-smilies/img/icon_smile.gif" /><noscript><img src="https://www.wpbeginner.com/wp-content/plugins/classic-smilies/img/icon_smile.gif" alt=":)" class="wp-smiley" /></noscript></p> </div> <div class="comment-reply"><a rel='nofollow' class='comment-reply-link' href='https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/comment-page-10/?replytocom=856977#respond' data-commentid="856977" data-postid="5484" data-belowelement="article-comment-856977" data-respondelement="respond" data-replyto="Reply to this review" aria-label='Reply to this review'>Reply<svg width="11" height="11" aria-hidden="true" role="img" focusable="false"><use xlink:href="#regular-level-down"></use></svg></a></div><div class="comment-admin-badge"> <p class="comment-badge">Admin</p> </div> </article> </li><!-- #comment-## --> </ul><!-- .children --> </li><!-- #comment-## --> <li class="comment odd alt thread-even depth-1" id="comment-840897"> <article id="article-comment-840897"> <header class="comment-header"> <p class="comment-author"> <span class="comment-author-name">Nimra afridi</span> </p> </header> <div class="comment-content"> <p>I have installed a wordpress . i also make post but sometime it shows me that &#8221;please install wordpress&#8221;. Why it showing me that?<br /> Thank you.</p> </div> <div class="comment-reply"><a rel='nofollow' class='comment-reply-link' href='https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/comment-page-10/?replytocom=840897#respond' data-commentid="840897" data-postid="5484" data-belowelement="article-comment-840897" data-respondelement="respond" data-replyto="Reply to this review" aria-label='Reply to this review'>Reply<svg width="11" height="11" aria-hidden="true" role="img" focusable="false"><use xlink:href="#regular-level-down"></use></svg></a></div> </article> <ul class="children"> <li class="comment byuser comment-author-jeremycomments even depth-2 staff" id="comment-842276"> <article id="article-comment-842276"> <header class="comment-header"> <p class="comment-author"> <span class="comment-author-name">WPBeginner Support</span> </p> </header> <div class="comment-content"> <p>There are a few possible reasons, you may want to reach out to your hosting provider to ensure there are no hiccups on their end.</p> </div> <div class="comment-reply"><a rel='nofollow' class='comment-reply-link' href='https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/comment-page-10/?replytocom=842276#respond' data-commentid="842276" data-postid="5484" data-belowelement="article-comment-842276" data-respondelement="respond" data-replyto="Reply to this review" aria-label='Reply to this review'>Reply<svg width="11" height="11" aria-hidden="true" role="img" focusable="false"><use xlink:href="#regular-level-down"></use></svg></a></div><div class="comment-admin-badge"> <p class="comment-badge">Admin</p> </div> </article> </li><!-- #comment-## --> </ul><!-- .children --> </li><!-- #comment-## --> <li class="comment odd alt thread-odd thread-alt depth-1" id="comment-836305"> <article id="article-comment-836305"> <header class="comment-header"> <p class="comment-author"> <span class="comment-author-name">alex</span> </p> </header> <div class="comment-content"> <p>my website is hosted on aws and i accessed the MYSQL folder via filezila but i couldn&#8217;t find the file that contains database username , password and hostname. is there any specific name of that file?</p> </div> <div class="comment-reply"><a rel='nofollow' class='comment-reply-link' href='https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/comment-page-10/?replytocom=836305#respond' data-commentid="836305" data-postid="5484" data-belowelement="article-comment-836305" data-respondelement="respond" data-replyto="Reply to this review" aria-label='Reply to this review'>Reply<svg width="11" height="11" aria-hidden="true" role="img" focusable="false"><use xlink:href="#regular-level-down"></use></svg></a></div> </article> <ul class="children"> <li class="comment byuser comment-author-jeremycomments even depth-2 staff" id="comment-836765"> <article id="article-comment-836765"> <header class="comment-header"> <p class="comment-author"> <span class="comment-author-name">WPBeginner Support</span> </p> </header> <div class="comment-content"> <p>The file with that information would be your wp-config.php file</p> </div> <div class="comment-reply"><a rel='nofollow' class='comment-reply-link' href='https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/comment-page-10/?replytocom=836765#respond' data-commentid="836765" data-postid="5484" data-belowelement="article-comment-836765" data-respondelement="respond" data-replyto="Reply to this review" aria-label='Reply to this review'>Reply<svg width="11" height="11" aria-hidden="true" role="img" focusable="false"><use xlink:href="#regular-level-down"></use></svg></a></div><div class="comment-admin-badge"> <p class="comment-badge">Admin</p> </div> </article> </li><!-- #comment-## --> </ul><!-- .children --> </li><!-- #comment-## --> <li class="comment odd alt thread-even depth-1" id="comment-807877"> <article id="article-comment-807877"> <header class="comment-header"> <p class="comment-author"> <span class="comment-author-name">Chuck Whelon</span> </p> </header> <div class="comment-content"> <p>Very helpful thank you.</p> </div> <div class="comment-reply"><a rel='nofollow' class='comment-reply-link' href='https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/comment-page-10/?replytocom=807877#respond' data-commentid="807877" data-postid="5484" data-belowelement="article-comment-807877" data-respondelement="respond" data-replyto="Reply to this review" aria-label='Reply to this review'>Reply<svg width="11" height="11" aria-hidden="true" role="img" focusable="false"><use xlink:href="#regular-level-down"></use></svg></a></div> </article> <ul class="children"> <li class="comment byuser comment-author-jeremycomments even depth-2 staff" id="comment-808501"> <article id="article-comment-808501"> <header class="comment-header"> <p class="comment-author"> <span class="comment-author-name">WPBeginner Support</span> </p> </header> <div class="comment-content"> <p>You&#8217;re welcome <img src="data:image/svg+xml,%3Csvg%20xmlns=&#039;http://www.w3.org/2000/svg&#039;%20width=&#039;0&#039;%20height=&#039;0&#039;%20viewBox=&#039;0%200%200%200&#039;%3E%3C/svg%3E" alt=":)" class="wp-smiley perfmatters-lazy" data-src="https://www.wpbeginner.com/wp-content/plugins/classic-smilies/img/icon_smile.gif" /><noscript><img src="https://www.wpbeginner.com/wp-content/plugins/classic-smilies/img/icon_smile.gif" alt=":)" class="wp-smiley" /></noscript></p> </div> <div class="comment-reply"><a rel='nofollow' class='comment-reply-link' href='https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/comment-page-10/?replytocom=808501#respond' data-commentid="808501" data-postid="5484" data-belowelement="article-comment-808501" data-respondelement="respond" data-replyto="Reply to this review" aria-label='Reply to this review'>Reply<svg width="11" height="11" aria-hidden="true" role="img" focusable="false"><use xlink:href="#regular-level-down"></use></svg></a></div><div class="comment-admin-badge"> <p class="comment-badge">Admin</p> </div> </article> </li><!-- #comment-## --> </ul><!-- .children --> </li><!-- #comment-## --> <li class="comment odd alt thread-odd thread-alt depth-1" id="comment-741613"> <article id="article-comment-741613"> <header class="comment-header"> <p class="comment-author"> <span class="comment-author-name">Deborah N.</span> </p> </header> <div class="comment-content"> <p>Thanks. Adding the repair code to my wp config file worked. I appreciate the article. It was straight forward and easy to follow.</p> </div> <div class="comment-reply"><a rel='nofollow' class='comment-reply-link' href='https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/comment-page-10/?replytocom=741613#respond' data-commentid="741613" data-postid="5484" data-belowelement="article-comment-741613" data-respondelement="respond" data-replyto="Reply to this review" aria-label='Reply to this review'>Reply<svg width="11" height="11" aria-hidden="true" role="img" focusable="false"><use xlink:href="#regular-level-down"></use></svg></a></div> </article> <ul class="children"> <li class="comment byuser comment-author-jeremycomments even depth-2 staff" id="comment-741884"> <article id="article-comment-741884"> <header class="comment-header"> <p class="comment-author"> <span class="comment-author-name">WPBeginner Support</span> </p> </header> <div class="comment-content"> <p>You&#8217;re welcome, glad our recommendation was helpful <img src="data:image/svg+xml,%3Csvg%20xmlns=&#039;http://www.w3.org/2000/svg&#039;%20width=&#039;0&#039;%20height=&#039;0&#039;%20viewBox=&#039;0%200%200%200&#039;%3E%3C/svg%3E" alt=":)" class="wp-smiley perfmatters-lazy" data-src="https://www.wpbeginner.com/wp-content/plugins/classic-smilies/img/icon_smile.gif" /><noscript><img src="https://www.wpbeginner.com/wp-content/plugins/classic-smilies/img/icon_smile.gif" alt=":)" class="wp-smiley" /></noscript></p> </div> <div class="comment-reply"><a rel='nofollow' class='comment-reply-link' href='https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/comment-page-10/?replytocom=741884#respond' data-commentid="741884" data-postid="5484" data-belowelement="article-comment-741884" data-respondelement="respond" data-replyto="Reply to this review" aria-label='Reply to this review'>Reply<svg width="11" height="11" aria-hidden="true" role="img" focusable="false"><use xlink:href="#regular-level-down"></use></svg></a></div><div class="comment-admin-badge"> <p class="comment-badge">Admin</p> </div> </article> </li><!-- #comment-## --> </ul><!-- .children --> </li><!-- #comment-## --> <li class="comment odd alt thread-even depth-1" id="comment-741164"> <article id="article-comment-741164"> <header class="comment-header"> <p class="comment-author"> <span class="comment-author-name">bloggeryanke</span> </p> </header> <div class="comment-content"> <p>your article was helpful i had changed my database password so it wasnt connecting to my blog properly but all thanks to your article the issue has been fixed</p> </div> <div class="comment-reply"><a rel='nofollow' class='comment-reply-link' href='https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/comment-page-10/?replytocom=741164#respond' data-commentid="741164" data-postid="5484" data-belowelement="article-comment-741164" data-respondelement="respond" data-replyto="Reply to this review" aria-label='Reply to this review'>Reply<svg width="11" height="11" aria-hidden="true" role="img" focusable="false"><use xlink:href="#regular-level-down"></use></svg></a></div> </article> <ul class="children"> <li class="comment byuser comment-author-jeremycomments even depth-2 staff" id="comment-741878"> <article id="article-comment-741878"> <header class="comment-header"> <p class="comment-author"> <span class="comment-author-name">WPBeginner Support</span> </p> </header> <div class="comment-content"> <p>Glad our recommendations could help <img src="data:image/svg+xml,%3Csvg%20xmlns=&#039;http://www.w3.org/2000/svg&#039;%20width=&#039;0&#039;%20height=&#039;0&#039;%20viewBox=&#039;0%200%200%200&#039;%3E%3C/svg%3E" alt=":)" class="wp-smiley perfmatters-lazy" data-src="https://www.wpbeginner.com/wp-content/plugins/classic-smilies/img/icon_smile.gif" /><noscript><img src="https://www.wpbeginner.com/wp-content/plugins/classic-smilies/img/icon_smile.gif" alt=":)" class="wp-smiley" /></noscript></p> </div> <div class="comment-reply"><a rel='nofollow' class='comment-reply-link' href='https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/comment-page-10/?replytocom=741878#respond' data-commentid="741878" data-postid="5484" data-belowelement="article-comment-741878" data-respondelement="respond" data-replyto="Reply to this review" aria-label='Reply to this review'>Reply<svg width="11" height="11" aria-hidden="true" role="img" focusable="false"><use xlink:href="#regular-level-down"></use></svg></a></div><div class="comment-admin-badge"> <p class="comment-badge">Admin</p> </div> </article> </li><!-- #comment-## --> </ul><!-- .children --> </li><!-- #comment-## --> <li class="comment odd alt thread-odd thread-alt depth-1" id="comment-728021"> <article id="article-comment-728021"> <header class="comment-header"> <p class="comment-author"> <span class="comment-author-name">Joe Marzi</span> </p> </header> <div class="comment-content"> <p>Thank you for sharing such a nice blog.<br /> It will help the beginners of WordPress who are facing the problem regarding Error Establishing in the database connection. Apart from that, It gives a step by step solution so, every reader can easily solve the problem.</p> </div> <div class="comment-reply"><a rel='nofollow' class='comment-reply-link' href='https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/comment-page-10/?replytocom=728021#respond' data-commentid="728021" data-postid="5484" data-belowelement="article-comment-728021" data-respondelement="respond" data-replyto="Reply to this review" aria-label='Reply to this review'>Reply<svg width="11" height="11" aria-hidden="true" role="img" focusable="false"><use xlink:href="#regular-level-down"></use></svg></a></div> </article> <ul class="children"> <li class="comment byuser comment-author-jeremycomments even depth-2 staff" id="comment-728256"> <article id="article-comment-728256"> <header class="comment-header"> <p class="comment-author"> <span class="comment-author-name">WPBeginner Support</span> </p> </header> <div class="comment-content"> <p>You&#8217;re welcome, glad our articles can be helpful <img src="data:image/svg+xml,%3Csvg%20xmlns=&#039;http://www.w3.org/2000/svg&#039;%20width=&#039;0&#039;%20height=&#039;0&#039;%20viewBox=&#039;0%200%200%200&#039;%3E%3C/svg%3E" alt=":)" class="wp-smiley perfmatters-lazy" data-src="https://www.wpbeginner.com/wp-content/plugins/classic-smilies/img/icon_smile.gif" /><noscript><img src="https://www.wpbeginner.com/wp-content/plugins/classic-smilies/img/icon_smile.gif" alt=":)" class="wp-smiley" /></noscript></p> </div> <div class="comment-reply"><a rel='nofollow' class='comment-reply-link' href='https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/comment-page-10/?replytocom=728256#respond' data-commentid="728256" data-postid="5484" data-belowelement="article-comment-728256" data-respondelement="respond" data-replyto="Reply to this review" aria-label='Reply to this review'>Reply<svg width="11" height="11" aria-hidden="true" role="img" focusable="false"><use xlink:href="#regular-level-down"></use></svg></a></div><div class="comment-admin-badge"> <p class="comment-badge">Admin</p> </div> </article> </li><!-- #comment-## --> </ul><!-- .children --> </li><!-- #comment-## --> <li class="comment odd alt thread-even depth-1" id="comment-722007"> <article id="article-comment-722007"> <header class="comment-header"> <p class="comment-author"> <span class="comment-author-name">Deepak</span> </p> </header> <div class="comment-content"> <p>Thanks for such amazing information. I really liked your article.</p> </div> <div class="comment-reply"><a rel='nofollow' class='comment-reply-link' href='https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/comment-page-10/?replytocom=722007#respond' data-commentid="722007" data-postid="5484" data-belowelement="article-comment-722007" data-respondelement="respond" data-replyto="Reply to this review" aria-label='Reply to this review'>Reply<svg width="11" height="11" aria-hidden="true" role="img" focusable="false"><use xlink:href="#regular-level-down"></use></svg></a></div> </article> <ul class="children"> <li class="comment byuser comment-author-jeremycomments even depth-2 staff" id="comment-722062"> <article id="article-comment-722062"> <header class="comment-header"> <p class="comment-author"> <span class="comment-author-name">WPBeginner Support</span> </p> </header> <div class="comment-content"> <p>You&#8217;re welcome, glad you liked our article <img src="data:image/svg+xml,%3Csvg%20xmlns=&#039;http://www.w3.org/2000/svg&#039;%20width=&#039;0&#039;%20height=&#039;0&#039;%20viewBox=&#039;0%200%200%200&#039;%3E%3C/svg%3E" alt=":)" class="wp-smiley perfmatters-lazy" data-src="https://www.wpbeginner.com/wp-content/plugins/classic-smilies/img/icon_smile.gif" /><noscript><img src="https://www.wpbeginner.com/wp-content/plugins/classic-smilies/img/icon_smile.gif" alt=":)" class="wp-smiley" /></noscript></p> </div> <div class="comment-reply"><a rel='nofollow' class='comment-reply-link' href='https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/comment-page-10/?replytocom=722062#respond' data-commentid="722062" data-postid="5484" data-belowelement="article-comment-722062" data-respondelement="respond" data-replyto="Reply to this review" aria-label='Reply to this review'>Reply<svg width="11" height="11" aria-hidden="true" role="img" focusable="false"><use xlink:href="#regular-level-down"></use></svg></a></div><div class="comment-admin-badge"> <p class="comment-badge">Admin</p> </div> </article> </li><!-- #comment-## --> </ul><!-- .children --> </li><!-- #comment-## --> <li class="comment odd alt thread-odd thread-alt depth-1" id="comment-701180"> <article id="article-comment-701180"> <header class="comment-header"> <p class="comment-author"> <span class="comment-author-name">Irwin</span> </p> </header> <div class="comment-content"> <p>I got this error after forcefully shutting my computer. After trying all these suggested methods and failing, I rebooted my computer and the database error was fixed.<br /> You should give it a try too if things go south.</p> </div> <div class="comment-reply"><a rel='nofollow' class='comment-reply-link' href='https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/comment-page-10/?replytocom=701180#respond' data-commentid="701180" data-postid="5484" data-belowelement="article-comment-701180" data-respondelement="respond" data-replyto="Reply to this review" aria-label='Reply to this review'>Reply<svg width="11" height="11" aria-hidden="true" role="img" focusable="false"><use xlink:href="#regular-level-down"></use></svg></a></div> </article> <ul class="children"> <li class="comment byuser comment-author-jeremycomments even depth-2 staff" id="comment-701504"> <article id="article-comment-701504"> <header class="comment-header"> <p class="comment-author"> <span class="comment-author-name">WPBeginner Support</span> </p> </header> <div class="comment-content"> <p>Thanks for sharing the solution that worked for you <img src="data:image/svg+xml,%3Csvg%20xmlns=&#039;http://www.w3.org/2000/svg&#039;%20width=&#039;0&#039;%20height=&#039;0&#039;%20viewBox=&#039;0%200%200%200&#039;%3E%3C/svg%3E" alt=":)" class="wp-smiley perfmatters-lazy" data-src="https://www.wpbeginner.com/wp-content/plugins/classic-smilies/img/icon_smile.gif" /><noscript><img src="https://www.wpbeginner.com/wp-content/plugins/classic-smilies/img/icon_smile.gif" alt=":)" class="wp-smiley" /></noscript></p> </div> <div class="comment-reply"><a rel='nofollow' class='comment-reply-link' href='https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/comment-page-10/?replytocom=701504#respond' data-commentid="701504" data-postid="5484" data-belowelement="article-comment-701504" data-respondelement="respond" data-replyto="Reply to this review" aria-label='Reply to this review'>Reply<svg width="11" height="11" aria-hidden="true" role="img" focusable="false"><use xlink:href="#regular-level-down"></use></svg></a></div><div class="comment-admin-badge"> <p class="comment-badge">Admin</p> </div> </article> </li><!-- #comment-## --> </ul><!-- .children --> </li><!-- #comment-## --> <li class="comment odd alt thread-even depth-1" id="comment-693563"> <article id="article-comment-693563"> <header class="comment-header"> <p class="comment-author"> <span class="comment-author-name">Erik</span> </p> </header> <div class="comment-content"> <p>Awesome! Very easy to follow and took minutes to solve.</p> </div> <div class="comment-reply"><a rel='nofollow' class='comment-reply-link' href='https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/comment-page-10/?replytocom=693563#respond' data-commentid="693563" data-postid="5484" data-belowelement="article-comment-693563" data-respondelement="respond" data-replyto="Reply to this review" aria-label='Reply to this review'>Reply<svg width="11" height="11" aria-hidden="true" role="img" focusable="false"><use xlink:href="#regular-level-down"></use></svg></a></div> </article> <ul class="children"> <li class="comment byuser comment-author-jeremycomments even depth-2 staff" id="comment-693652"> <article id="article-comment-693652"> <header class="comment-header"> <p class="comment-author"> <span class="comment-author-name">WPBeginner Support</span> </p> </header> <div class="comment-content"> <p>Glad our guide could be helpful <img src="data:image/svg+xml,%3Csvg%20xmlns=&#039;http://www.w3.org/2000/svg&#039;%20width=&#039;0&#039;%20height=&#039;0&#039;%20viewBox=&#039;0%200%200%200&#039;%3E%3C/svg%3E" alt=":)" class="wp-smiley perfmatters-lazy" data-src="https://www.wpbeginner.com/wp-content/plugins/classic-smilies/img/icon_smile.gif" /><noscript><img src="https://www.wpbeginner.com/wp-content/plugins/classic-smilies/img/icon_smile.gif" alt=":)" class="wp-smiley" /></noscript></p> </div> <div class="comment-reply"><a rel='nofollow' class='comment-reply-link' href='https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/comment-page-10/?replytocom=693652#respond' data-commentid="693652" data-postid="5484" data-belowelement="article-comment-693652" data-respondelement="respond" data-replyto="Reply to this review" aria-label='Reply to this review'>Reply<svg width="11" height="11" aria-hidden="true" role="img" focusable="false"><use xlink:href="#regular-level-down"></use></svg></a></div><div class="comment-admin-badge"> <p class="comment-badge">Admin</p> </div> </article> </li><!-- #comment-## --> </ul><!-- .children --> </li><!-- #comment-## --> <li class="comment odd alt thread-odd thread-alt depth-1" id="comment-652806"> <article id="article-comment-652806"> <header class="comment-header"> <p class="comment-author"> <span class="comment-author-name">Bob</span> </p> </header> <div class="comment-content"> <p>Yet again you guys come to my rescue. Fixed in a couple of minutes. Well done.</p> </div> <div class="comment-reply"><a rel='nofollow' class='comment-reply-link' href='https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/comment-page-10/?replytocom=652806#respond' data-commentid="652806" data-postid="5484" data-belowelement="article-comment-652806" data-respondelement="respond" data-replyto="Reply to this review" aria-label='Reply to this review'>Reply<svg width="11" height="11" aria-hidden="true" role="img" focusable="false"><use xlink:href="#regular-level-down"></use></svg></a></div> </article> <ul class="children"> <li class="comment byuser comment-author-jeremycomments even depth-2 staff" id="comment-652813"> <article id="article-comment-652813"> <header class="comment-header"> <p class="comment-author"> <span class="comment-author-name">WPBeginner Support</span> </p> </header> <div class="comment-content"> <p>Glad our guide could help <img src="data:image/svg+xml,%3Csvg%20xmlns=&#039;http://www.w3.org/2000/svg&#039;%20width=&#039;0&#039;%20height=&#039;0&#039;%20viewBox=&#039;0%200%200%200&#039;%3E%3C/svg%3E" alt=":)" class="wp-smiley perfmatters-lazy" data-src="https://www.wpbeginner.com/wp-content/plugins/classic-smilies/img/icon_smile.gif" /><noscript><img src="https://www.wpbeginner.com/wp-content/plugins/classic-smilies/img/icon_smile.gif" alt=":)" class="wp-smiley" /></noscript></p> </div> <div class="comment-reply"><a rel='nofollow' class='comment-reply-link' href='https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/comment-page-10/?replytocom=652813#respond' data-commentid="652813" data-postid="5484" data-belowelement="article-comment-652813" data-respondelement="respond" data-replyto="Reply to this review" aria-label='Reply to this review'>Reply<svg width="11" height="11" aria-hidden="true" role="img" focusable="false"><use xlink:href="#regular-level-down"></use></svg></a></div><div class="comment-admin-badge"> <p class="comment-badge">Admin</p> </div> </article> </li><!-- #comment-## --> </ul><!-- .children --> </li><!-- #comment-## --> <li class="comment odd alt thread-even depth-1" id="comment-633774"> <article id="article-comment-633774"> <header class="comment-header"> <p class="comment-author"> <span class="comment-author-name">Nick Aninsley</span> </p> </header> <div class="comment-content"> <p>Thank you so much for sharing this tutorial. Actually, had installed WordPress, it shows me “Error Establishing A Database Connection” and I don’t know what to do. Then I have searched on Google and I found your this article and really it is<br /> very helpful for me and also many people who have no idea about this things. and my site were facing many other problems and only one of them has been solved. Thank for article.</p> </div> <div class="comment-reply"><a rel='nofollow' class='comment-reply-link' href='https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/comment-page-10/?replytocom=633774#respond' data-commentid="633774" data-postid="5484" data-belowelement="article-comment-633774" data-respondelement="respond" data-replyto="Reply to this review" aria-label='Reply to this review'>Reply<svg width="11" height="11" aria-hidden="true" role="img" focusable="false"><use xlink:href="#regular-level-down"></use></svg></a></div> </article> <ul class="children"> <li class="comment byuser comment-author-jeremycomments even depth-2 staff" id="comment-633914"> <article id="article-comment-633914"> <header class="comment-header"> <p class="comment-author"> <span class="comment-author-name">WPBeginner Support</span> </p> </header> <div class="comment-content"> <p>Glad our article could help <img src="data:image/svg+xml,%3Csvg%20xmlns=&#039;http://www.w3.org/2000/svg&#039;%20width=&#039;0&#039;%20height=&#039;0&#039;%20viewBox=&#039;0%200%200%200&#039;%3E%3C/svg%3E" alt=":)" class="wp-smiley perfmatters-lazy" data-src="https://www.wpbeginner.com/wp-content/plugins/classic-smilies/img/icon_smile.gif" /><noscript><img src="https://www.wpbeginner.com/wp-content/plugins/classic-smilies/img/icon_smile.gif" alt=":)" class="wp-smiley" /></noscript></p> </div> <div class="comment-reply"><a rel='nofollow' class='comment-reply-link' href='https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/comment-page-10/?replytocom=633914#respond' data-commentid="633914" data-postid="5484" data-belowelement="article-comment-633914" data-respondelement="respond" data-replyto="Reply to this review" aria-label='Reply to this review'>Reply<svg width="11" height="11" aria-hidden="true" role="img" focusable="false"><use xlink:href="#regular-level-down"></use></svg></a></div><div class="comment-admin-badge"> <p class="comment-badge">Admin</p> </div> </article> </li><!-- #comment-## --> </ul><!-- .children --> </li><!-- #comment-## --> <li class="comment odd alt thread-odd thread-alt depth-1" id="comment-633051"> <article id="article-comment-633051"> <header class="comment-header"> <p class="comment-author"> <span class="comment-author-name">Emily</span> </p> </header> <div class="comment-content"> <p>I can&#8217;t back up my site or do any of what you suggest, because I cannot get into the administrative section of my blog. I can view it, as a viewer, but I have no access to anything more. I also cannot find anyway to contact people from wordpress! Help!?!!</p> </div> <div class="comment-reply"><a rel='nofollow' class='comment-reply-link' href='https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/comment-page-10/?replytocom=633051#respond' data-commentid="633051" data-postid="5484" data-belowelement="article-comment-633051" data-respondelement="respond" data-replyto="Reply to this review" aria-label='Reply to this review'>Reply<svg width="11" height="11" aria-hidden="true" role="img" focusable="false"><use xlink:href="#regular-level-down"></use></svg></a></div> </article> <ul class="children"> <li class="comment byuser comment-author-jeremycomments even depth-2 staff" id="comment-633437"> <article id="article-comment-633437"> <header class="comment-header"> <p class="comment-author"> <span class="comment-author-name">WPBeginner Support</span> </p> </header> <div class="comment-content"> <p>You should be able to create a manual backup using the method here: <a href="https://www.wpbeginner.com/beginners-guide/how-to-make-a-wordpress-database-backup-manually/" rel="ugc">https://www.wpbeginner.com/beginners-guide/how-to-make-a-wordpress-database-backup-manually/</a><br /> If you reach out to your hosting provider they should be able to assist with getting you access back to your site</p> </div> <div class="comment-reply"><a rel='nofollow' class='comment-reply-link' href='https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/comment-page-10/?replytocom=633437#respond' data-commentid="633437" data-postid="5484" data-belowelement="article-comment-633437" data-respondelement="respond" data-replyto="Reply to this review" aria-label='Reply to this review'>Reply<svg width="11" height="11" aria-hidden="true" role="img" focusable="false"><use xlink:href="#regular-level-down"></use></svg></a></div><div class="comment-admin-badge"> <p class="comment-badge">Admin</p> </div> </article> </li><!-- #comment-## --> </ul><!-- .children --> </li><!-- #comment-## --> <li class="comment odd alt thread-even depth-1" id="comment-631121"> <article id="article-comment-631121"> <header class="comment-header"> <p class="comment-author"> <span class="comment-author-name">Waqas Gulzar</span> </p> </header> <div class="comment-content"> <p>Guys,</p> <p>I have fixed it now for my website</p> <p>It was due to insufficient PHP memory<br /> I have updated my php.ini to increase the PHP memory</p> </div> <div class="comment-reply"><a rel='nofollow' class='comment-reply-link' href='https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/comment-page-10/?replytocom=631121#respond' data-commentid="631121" data-postid="5484" data-belowelement="article-comment-631121" data-respondelement="respond" data-replyto="Reply to this review" aria-label='Reply to this review'>Reply<svg width="11" height="11" aria-hidden="true" role="img" focusable="false"><use xlink:href="#regular-level-down"></use></svg></a></div> </article> <ul class="children"> <li class="comment byuser comment-author-jeremycomments even depth-2 staff" id="comment-632237"> <article id="article-comment-632237"> <header class="comment-header"> <p class="comment-author"> <span class="comment-author-name">WPBeginner Support</span> </p> </header> <div class="comment-content"> <p>Thanks for sharing the solution that worked for you <img src="data:image/svg+xml,%3Csvg%20xmlns=&#039;http://www.w3.org/2000/svg&#039;%20width=&#039;0&#039;%20height=&#039;0&#039;%20viewBox=&#039;0%200%200%200&#039;%3E%3C/svg%3E" alt=":)" class="wp-smiley perfmatters-lazy" data-src="https://www.wpbeginner.com/wp-content/plugins/classic-smilies/img/icon_smile.gif" /><noscript><img src="https://www.wpbeginner.com/wp-content/plugins/classic-smilies/img/icon_smile.gif" alt=":)" class="wp-smiley" /></noscript></p> </div> <div class="comment-reply"><a rel='nofollow' class='comment-reply-link' href='https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/comment-page-10/?replytocom=632237#respond' data-commentid="632237" data-postid="5484" data-belowelement="article-comment-632237" data-respondelement="respond" data-replyto="Reply to this review" aria-label='Reply to this review'>Reply<svg width="11" height="11" aria-hidden="true" role="img" focusable="false"><use xlink:href="#regular-level-down"></use></svg></a></div><div class="comment-admin-badge"> <p class="comment-badge">Admin</p> </div> </article> </li><!-- #comment-## --> <li class="comment odd alt depth-2" id="comment-646532"> <article id="article-comment-646532"> <header class="comment-header"> <p class="comment-author"> <span class="comment-author-name">pushkar</span> </p> </header> <div class="comment-content"> <p>Hi WAQAS,<br /> can you please advice how you updated my php.ini to increase the PHP memory. My Site is down with the error &#8220;Error Establishing A Database Connection” and i suspect it is also to do with memory.</p> </div> <div class="comment-reply"><a rel='nofollow' class='comment-reply-link' href='https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/comment-page-10/?replytocom=646532#respond' data-commentid="646532" data-postid="5484" data-belowelement="article-comment-646532" data-respondelement="respond" data-replyto="Reply to this review" aria-label='Reply to this review'>Reply<svg width="11" height="11" aria-hidden="true" role="img" focusable="false"><use xlink:href="#regular-level-down"></use></svg></a></div> </article> <ul class="children"> <li class="comment byuser comment-author-jeremycomments even depth-3 staff" id="comment-647581"> <article id="article-comment-647581"> <header class="comment-header"> <p class="comment-author"> <span class="comment-author-name">WPBeginner Support</span> </p> </header> <div class="comment-content"> <p>We have a guide you can follow here: <a href="https://www.wpbeginner.com/wp-tutorials/fix-wordpress-memory-exhausted-error-increase-php-memory/" rel="ugc">https://www.wpbeginner.com/wp-tutorials/fix-wordpress-memory-exhausted-error-increase-php-memory/</a></p> </div> <div class="comment-reply"><a rel='nofollow' class='comment-reply-link' href='https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/comment-page-10/?replytocom=647581#respond' data-commentid="647581" data-postid="5484" data-belowelement="article-comment-647581" data-respondelement="respond" data-replyto="Reply to this review" aria-label='Reply to this review'>Reply<svg width="11" height="11" aria-hidden="true" role="img" focusable="false"><use xlink:href="#regular-level-down"></use></svg></a></div><div class="comment-admin-badge"> <p class="comment-badge">Admin</p> </div> </article> </li><!-- #comment-## --> </ul><!-- .children --> </li><!-- #comment-## --> </ul><!-- .children --> </li><!-- #comment-## --> <li class="comment odd alt thread-odd thread-alt depth-1" id="comment-629901"> <article id="article-comment-629901"> <header class="comment-header"> <p class="comment-author"> <span class="comment-author-name">ken</span> </p> </header> <div class="comment-content"> <p>I&#8217;m on BlueHost and just upgraded to WP 5.2 and got the dreaded error message:</p> <p>&#8220;Your PHP installation appears to be missing the MySQL extension which is required by WordPress.&#8221; </p> <p>I tried with PHP 5.6, 7.0 &amp; 7.1 &#8211; all give the same response. Any ideas what I can try? My site is completely blocked by the error.</p> </div> <div class="comment-reply"><a rel='nofollow' class='comment-reply-link' href='https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/comment-page-10/?replytocom=629901#respond' data-commentid="629901" data-postid="5484" data-belowelement="article-comment-629901" data-respondelement="respond" data-replyto="Reply to this review" aria-label='Reply to this review'>Reply<svg width="11" height="11" aria-hidden="true" role="img" focusable="false"><use xlink:href="#regular-level-down"></use></svg></a></div> </article> <ul class="children"> <li class="comment byuser comment-author-jeremycomments even depth-2 staff" id="comment-632181"> <article id="article-comment-632181"> <header class="comment-header"> <p class="comment-author"> <span class="comment-author-name">WPBeginner Support</span> </p> </header> <div class="comment-content"> <p>If you reach out to BlueHost they should be able to resolve that issue for you</p> </div> <div class="comment-reply"><a rel='nofollow' class='comment-reply-link' href='https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/comment-page-10/?replytocom=632181#respond' data-commentid="632181" data-postid="5484" data-belowelement="article-comment-632181" data-respondelement="respond" data-replyto="Reply to this review" aria-label='Reply to this review'>Reply<svg width="11" height="11" aria-hidden="true" role="img" focusable="false"><use xlink:href="#regular-level-down"></use></svg></a></div><div class="comment-admin-badge"> <p class="comment-badge">Admin</p> </div> </article> </li><!-- #comment-## --> </ul><!-- .children --> </li><!-- #comment-## --> <li class="comment odd alt thread-even depth-1" id="comment-629581"> <article id="article-comment-629581"> <header class="comment-header"> <p class="comment-author"> <span class="comment-author-name">ravendra</span> </p> </header> <div class="comment-content"> <p>hello I need your help please help me my website is showing Error establishing a database connection<br /> how can I solve I don&#8217;t know please help me</p> </div> <div class="comment-reply"><a rel='nofollow' class='comment-reply-link' href='https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/comment-page-10/?replytocom=629581#respond' data-commentid="629581" data-postid="5484" data-belowelement="article-comment-629581" data-respondelement="respond" data-replyto="Reply to this review" aria-label='Reply to this review'>Reply<svg width="11" height="11" aria-hidden="true" role="img" focusable="false"><use xlink:href="#regular-level-down"></use></svg></a></div> </article> <ul class="children"> <li class="comment byuser comment-author-jeremycomments even depth-2 staff" id="comment-629695"> <article id="article-comment-629695"> <header class="comment-header"> <p class="comment-author"> <span class="comment-author-name">WPBeginner Support</span> </p> </header> <div class="comment-content"> <p>You would want to follow the troubleshooting steps in this article for that error.</p> </div> <div class="comment-reply"><a rel='nofollow' class='comment-reply-link' href='https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/comment-page-10/?replytocom=629695#respond' data-commentid="629695" data-postid="5484" data-belowelement="article-comment-629695" data-respondelement="respond" data-replyto="Reply to this review" aria-label='Reply to this review'>Reply<svg width="11" height="11" aria-hidden="true" role="img" focusable="false"><use xlink:href="#regular-level-down"></use></svg></a></div><div class="comment-admin-badge"> <p class="comment-badge">Admin</p> </div> </article> </li><!-- #comment-## --> </ul><!-- .children --> </li><!-- #comment-## --> <li class="comment odd alt thread-odd thread-alt depth-1" id="comment-619569"> <article id="article-comment-619569"> <header class="comment-header"> <p class="comment-author"> <span class="comment-author-name">Daniel</span> </p> </header> <div class="comment-content"> <p>I had this very same issue while using Xampp. After using the &#8220;testconection.php&#8221; file and through some further trouble shooting, I discovered that my user account was set to connect to &#8220;Any host&#8221; and by changing it to &#8220;Localhost&#8221; the problem was solved. I suspect this error came about when I updated Xampp and recreated the same named user.</p> </div> <div class="comment-reply"><a rel='nofollow' class='comment-reply-link' href='https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/comment-page-10/?replytocom=619569#respond' data-commentid="619569" data-postid="5484" data-belowelement="article-comment-619569" data-respondelement="respond" data-replyto="Reply to this review" aria-label='Reply to this review'>Reply<svg width="11" height="11" aria-hidden="true" role="img" focusable="false"><use xlink:href="#regular-level-down"></use></svg></a></div> </article> <ul class="children"> <li class="comment byuser comment-author-jeremycomments even depth-2 staff" id="comment-619786"> <article id="article-comment-619786"> <header class="comment-header"> <p class="comment-author"> <span class="comment-author-name">WPBeginner Support</span> </p> </header> <div class="comment-content"> <p>Thanks for sharing what worked for you <img src="data:image/svg+xml,%3Csvg%20xmlns=&#039;http://www.w3.org/2000/svg&#039;%20width=&#039;0&#039;%20height=&#039;0&#039;%20viewBox=&#039;0%200%200%200&#039;%3E%3C/svg%3E" alt=":)" class="wp-smiley perfmatters-lazy" data-src="https://www.wpbeginner.com/wp-content/plugins/classic-smilies/img/icon_smile.gif" /><noscript><img src="https://www.wpbeginner.com/wp-content/plugins/classic-smilies/img/icon_smile.gif" alt=":)" class="wp-smiley" /></noscript></p> </div> <div class="comment-reply"><a rel='nofollow' class='comment-reply-link' href='https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/comment-page-10/?replytocom=619786#respond' data-commentid="619786" data-postid="5484" data-belowelement="article-comment-619786" data-respondelement="respond" data-replyto="Reply to this review" aria-label='Reply to this review'>Reply<svg width="11" height="11" aria-hidden="true" role="img" focusable="false"><use xlink:href="#regular-level-down"></use></svg></a></div><div class="comment-admin-badge"> <p class="comment-badge">Admin</p> </div> </article> </li><!-- #comment-## --> <li class="comment odd alt depth-2" id="comment-699282"> <article id="article-comment-699282"> <header class="comment-header"> <p class="comment-author"> <span class="comment-author-name">Della</span> </p> </header> <div class="comment-content"> <p>For my case the correct response was by Daniel.<br /> &#8230;I discovered that my user account was set to connect to “Any host” and by changing it to “Localhost” the problem was solved. </p> <p>Thanks so much!</p> </div> <div class="comment-reply"><a rel='nofollow' class='comment-reply-link' href='https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/comment-page-10/?replytocom=699282#respond' data-commentid="699282" data-postid="5484" data-belowelement="article-comment-699282" data-respondelement="respond" data-replyto="Reply to this review" aria-label='Reply to this review'>Reply<svg width="11" height="11" aria-hidden="true" role="img" focusable="false"><use xlink:href="#regular-level-down"></use></svg></a></div> </article> </li><!-- #comment-## --> </ul><!-- .children --> </li><!-- #comment-## --> <li class="comment even thread-even depth-1" id="comment-612390"> <article id="article-comment-612390"> <header class="comment-header"> <p class="comment-author"> <span class="comment-author-name">jason</span> </p> </header> <div class="comment-content"> <p>i am getting this error on my localhost</p> </div> <div class="comment-reply"><a rel='nofollow' class='comment-reply-link' href='https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/comment-page-10/?replytocom=612390#respond' data-commentid="612390" data-postid="5484" data-belowelement="article-comment-612390" data-respondelement="respond" data-replyto="Reply to this review" aria-label='Reply to this review'>Reply<svg width="11" height="11" aria-hidden="true" role="img" focusable="false"><use xlink:href="#regular-level-down"></use></svg></a></div> </article> <ul class="children"> <li class="comment byuser comment-author-jeremycomments odd alt depth-2 staff" id="comment-612441"> <article id="article-comment-612441"> <header class="comment-header"> <p class="comment-author"> <span class="comment-author-name">WPBeginner Support</span> </p> </header> <div class="comment-content"> <p>The methods in this article should be able to help with localhost sites as well as hosted sites.</p> </div> <div class="comment-reply"><a rel='nofollow' class='comment-reply-link' href='https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/comment-page-10/?replytocom=612441#respond' data-commentid="612441" data-postid="5484" data-belowelement="article-comment-612441" data-respondelement="respond" data-replyto="Reply to this review" aria-label='Reply to this review'>Reply<svg width="11" height="11" aria-hidden="true" role="img" focusable="false"><use xlink:href="#regular-level-down"></use></svg></a></div><div class="comment-admin-badge"> <p class="comment-badge">Admin</p> </div> </article> </li><!-- #comment-## --> </ul><!-- .children --> </li><!-- #comment-## --> <li class="comment even thread-odd thread-alt depth-1" id="comment-605278"> <article id="article-comment-605278"> <header class="comment-header"> <p class="comment-author"> <span class="comment-author-name">Dana Jewel</span> </p> </header> <div class="comment-content"> <p>Thanks for the article. Hopefully it will help.</p> </div> <div class="comment-reply"><a rel='nofollow' class='comment-reply-link' href='https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/comment-page-10/?replytocom=605278#respond' data-commentid="605278" data-postid="5484" data-belowelement="article-comment-605278" data-respondelement="respond" data-replyto="Reply to this review" aria-label='Reply to this review'>Reply<svg width="11" height="11" aria-hidden="true" role="img" focusable="false"><use xlink:href="#regular-level-down"></use></svg></a></div> </article> <ul class="children"> <li class="comment byuser comment-author-jeremycomments odd alt depth-2 staff" id="comment-605296"> <article id="article-comment-605296"> <header class="comment-header"> <p class="comment-author"> <span class="comment-author-name">WPBeginner Support</span> </p> </header> <div class="comment-content"> <p>You&#8217;re welcome <img src="data:image/svg+xml,%3Csvg%20xmlns=&#039;http://www.w3.org/2000/svg&#039;%20width=&#039;0&#039;%20height=&#039;0&#039;%20viewBox=&#039;0%200%200%200&#039;%3E%3C/svg%3E" alt=":)" class="wp-smiley perfmatters-lazy" data-src="https://www.wpbeginner.com/wp-content/plugins/classic-smilies/img/icon_smile.gif" /><noscript><img src="https://www.wpbeginner.com/wp-content/plugins/classic-smilies/img/icon_smile.gif" alt=":)" class="wp-smiley" /></noscript></p> </div> <div class="comment-reply"><a rel='nofollow' class='comment-reply-link' href='https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/comment-page-10/?replytocom=605296#respond' data-commentid="605296" data-postid="5484" data-belowelement="article-comment-605296" data-respondelement="respond" data-replyto="Reply to this review" aria-label='Reply to this review'>Reply<svg width="11" height="11" aria-hidden="true" role="img" focusable="false"><use xlink:href="#regular-level-down"></use></svg></a></div><div class="comment-admin-badge"> <p class="comment-badge">Admin</p> </div> </article> </li><!-- #comment-## --> </ul><!-- .children --> </li><!-- #comment-## --> <li class="comment even thread-even depth-1" id="comment-591982"> <article id="article-comment-591982"> <header class="comment-header"> <p class="comment-author"> <span class="comment-author-name">Cosme Fulanito</span> </p> </header> <div class="comment-content"> <p>After succeed the &#8220;Check your Web Host (MySQL Server)&#8221; test I change the host from 127.0.01 to localhost on the config.php file.</p> <p>That worked for me.</p> </div> <div class="comment-reply"><a rel='nofollow' class='comment-reply-link' href='https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/comment-page-10/?replytocom=591982#respond' data-commentid="591982" data-postid="5484" data-belowelement="article-comment-591982" data-respondelement="respond" data-replyto="Reply to this review" aria-label='Reply to this review'>Reply<svg width="11" height="11" aria-hidden="true" role="img" focusable="false"><use xlink:href="#regular-level-down"></use></svg></a></div> </article> <ul class="children"> <li class="comment byuser comment-author-jeremycomments odd alt depth-2 staff" id="comment-592247"> <article id="article-comment-592247"> <header class="comment-header"> <p class="comment-author"> <span class="comment-author-name">WPBeginner Support</span> </p> </header> <div class="comment-content"> <p>Thanks for sharing your solution <img src="data:image/svg+xml,%3Csvg%20xmlns=&#039;http://www.w3.org/2000/svg&#039;%20width=&#039;0&#039;%20height=&#039;0&#039;%20viewBox=&#039;0%200%200%200&#039;%3E%3C/svg%3E" alt=":)" class="wp-smiley perfmatters-lazy" data-src="https://www.wpbeginner.com/wp-content/plugins/classic-smilies/img/icon_smile.gif" /><noscript><img src="https://www.wpbeginner.com/wp-content/plugins/classic-smilies/img/icon_smile.gif" alt=":)" class="wp-smiley" /></noscript></p> </div> <div class="comment-reply"><a rel='nofollow' class='comment-reply-link' href='https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/comment-page-10/?replytocom=592247#respond' data-commentid="592247" data-postid="5484" data-belowelement="article-comment-592247" data-respondelement="respond" data-replyto="Reply to this review" aria-label='Reply to this review'>Reply<svg width="11" height="11" aria-hidden="true" role="img" focusable="false"><use xlink:href="#regular-level-down"></use></svg></a></div><div class="comment-admin-badge"> <p class="comment-badge">Admin</p> </div> </article> </li><!-- #comment-## --> </ul><!-- .children --> </li><!-- #comment-## --> <li class="comment even thread-odd thread-alt depth-1" id="comment-589117"> <article id="article-comment-589117"> <header class="comment-header"> <p class="comment-author"> <span class="comment-author-name">Vinay Mourya</span> </p> </header> <div class="comment-content"> <p>hi, it is happening to my WordPress site only sometimes and when I reload the page site starts working again please suggest me a solution, for now, I am using Cloudflare as cdn and wp rocket for caching plugin, the theme is newspaper premium.</p> </div> <div class="comment-reply"><a rel='nofollow' class='comment-reply-link' href='https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/comment-page-10/?replytocom=589117#respond' data-commentid="589117" data-postid="5484" data-belowelement="article-comment-589117" data-respondelement="respond" data-replyto="Reply to this review" aria-label='Reply to this review'>Reply<svg width="11" height="11" aria-hidden="true" role="img" focusable="false"><use xlink:href="#regular-level-down"></use></svg></a></div> </article> <ul class="children"> <li class="comment byuser comment-author-jeremycomments odd alt depth-2 staff" id="comment-589406"> <article id="article-comment-589406"> <header class="comment-header"> <p class="comment-author"> <span class="comment-author-name">WPBeginner Support</span> </p> </header> <div class="comment-content"> <p>If it is intermittent like that, you would want to reach out to your hosting provider and let them know and they should be able to assist.</p> </div> <div class="comment-reply"><a rel='nofollow' class='comment-reply-link' href='https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/comment-page-10/?replytocom=589406#respond' data-commentid="589406" data-postid="5484" data-belowelement="article-comment-589406" data-respondelement="respond" data-replyto="Reply to this review" aria-label='Reply to this review'>Reply<svg width="11" height="11" aria-hidden="true" role="img" focusable="false"><use xlink:href="#regular-level-down"></use></svg></a></div><div class="comment-admin-badge"> <p class="comment-badge">Admin</p> </div> </article> </li><!-- #comment-## --> </ul><!-- .children --> </li><!-- #comment-## --> <li class="comment even thread-even depth-1" id="comment-587102"> <article id="article-comment-587102"> <header class="comment-header"> <p class="comment-author"> <span class="comment-author-name">Erick</span> </p> </header> <div class="comment-content"> <p>This solution helped me a lot. Thanks so much.</p> </div> <div class="comment-reply"><a rel='nofollow' class='comment-reply-link' href='https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/comment-page-10/?replytocom=587102#respond' data-commentid="587102" data-postid="5484" data-belowelement="article-comment-587102" data-respondelement="respond" data-replyto="Reply to this review" aria-label='Reply to this review'>Reply<svg width="11" height="11" aria-hidden="true" role="img" focusable="false"><use xlink:href="#regular-level-down"></use></svg></a></div> </article> <ul class="children"> <li class="comment byuser comment-author-jeremycomments odd alt depth-2 staff" id="comment-587343"> <article id="article-comment-587343"> <header class="comment-header"> <p class="comment-author"> <span class="comment-author-name">WPBeginner Support</span> </p> </header> <div class="comment-content"> <p>You&#8217;re welcome <img src="data:image/svg+xml,%3Csvg%20xmlns=&#039;http://www.w3.org/2000/svg&#039;%20width=&#039;0&#039;%20height=&#039;0&#039;%20viewBox=&#039;0%200%200%200&#039;%3E%3C/svg%3E" alt=":)" class="wp-smiley perfmatters-lazy" data-src="https://www.wpbeginner.com/wp-content/plugins/classic-smilies/img/icon_smile.gif" /><noscript><img src="https://www.wpbeginner.com/wp-content/plugins/classic-smilies/img/icon_smile.gif" alt=":)" class="wp-smiley" /></noscript></p> </div> <div class="comment-reply"><a rel='nofollow' class='comment-reply-link' href='https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/comment-page-10/?replytocom=587343#respond' data-commentid="587343" data-postid="5484" data-belowelement="article-comment-587343" data-respondelement="respond" data-replyto="Reply to this review" aria-label='Reply to this review'>Reply<svg width="11" height="11" aria-hidden="true" role="img" focusable="false"><use xlink:href="#regular-level-down"></use></svg></a></div><div class="comment-admin-badge"> <p class="comment-badge">Admin</p> </div> </article> </li><!-- #comment-## --> </ul><!-- .children --> </li><!-- #comment-## --> <li class="comment even thread-odd thread-alt depth-1" id="comment-574750"> <article id="article-comment-574750"> <header class="comment-header"> <p class="comment-author"> <span class="comment-author-name">Gee</span> </p> </header> <div class="comment-content"> <p>Same exact error i got “Error establishing a database connection” but not all of the sollution you mentíon helped me.</p> <p>For me the MySql services was disabled: I went to services and start the MySQL to automatic. The other thing was the &#8221; log on &#8221; to user was administrator and changed it to the account i created.</p> <p>Now my wordpress site is working again.</p> </div> <div class="comment-reply"><a rel='nofollow' class='comment-reply-link' href='https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/comment-page-10/?replytocom=574750#respond' data-commentid="574750" data-postid="5484" data-belowelement="article-comment-574750" data-respondelement="respond" data-replyto="Reply to this review" aria-label='Reply to this review'>Reply<svg width="11" height="11" aria-hidden="true" role="img" focusable="false"><use xlink:href="#regular-level-down"></use></svg></a></div> </article> <ul class="children"> <li class="comment byuser comment-author-jeremycomments odd alt depth-2 staff" id="comment-575729"> <article id="article-comment-575729"> <header class="comment-header"> <p class="comment-author"> <span class="comment-author-name">WPBeginner Support</span> </p> </header> <div class="comment-content"> <p>Thanks for sharing your solution to this issue for others <img src="data:image/svg+xml,%3Csvg%20xmlns=&#039;http://www.w3.org/2000/svg&#039;%20width=&#039;0&#039;%20height=&#039;0&#039;%20viewBox=&#039;0%200%200%200&#039;%3E%3C/svg%3E" alt=":)" class="wp-smiley perfmatters-lazy" data-src="https://www.wpbeginner.com/wp-content/plugins/classic-smilies/img/icon_smile.gif" /><noscript><img src="https://www.wpbeginner.com/wp-content/plugins/classic-smilies/img/icon_smile.gif" alt=":)" class="wp-smiley" /></noscript></p> </div> <div class="comment-reply"><a rel='nofollow' class='comment-reply-link' href='https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/comment-page-10/?replytocom=575729#respond' data-commentid="575729" data-postid="5484" data-belowelement="article-comment-575729" data-respondelement="respond" data-replyto="Reply to this review" aria-label='Reply to this review'>Reply<svg width="11" height="11" aria-hidden="true" role="img" focusable="false"><use xlink:href="#regular-level-down"></use></svg></a></div><div class="comment-admin-badge"> <p class="comment-badge">Admin</p> </div> </article> </li><!-- #comment-## --> </ul><!-- .children --> </li><!-- #comment-## --> </ol><div class="comments-pagination pagination"><div class="pagination-previous alignleft"><a href="https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/comment-page-9/#comments" >&laquo; Older Comments</a></div><div class="pagination-next alignright"></div></div></div><div class="pagination comment-pagination"><a class="prev page-numbers" href="https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/comment-page-9/#comments">&laquo;</a> <a class="page-numbers" href="https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/comment-page-1/#comments">1</a> <span class="page-numbers dots">&hellip;</span> <a class="page-numbers" href="https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/comment-page-8/#comments">8</a> <a class="page-numbers" href="https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/comment-page-9/#comments">9</a> <span aria-current="page" class="page-numbers current">10</span></div> <div id="respond" class="comment-respond"> <h3 id="reply-title" class="comment-reply-title">Leave A Reply <small><a rel="nofollow" id="cancel-comment-reply-link" href="/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/#respond" style="display:none;">Cancel reply</a></small></h3><form action="https://www.wpbeginner.com/wp-comments-post.php" method="post" id="commentform" class="comment-form" novalidate><p class="commentpolicy">Thanks for choosing to leave a comment. Please keep in mind that all comments are moderated according to our <a href="https://www.wpbeginner.com/comment-policy/" title="WPBeginner Comment Policy">comment policy</a>, and your email address will NOT be published. Please Do NOT use keywords in the name field. Let&#039;s have a personal and meaningful conversation.</p><p class="comment-form-author"><label for="author">Name <span class="required">*</span></label> <input placeholder="Your Real Name" id="author" name="author" type="text" value="" size="30" maxlength="245" autocomplete="name" required /></p> <p class="comment-form-email"><label for="email">Email <span class="required">*</span></label> <input placeholder="Email Address" id="email" name="email" type="email" value="" size="30" maxlength="100" autocomplete="email" required /></p> <p class="comment-form-comment"><label for="comment">Comment <span class="required">*</span></label> <textarea autocomplete="new-password" aria-label="Comment" id="i0e9384a54" name="i0e9384a54" cols="45" rows="8" maxlength="65525" required></textarea aria-label="Comment"></p><p class='comment-form-subscriptions'><label for='subscribe-reloaded'><select name='subscribe-reloaded' id='subscribe-reloaded'> <option value='none' selected='selected'>Don&#039;t subscribe</option> <option value='yes' >All new comments</option> <option value='replies' >Replies to my comments</option> </select> Notify me of followup comments via e-mail. You can also <a href='https://www.wpbeginner.com/manage-subscriptions/?srp=5484&amp;srk=73b8227bdd81bbf20bba6554090cd5a7&amp;sra=s&amp;srsrc=f'>subscribe</a> without commenting.</label></p><p class="form-submit"><input name="submit" type="submit" id="submit" class="submit wp-block-button__link" value="Submit Comment" /> <input type='hidden' name='comment_post_ID' value='5484' id='comment_post_ID' /> <input type='hidden' name='comment_parent' id='comment_parent' value='0' /> </p><p style="display: none;"><input type="hidden" id="akismet_comment_nonce" name="akismet_comment_nonce" value="cbd852018a" /></p><p style="display: none !important;" class="akismet-fields-container" data-prefix="ak_"><label>&#916;<textarea name="ak_hp_textarea" cols="45" rows="8" maxlength="100"></textarea><textarea id="comment" aria-label="hp-comment" aria-hidden="true" name="comment" autocomplete="new-password" style="padding:0 !important;clip:rect(1px, 1px, 1px, 1px) !important;position:absolute !important;white-space:nowrap !important;height:1px !important;width:1px !important;overflow:hidden !important;" tabindex="-1"></textarea><script data-noptimize type="pmdelayedscript" data-cfasync="false" data-no-optimize="1" data-no-defer="1" data-no-minify="1">document.getElementById("comment").setAttribute( "id", "aac5d6d4d4e8a4fbba4f67a5269d547b" );document.getElementById("i0e9384a54").setAttribute( "id", "comment" );</script></label><input type="hidden" id="ak_js_1" name="ak_js" value="186"/><script type="pmdelayedscript" data-cfasync="false" data-no-optimize="1" data-no-defer="1" data-no-minify="1">document.getElementById( "ak_js_1" ).setAttribute( "value", ( new Date() ).getTime() );</script></p></form> </div><!-- #respond --> </main><aside class="sidebar sidebar-primary widget-area" role="complementary" aria-label="Primary Sidebar" id="genesis-sidebar-primary"><h2 class="genesis-sidebar-title screen-reader-text">Primary Sidebar</h2><div class="wpbsubscribe widget"><div class="widgetheading">Over <strong>2,000,000+</strong> Readers <p>Get fresh content from WPBeginner</p> </div><div class="social-links color"><a href="https://facebook.com/wpbeginner" target="_blank" rel="noopener nofollow" class="facebook" title="Join WPBeginner on Facebook"><svg width="24" height="24" aria-hidden="true" role="img" focusable="false"><use xlink:href="#brands-facebook-square"></use></svg></a><a href="https://twitter.com/wpbeginner" target="_blank" rel="noopener nofollow" class="twitter" title="Follow WPBeginner on Twitter"><svg width="24" height="24" aria-hidden="true" role="img" focusable="false"><use xlink:href="#brands-twitter"></use></svg></a><a href="https://youtube.com/wpbeginner?sub_confirmation=1" target="_blank" rel="noopener nofollow" class="youtube" title="Subscribe to WPBeginner on YouTube"><svg width="24" height="24" aria-hidden="true" role="img" focusable="false"><use xlink:href="#brands-youtube"></use></svg></a><a href="https://www.instagram.com/wpbeginner/" target="_blank" rel="noopener nofollow" class="instagram" title="Follow WPBeginner on Instagram"><svg width="24" height="24" aria-hidden="true" role="img" focusable="false" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><defs><linearGradient id="brand-gradient" x2="0%" y2="100%"><stop offset="0%" stop-color="#4F61D1" /><stop offset="32.89%" stop-color="#9D3EBE" /><stop offset="48.27%" stop-color="#CB308B" /><stop offset="58.53%" stop-color="#E9334E" /><stop offset="100%" stop-color="#FDD776" /></linearGradient></defs><path fill="url(#brand-gradient)" d="M224.1 141c-63.6 0-114.9 51.3-114.9 114.9s51.3 114.9 114.9 114.9S339 319.5 339 255.9 287.7 141 224.1 141zm0 189.6c-41.1 0-74.7-33.5-74.7-74.7s33.5-74.7 74.7-74.7 74.7 33.5 74.7 74.7-33.6 74.7-74.7 74.7zm146.4-194.3c0 14.9-12 26.8-26.8 26.8-14.9 0-26.8-12-26.8-26.8s12-26.8 26.8-26.8 26.8 12 26.8 26.8zm76.1 27.2c-1.7-35.9-9.9-67.7-36.2-93.9-26.2-26.2-58-34.4-93.9-36.2-37-2.1-147.9-2.1-184.9 0-35.8 1.7-67.6 9.9-93.9 36.1s-34.4 58-36.2 93.9c-2.1 37-2.1 147.9 0 184.9 1.7 35.9 9.9 67.7 36.2 93.9s58 34.4 93.9 36.2c37 2.1 147.9 2.1 184.9 0 35.9-1.7 67.7-9.9 93.9-36.2 26.2-26.2 34.4-58 36.2-93.9 2.1-37 2.1-147.8 0-184.8zM398.8 388c-7.8 19.6-22.9 34.7-42.6 42.6-29.5 11.7-99.5 9-132.1 9s-102.7 2.6-132.1-9c-19.6-7.8-34.7-22.9-42.6-42.6-11.7-29.5-9-99.5-9-132.1s-2.6-102.7 9-132.1c7.8-19.6 22.9-34.7 42.6-42.6 29.5-11.7 99.5-9 132.1-9s102.7-2.6 132.1 9c19.6 7.8 34.7 22.9 42.6 42.6 11.7 29.5 9 99.5 9 132.1s2.7 102.7-9 132.1z"/></svg></a><a href="https://www.facebook.com/groups/wpbeginner" target="_blank" rel="noopener nofollow" class="facebook" title="Join the WPBeginner group on Facebook"><svg width="24" height="24" aria-hidden="true" role="img" focusable="false"><use xlink:href="#solid-users"></use></svg></a><a href="https://www.pinterest.com/wpbeginner/" target="_blank" rel="noopener nofollow" class="pinterest" title="Follow WPBeginner on Pinterest"><svg width="24" height="24" aria-hidden="true" role="img" focusable="false"><use xlink:href="#brands-pinterest"></use></svg></a><a href="https://www.linkedin.com/company/wpbeginner/" target="_blank" rel="noopener nofollow" class="linkedin" title="Join WPBeginner on LinkedIn"><svg width="24" height="24" aria-hidden="true" role="img" focusable="false"><use xlink:href="#brands-linkedin"></use></svg></a><a href="https://app.monstercampaigns.com/c/vmrqpgrbcgdztg90fueg/" target="_blank" rel="noopener nofollow" class="manual-optin-trigger email" title="Join WPBeginner Weekly Email Newsletter"><svg width="24" height="24" aria-hidden="true" role="img" focusable="false"><use xlink:href="#regular-envelope"></use></svg></a></div></div><div class="featuredplugins sidebardeals widget"> <div class="widgetheading"> <span class="headingred">Featured</span> WordPress Plugins </div> <div class="relatedentry"> <div class="dealsentry"><div class="dealsthumb"><a href="https://www.monsterinsights.com/?utm_source=wpbeginner&#038;utm_medium=link&#038;utm_campaign=products" title="MonsterInsights" target="_blank"><img width="96" height="96" src="data:image/svg+xml,%3Csvg%20xmlns=&#039;http://www.w3.org/2000/svg&#039;%20width=&#039;96&#039;%20height=&#039;96&#039;%20viewBox=&#039;0%200%2096%2096&#039;%3E%3C/svg%3E" class="attachment-coupon-thumb size-coupon-thumb wp-post-image perfmatters-lazy" alt="MonsterInsights" decoding="async" title="MonsterInsights" data-src="https://www.wpbeginner.com/wp-content/uploads/2017/02/monsterinsights-thumbnail-96x96.jpg" data-srcset="https://www.wpbeginner.com/wp-content/uploads/2017/02/monsterinsights-thumbnail-96x96.jpg 96w, https://www.wpbeginner.com/wp-content/uploads/2017/02/monsterinsights-thumbnail-150x150.jpg 150w, https://www.wpbeginner.com/wp-content/uploads/2017/02/monsterinsights-thumbnail-72x72.jpg 72w, https://www.wpbeginner.com/wp-content/uploads/2017/02/monsterinsights-thumbnail-180x180.jpg 180w, https://www.wpbeginner.com/wp-content/uploads/2017/02/monsterinsights-thumbnail.jpg 250w" data-sizes="(max-width: 96px) 100vw, 96px" /><noscript><img width="96" height="96" src="https://www.wpbeginner.com/wp-content/uploads/2017/02/monsterinsights-thumbnail-96x96.jpg" class="attachment-coupon-thumb size-coupon-thumb wp-post-image" alt="MonsterInsights" decoding="async" srcset="https://www.wpbeginner.com/wp-content/uploads/2017/02/monsterinsights-thumbnail-96x96.jpg 96w, https://www.wpbeginner.com/wp-content/uploads/2017/02/monsterinsights-thumbnail-150x150.jpg 150w, https://www.wpbeginner.com/wp-content/uploads/2017/02/monsterinsights-thumbnail-72x72.jpg 72w, https://www.wpbeginner.com/wp-content/uploads/2017/02/monsterinsights-thumbnail-180x180.jpg 180w, https://www.wpbeginner.com/wp-content/uploads/2017/02/monsterinsights-thumbnail.jpg 250w" sizes="(max-width: 96px) 100vw, 96px" title="MonsterInsights" /></noscript></a></div><div class="dealsinfo"><div class="dealstitle"><a href="https://www.monsterinsights.com/?utm_source=wpbeginner&#038;utm_medium=link&#038;utm_campaign=products" title="MonsterInsights" target="_blank">MonsterInsights</a></div>Google Analytics made easy for WordPress. <a href="https://www.monsterinsights.com/?utm_source=wpbeginner&#038;utm_medium=link&#038;utm_campaign=products" title="MonsterInsights" target="_blank">View this plugin<svg width="11" height="11" aria-hidden="true" role="img" focusable="false"><use xlink:href="#regular-long-arrow-right"></use></svg></a></div></div> </div> </div> <a href="https://www.wpbeginner.com/start-a-wordpress-blog/" title="How to Start a Blog (Step by Step)" class="startablog"><img src="data:image/svg+xml,%3Csvg%20xmlns=&#039;http://www.w3.org/2000/svg&#039;%20width=&#039;300&#039;%20height=&#039;257&#039;%20viewBox=&#039;0%200%20300%20257&#039;%3E%3C/svg%3E" width="300" height="257" alt="How to Start a Blog" class="perfmatters-lazy" data-src="https://www.wpbeginner.com/wp-content/themes/wpbv7/assets/images/startablog.png" /><noscript><img src="https://www.wpbeginner.com/wp-content/themes/wpbv7/assets/images/startablog.png" width="300" height="257" alt="How to Start a Blog"/></noscript></a> <div class="sidebartoolkit widget"><div class="sidebartoolkit__icons"><svg width="12" height="12" aria-hidden="true" role="img" focusable="false"><use xlink:href="#regular-server"></use></svg><svg width="12" height="12" aria-hidden="true" role="img" focusable="false"><use xlink:href="#regular-tools"></use></svg><svg width="22" height="22" aria-hidden="true" role="img" focusable="false"><use xlink:href="#brands-wordpress"></use></svg><svg width="12" height="12" aria-hidden="true" role="img" focusable="false"><use xlink:href="#regular-plug"></use></svg><svg width="12" height="12" aria-hidden="true" role="img" focusable="false"><use xlink:href="#regular-browser"></use></svg></div><p class="sidebartoolkit__title">The Ultimate <strong>WordPress Toolkit</strong></p><p><strong>Get FREE access to our toolkit</strong> - a collection of WordPress related products and resources that every professional should have!</p><div class="wp-block-button"><a class="wp-block-button__link large" href="https://app.monstercampaigns.com/c/iyqfvnwed1i5jxbmo47x/" target="_blank" rel="noopener noreferrer">Download Now</a></div></div><div class="sidebarhelpwith widget"><div class="widgetheading">I need help with &hellip;</div> <div class="guideicons"> <a href="https://www.wpbeginner.com/start-a-wordpress-blog/" class="guideicon starting"><svg width="26" height="26" aria-hidden="true" role="img" focusable="false"><use xlink:href="#light-edit"></use></svg>Starting a <br/> Blog</a> <a href="https://www.wpbeginner.com/wordpress-seo/" class="guideicon seo"><svg width="26" height="26" aria-hidden="true" role="img" focusable="false"><use xlink:href="#light-chart-bar"></use></svg>WordPress <br/> SEO</a> <a href="https://www.wpbeginner.com/wordpress-performance-speed/" class="guideicon speed"><svg width="26" height="26" aria-hidden="true" role="img" focusable="false"><use xlink:href="#light-tachometer-alt-fast"></use></svg>WordPress <br/> Performance</a> <a href="https://www.wpbeginner.com/common-wordpress-errors-and-how-to-fix-them/" class="guideicon errors"><svg width="26" height="26" aria-hidden="true" role="img" focusable="false"><use xlink:href="#light-exclamation-circle"></use></svg>WordPress <br/> Errors</a> <a href="https://www.wpbeginner.com/wordpress-security/" class="guideicon security"><svg width="26" height="26" aria-hidden="true" role="img" focusable="false"><use xlink:href="#light-lock"></use></svg>WordPress <br/> Security</a> <a href="https://www.wpbeginner.com/wp-tutorials/how-to-start-an-online-store/" class="guideicon store"><svg width="26" height="26" aria-hidden="true" role="img" focusable="false"><use xlink:href="#light-shopping-cart"></use></svg>Building an <br/> Online Store</a> </div> <form role="search" method="get" class="search-form" action="https://www.wpbeginner.com/search/"> <input type="search" class="search-field" placeholder="Search WPBeginner&hellip;" value="" name="q" title="Search for"/> <button type="submit" class="search-submit" aria-label="Search"> <svg width="15" height="15" aria-hidden="true" role="img" focusable="false"><use xlink:href="#regular-search"></use></svg> <span>Search</span> </button> </form> </div><div class="sidebarwordpressguides widget"> <div class="widgetheading"> <span class="headingorange"> Latest </span> Posts </div> <div class="wpb-latest-posts-widget-list"> <ul><li><a href="https://www.wpbeginner.com/beginners-guide/profitable-ecommerce-business-ideas-for-wordpress/" data-category="guides">12 Profitable Ecommerce Business Ideas for WordPress (Expert Pick)</a></li></ul><ul><li><a href="https://www.wpbeginner.com/wp-tutorials/how-to-fix-wordpress-nav-menu-appearing-under-admin-bar/" data-category="guides">How to Fix WordPress Nav Menu Appearing Under Admin Bar</a></li></ul><ul><li><a href="https://www.wpbeginner.com/beginners-guide/white-labeling-ecommerce-explained-beginners/" data-category="guides">White Labeling Ecommerce Explained for Beginners</a></li></ul><ul><li><a href="https://www.wpbeginner.com/news/introducing-onepagega-google-analytics-reports-made-easy/" data-category="guides">Introducing OnePageGA: Google Analytics Reports Made Easy</a></li></ul><ul><li><a href="https://www.wpbeginner.com/wp-tutorials/how-to-add-or-change-wordpress-admin-icons/" data-category="guides">How to Add or Change WordPress Admin Icons (2 Easy Methods)</a></li></ul> </div> </div> <div class="sidebarwordpressguides widget"> <div class="widgetheading"> <span class="headingorange"> Useful </span> WordPress Guides </div> <div class="glider-contain"> <div class="glider"> <ul><li><a href="https://www.wpbeginner.com/beginners-guide/make-money-online/" data-category="guides">30 “Proven” Ways to Make Money Online Blogging with WordPress</a></li><li><a href="https://www.wpbeginner.com/beginners-guide/how-much-does-it-cost-to-build-a-wordpress-website/" data-category="guides">How Much Does It Really Cost to Build a WordPress Website?</a></li><li><a href="https://www.wpbeginner.com/beginners-guide/free-recording-wordpress-workshop-for-beginners/" data-category="guides">Free Recording: WordPress Workshop for Beginners</a></li><li><a href="https://www.wpbeginner.com/best-wordpress-popup-plugin/" data-category="guides">Which is the Best WordPress Popup Plugin? (Comparison)</a></li><li><a href="https://www.wpbeginner.com/plugins/best-wordpress-ecommerce-plugins-compared/" data-category="guides">5 Best WordPress Ecommerce Plugins Compared</a></li><li><a href="https://www.wpbeginner.com/beginners-guide/how-to-create-an-email-newsletter/" data-category="guides">How to Create an Email Newsletter the RIGHT WAY (Step by Step)</a></li></ul><ul><li><a href="https://www.wpbeginner.com/wp-tutorials/how-to-properly-move-your-blog-from-wordpress-com-to-wordpress-org/" data-category="guides">How to Properly Move Your Blog from WordPress.com to WordPress.org</a></li><li><a href="https://www.wpbeginner.com/wp-tutorials/how-to-properly-move-wordpress-to-a-new-domain-without-losing-seo/" data-category="guides">How to Properly Move WordPress to a New Domain Without Losing SEO</a></li><li><a href="https://www.wpbeginner.com/wp-tutorials/how-to-switch-from-blogger-to-wordpress-without-losing-google-rankings/" data-category="guides">How to Switch from Blogger to WordPress without Losing Rankings</a></li><li><a href="https://www.wpbeginner.com/wp-tutorials/how-to-properly-switch-from-wix-to-wordpress-step-by-step/" data-category="guides">How to Properly Switch From Wix to WordPress (Step by Step)</a></li><li><a href="https://www.wpbeginner.com/wp-tutorials/how-to-properly-move-from-squarespace-to-wordpress/" data-category="guides">How to Properly Move from Squarespace to WordPress</a></li><li><a href="https://www.wpbeginner.com/wp-tutorials/how-to-move-wordpress-to-a-new-host-or-server-with-no-downtime/" data-category="guides">How to Move WordPress to a New Host or Server With No Downtime</a></li></ul><ul><li><a href="https://www.wpbeginner.com/best-woocommerce-hosting/" data-category="guides">Best WooCommerce Hosting (Comparison)</a></li><li><a href="https://www.wpbeginner.com/the-truth-about-shared-wordpress-web-hosting/" data-category="guides">The Truth About Shared WordPress Web Hosting</a></li><li><a href="https://www.wpbeginner.com/managed-wordpress-hosting/" data-category="guides">When Do You Really Need Managed WordPress Hosting?</a></li><li><a href="https://www.wpbeginner.com/hosting/hostgator/" data-category="guides">HostGator Review - An Honest Look at Speed &amp; Uptime</a></li><li><a href="https://www.wpbeginner.com/hosting/siteground/" data-category="guides">SiteGround Reviews from 4,975 Users &amp; Our Experts</a></li><li><a href="https://www.wpbeginner.com/hosting/bluehost/" data-category="guides">Bluehost Review from Real Users + Performance Stats</a></li></ul><ul><li><a href="https://www.wpbeginner.com/beginners-guide/why-you-should-start-building-your-email-list-right-away/" data-category="guides">Why You Should Start Building an Email List Right Away</a></li><li><a href="https://www.wpbeginner.com/beginners-guide/why-is-wordpress-free-what-are-the-costs-what-is-the-catch/" data-category="guides">Why is WordPress Free? What are the Costs? What is the Catch?</a></li><li><a href="https://www.wpbeginner.com/beginners-guide/whats-the-difference-between-domain-name-and-web-hosting-explained/" data-category="guides">What’s the Difference Between Domain Name and Web Hosting (Explained)</a></li><li><a href="https://www.wpbeginner.com/beginners-guide/self-hosted-wordpress-org-vs-free-wordpress-com-infograph/" data-category="guides">WordPress.com vs WordPress.org – Which is Better? (Comparison Chart)</a></li><li><a href="https://www.wpbeginner.com/wp-tutorials/how-to-add-ssl-and-https-in-wordpress/" data-category="guides">How to Properly Move WordPress from HTTP to HTTPS (Beginner’s Guide)</a></li><li><a href="https://www.wpbeginner.com/beginners-guide/how-to-code-a-website-complete-beginners-guide/" data-category="guides">How to Code a Website (Complete Beginner’s Guide)</a></li></ul> </div> <div class="dots"></div> </div> </div> <div class="sidebardeals widget"><div class="widgetheading">Deals &amp; Coupons <a href="https://www.wpbeginner.com/deals/" class="viewdeals">(view all)</a></div><div class="relatedentry"><div class="dealsentry"><div class="dealsthumb"><a href="https://www.wpbeginner.com/deals/accesspress-themes-coupon/" title="AccessPress Themes Coupon"><img width="96" height="96" src="data:image/svg+xml,%3Csvg%20xmlns=&#039;http://www.w3.org/2000/svg&#039;%20width=&#039;96&#039;%20height=&#039;96&#039;%20viewBox=&#039;0%200%2096%2096&#039;%3E%3C/svg%3E" class="attachment-coupon-thumb size-coupon-thumb wp-post-image perfmatters-lazy" alt="AccessPress Themes" title="AccessPress Themes" decoding="async" data-src="https://www.wpbeginner.com/wp-content/uploads/2018/09/accesspressthemes-96x96.png" data-srcset="https://www.wpbeginner.com/wp-content/uploads/2018/09/accesspressthemes-96x96.png 96w, https://www.wpbeginner.com/wp-content/uploads/2018/09/accesspressthemes-150x150.png 150w, https://www.wpbeginner.com/wp-content/uploads/2018/09/accesspressthemes-72x72.png 72w, https://www.wpbeginner.com/wp-content/uploads/2018/09/accesspressthemes-180x180.png 180w, https://www.wpbeginner.com/wp-content/uploads/2018/09/accesspressthemes.png 250w" data-sizes="(max-width: 96px) 100vw, 96px" /><noscript><img width="96" height="96" src="https://www.wpbeginner.com/wp-content/uploads/2018/09/accesspressthemes-96x96.png" class="attachment-coupon-thumb size-coupon-thumb wp-post-image" alt="AccessPress Themes" title="AccessPress Themes" decoding="async" srcset="https://www.wpbeginner.com/wp-content/uploads/2018/09/accesspressthemes-96x96.png 96w, https://www.wpbeginner.com/wp-content/uploads/2018/09/accesspressthemes-150x150.png 150w, https://www.wpbeginner.com/wp-content/uploads/2018/09/accesspressthemes-72x72.png 72w, https://www.wpbeginner.com/wp-content/uploads/2018/09/accesspressthemes-180x180.png 180w, https://www.wpbeginner.com/wp-content/uploads/2018/09/accesspressthemes.png 250w" sizes="(max-width: 96px) 100vw, 96px" /></noscript></a></div><div class="dealsinfo"><div class="dealstitle"><a href="https://www.wpbeginner.com/deals/accesspress-themes-coupon/" title="AccessPress Themes Coupon">AccessPress Themes Coupon</a></div>Get 15% off on AccessPress Themes collection of premium WordPress themes and plugins.</div></div><div class="dealsentry"><div class="dealsthumb"><a href="https://www.wpbeginner.com/deals/webnus-coupon/" title="Webnus Coupon"><img width="96" height="96" src="data:image/svg+xml,%3Csvg%20xmlns=&#039;http://www.w3.org/2000/svg&#039;%20width=&#039;96&#039;%20height=&#039;96&#039;%20viewBox=&#039;0%200%2096%2096&#039;%3E%3C/svg%3E" class="attachment-coupon-thumb size-coupon-thumb wp-post-image perfmatters-lazy" alt="Webnus" title="Webnus" decoding="async" data-src="https://www.wpbeginner.com/wp-content/uploads/2019/03/webnus-96x96.png" data-srcset="https://www.wpbeginner.com/wp-content/uploads/2019/03/webnus-96x96.png 96w, https://www.wpbeginner.com/wp-content/uploads/2019/03/webnus-150x150.png 150w, https://www.wpbeginner.com/wp-content/uploads/2019/03/webnus-72x72.png 72w, https://www.wpbeginner.com/wp-content/uploads/2019/03/webnus-180x180.png 180w, https://www.wpbeginner.com/wp-content/uploads/2019/03/webnus.png 250w" data-sizes="(max-width: 96px) 100vw, 96px" /><noscript><img width="96" height="96" src="https://www.wpbeginner.com/wp-content/uploads/2019/03/webnus-96x96.png" class="attachment-coupon-thumb size-coupon-thumb wp-post-image" alt="Webnus" title="Webnus" decoding="async" srcset="https://www.wpbeginner.com/wp-content/uploads/2019/03/webnus-96x96.png 96w, https://www.wpbeginner.com/wp-content/uploads/2019/03/webnus-150x150.png 150w, https://www.wpbeginner.com/wp-content/uploads/2019/03/webnus-72x72.png 72w, https://www.wpbeginner.com/wp-content/uploads/2019/03/webnus-180x180.png 180w, https://www.wpbeginner.com/wp-content/uploads/2019/03/webnus.png 250w" sizes="(max-width: 96px) 100vw, 96px" /></noscript></a></div><div class="dealsinfo"><div class="dealstitle"><a href="https://www.wpbeginner.com/deals/webnus-coupon/" title="Webnus Coupon">Webnus Coupon</a></div>Get 20% OFF on Webnus themes and plugins for WordPress.</div></div></div></div></aside></div></div></div><footer class="wpb-site-footer"><div class="wrap"> <div class="wpb-site-footer-content"> <div class="wpb-site-footer__row"> <div class="wpb-site-footer__column"> <h4>Site Links</h4> <div class="wpb-site-footer__column-lists wpb-site-footer__column-lists--split"> <ul class="wpb-site-footer__column-list"> <li class="wpb-site-footer__column-list-item"> <a href="https://www.wpbeginner.com/about-wpbeginner/" class="wpb-site-footer__column-list-item-link">About us</a> </li> <li class="wpb-site-footer__column-list-item"> <a href="https://www.wpbeginner.com/wpbeginner-editorial-process/" class="wpb-site-footer__column-list-item-link">Editorial Standards</a> </li> <li class="wpb-site-footer__column-list-item"> <a href="https://www.wpbeginner.com/meet-our-wpbeginner-review-board/" class="wpb-site-footer__column-list-item-link">Meet Our Review Board</a> </li> <li class="wpb-site-footer__column-list-item"> <a href="https://www.wpbeginner.com/press/" class="wpb-site-footer__column-list-item-link">Press & Brand Assets</a> </li> <li class="wpb-site-footer__column-list-item"> <a href="https://www.wpbeginner.com/contact/" class="wpb-site-footer__column-list-item-link">Contact us</a> </li> </ul> <ul class="wpb-site-footer__column-list"> <li class="wpb-site-footer__column-list-item"> <a href="https://www.wpbeginner.com/privacy-policy/" class="wpb-site-footer__column-list-item-link">Privacy Policy</a> </li> <li class="wpb-site-footer__column-list-item"> <a href="https://www.wpbeginner.com/terms-of-use/" class="wpb-site-footer__column-list-item-link">Terms of Service</a> </li> <li class="wpb-site-footer__column-list-item"> <a href="https://www.wpbeginner.com/wpbeginner-disclaimer/" class="wpb-site-footer__column-list-item-link">FTC Disclosure</a> </li> <li class="wpb-site-footer__column-list-item"> <a href="https://www.wpbeginner.com/free-wordpress-blog-setup/" class="wpb-site-footer__column-list-item-link">Free Blog Setup</a> </li> <li class="wpb-site-footer__column-list-item"> <a href="https://www.wpbeginner.com/wpbeginner-growth-fund/" class="wpb-site-footer__column-list-item-link">Growth Fund</a> </li> </ul> </div> <div class="wpb-social-links"> <a href="https://facebook.com/wpbeginner" class="wpb-social-links__link" target="_blank" rel="noopener nofollow" title="Join WPBeginner on Facebook" > <svg width="20" height="20" aria-hidden="true" role="img" focusable="false" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M20.1217 10.0609C20.1217 4.50304 15.6187 0 10.0609 0C4.50304 0 0 4.50304 0 10.0609C0 15.0913 3.65112 19.2698 8.4787 20V12.9817H5.92292V10.0609H8.4787V7.87018C8.4787 5.35497 9.97972 3.93509 12.2515 3.93509C13.3874 3.93509 14.5233 4.13793 14.5233 4.13793V6.61258H13.2657C12.0081 6.61258 11.6024 7.38337 11.6024 8.19473V10.0609H14.4016L13.9554 12.9817H11.6024V20C16.43 19.2698 20.1217 15.0913 20.1217 10.0609Z" fill="white"/></svg> </a> <a href="https://www.facebook.com/groups/wpbeginner" class="wpb-social-links__link" target="_blank" rel="noopener nofollow" title="Join the WPBeginner group on Facebook" > <svg width="20" height="20" aria-hidden="true" role="img" focusable="false" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_454_46069)"><path d="M16.0182 14.4961C16.0182 13.6211 15.7682 12.7461 15.2682 12.1211C14.3932 11.1211 13.3932 10.6211 12.1432 10.6211C11.3932 10.6211 10.6432 10.6211 9.89319 10.6211C9.01819 10.6211 8.26819 10.8711 7.51819 11.3711C6.64319 11.9961 6.14319 12.8711 6.01819 13.8711C5.89319 14.9961 6.01819 16.2461 5.89319 17.4961C6.01819 17.4961 6.26819 17.6211 6.39319 17.6211C7.89319 17.9961 9.26819 18.3711 10.7682 18.3711C11.6432 18.3711 12.6432 18.3711 13.5182 18.2461C14.2682 18.1211 15.0182 17.8711 15.7682 17.6211C15.8932 17.6211 15.8932 17.4961 15.8932 17.3711C16.0182 16.3711 16.0182 15.3711 16.0182 14.4961Z" fill="white"/><path d="M7.8924 10.3779C8.1424 10.2529 8.2674 10.2529 8.5174 10.1279C7.7674 9.37793 7.3924 8.62793 7.3924 7.62793C6.5174 7.62793 5.6424 7.62793 4.7674 7.62793C4.26739 7.62793 3.7674 7.75293 3.3924 7.87793C2.0174 8.37793 0.892395 9.75293 0.892395 11.2529C0.892395 12.2529 0.892395 13.2529 0.892395 14.3779C0.892395 14.5029 0.892395 14.5029 1.0174 14.6279C2.0174 14.8779 3.0174 15.1279 4.0174 15.2529C4.3924 15.2529 4.8924 15.3779 5.2674 15.3779C5.2674 15.1279 5.2674 14.8779 5.2674 14.6279C5.2674 14.2529 5.2674 13.8779 5.3924 13.5029C5.7674 12.0029 6.6424 11.0029 7.8924 10.3779Z" fill="white"/><path d="M20.8922 11.5029C20.8922 11.0029 20.7672 10.3779 20.5172 9.87793C19.7672 8.37793 18.6422 7.62793 17.0172 7.62793C14.6422 7.62793 17.0172 7.62793 14.6422 7.62793C14.6422 8.62793 14.2672 9.50293 13.5172 10.1279C13.6422 10.1279 13.7672 10.2529 13.7672 10.2529C14.3922 10.5029 15.0172 10.8779 15.5172 11.3779C16.2672 12.2529 16.6422 13.2529 16.6422 14.3779C16.6422 14.6279 16.6422 15.0029 16.6422 15.2529C17.2672 15.1279 17.7672 15.1279 18.3922 15.0029C19.1422 14.8779 20.0172 14.6279 20.7672 14.2529C20.8922 14.2529 20.8922 14.1279 20.8922 14.0029C20.8922 13.3779 20.8922 12.3779 20.8922 11.5029Z" fill="white"/><path d="M11.0175 10.5017C12.6425 10.5017 14.0175 9.12671 13.8925 7.50171C13.8925 5.87671 12.5175 4.62671 11.0175 4.62671C9.39246 4.62671 8.01746 5.87671 8.01746 7.50171C8.14246 9.12671 9.39246 10.5017 11.0175 10.5017Z" fill="white"/><path d="M14.6415 7.25024C15.0165 7.37524 15.3915 7.50024 15.8915 7.50024C17.5165 7.50024 18.8915 6.12524 18.7665 4.50024C18.7665 2.87524 17.3915 1.62524 15.8915 1.62524C14.2665 1.62524 12.8915 2.87524 12.8915 4.50024C13.8915 5.00024 14.5165 6.00024 14.6415 7.25024Z" fill="white"/><path d="M5.89191 7.50415C6.39191 7.50415 7.01691 7.37915 7.39191 7.12915C7.51691 6.12915 8.01691 5.25415 8.76691 4.75415V4.62915C8.76691 3.00415 7.39191 1.75415 5.89191 1.75415C4.26691 1.75415 2.89191 3.00415 2.89191 4.62915C2.89191 6.12915 4.26691 7.50415 5.89191 7.50415Z" fill="white"/></g><defs><clipPath id="clip0_454_46069"><rect width="20" height="20" fill="white" transform="translate(0.892395)"/></clipPath></defs></svg> </a> <a href="https://x.com/wpbeginner" class="wpb-social-links__link" target="_blank" rel="noopener nofollow" title="Follow WPBeginner on X" > <svg width="20" height="20" aria-hidden="true" role="img" focusable="false" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_454_46076)"><path d="M12.5448 8.46L19.9765 0H18.2156L11.7598 7.34417L6.60731 0H0.663147L8.45648 11.1067L0.663147 19.9775H2.42398L9.23731 12.22L14.6798 19.9775H20.624L12.5448 8.46ZM10.1323 11.2042L9.34148 10.0975L3.05898 1.3H5.76398L10.8356 8.4025L11.6231 9.50917L18.2148 18.7408H15.5098L10.1323 11.2042Z" fill="white"/></g><defs><clipPath id="clip0_454_46076"><rect width="20" height="20" fill="white" transform="translate(0.663147)"/></clipPath></defs></svg> </a> <a href="https://www.instagram.com/wpbeginner/" class="wpb-social-links__link" target="_blank" rel="noopener nofollow" title="Follow WPBeginner on Instagram" > <svg width="20" height="20" aria-hidden="true" role="img" focusable="false" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_454_46080)"><path d="M0.464845 5.69275L0.464845 14.3073C0.464846 17.4457 3.0179 20 6.15759 20L14.7721 20C17.9118 20 20.4648 17.4469 20.4648 14.3073L20.4648 5.69148C20.4648 2.55306 17.9118 -0.00126446 14.7721 -0.00126432L6.15632 -0.00126395C3.0179 -0.00126381 0.463578 2.55179 0.463579 5.69148L0.464845 5.69275ZM18.7506 14.3073C18.7506 16.5005 16.9666 18.2857 14.7721 18.2857L6.15633 18.2857C3.9631 18.2857 2.17786 16.5017 2.17786 14.3073L2.17786 5.69148C2.17786 3.49826 3.96184 1.71302 6.15632 1.71302L14.7721 1.71302C16.9653 1.71302 18.7506 3.49699 18.7506 5.69148L18.7506 14.3073Z" fill="white"/><path d="M5.34611 10.0005C5.34611 12.8247 7.64323 15.1218 10.4674 15.1218C13.2916 15.1218 15.5887 12.8247 15.5887 10.0005C15.5887 7.17631 13.2916 4.87919 10.4674 4.87919C7.64323 4.87919 5.34611 7.17631 5.34611 10.0005ZM13.8732 10.0005C13.8732 11.8795 12.3452 13.4075 10.4662 13.4075C8.58716 13.4075 7.05913 11.8795 7.05913 10.0005C7.05913 8.12151 8.58716 6.59348 10.4662 6.59348C12.3452 6.59348 13.8732 8.12151 13.8732 10.0005Z" fill="white"/><path d="M15.8792 3.42811C15.1988 3.42811 14.6489 3.97926 14.6489 4.65839C14.6489 5.33752 15.2001 5.88867 15.8792 5.88867C16.5583 5.88867 17.1095 5.33752 17.1095 4.65839C17.1095 3.97926 16.5583 3.42811 15.8792 3.42811Z" fill="white"/></g><defs><clipPath id="clip0_454_46080"><rect width="20" height="20" fill="white" transform="matrix(-4.37114e-08 -1 -1 4.37114e-08 20.4648 20)"/></clipPath></defs></svg> </a> <a href="https://youtube.com/wpbeginner?sub_confirmation=1" class="wpb-social-links__link" target="_blank" rel="noopener nofollow" title="Subscribe to WPBeginner on YouTube" > <svg width="28" height="20" aria-hidden="true" role="img" focusable="false" viewBox="0 0 29 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M28.0691 3.17708C27.7566 1.92708 26.7671 0.9375 25.5691 0.625C23.3296 0 14.4754 0 14.4754 0C14.4754 0 5.56914 0 3.32956 0.625C2.13164 0.9375 1.14206 1.92708 0.829559 3.17708C0.204559 5.36458 0.204559 10.0521 0.204559 10.0521C0.204559 10.0521 0.204559 14.6875 0.829559 16.9271C1.14206 18.1771 2.13164 19.1146 3.32956 19.4271C5.56914 20 14.4754 20 14.4754 20C14.4754 20 23.3296 20 25.5691 19.4271C26.7671 19.1146 27.7566 18.1771 28.0691 16.9271C28.6941 14.6875 28.6941 10.0521 28.6941 10.0521C28.6941 10.0521 28.6941 5.36458 28.0691 3.17708ZM11.5587 14.2708V5.83333L18.9546 10.0521L11.5587 14.2708Z" fill="white"/></svg> </a> <a href="https://www.linkedin.com/company/wpbeginner/" class="wpb-social-links__link" target="_blank" rel="noopener nofollow" title="Join WPBeginner on LinkedIn" > <svg width="20" height="20" aria-hidden="true" role="img" focusable="false" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M19.0053 0H1.81777C1.05884 0 0.433838 0.669643 0.433838 1.47321V18.5714C0.433838 19.375 1.05884 20 1.81777 20H19.0053C19.7642 20 20.4338 19.375 20.4338 18.5714V1.47321C20.4338 0.669643 19.7642 0 19.0053 0ZM6.46062 17.1429H3.51419V7.63393H6.46062V17.1429ZM4.98741 6.29464C4.00527 6.29464 3.24634 5.53571 3.24634 4.59821C3.24634 3.66071 4.00527 2.85714 4.98741 2.85714C5.92491 2.85714 6.68384 3.66071 6.68384 4.59821C6.68384 5.53571 5.92491 6.29464 4.98741 6.29464ZM17.5767 17.1429H14.5856V12.5C14.5856 11.4286 14.5856 10 13.0678 10C11.5053 10 11.2821 11.2054 11.2821 12.4554V17.1429H8.33562V7.63393H11.1481V8.92857H11.1928C11.5946 8.16964 12.5767 7.36607 14.0053 7.36607C16.9963 7.36607 17.5767 9.375 17.5767 11.9196V17.1429Z" fill="white"/></svg> </a> <a href="https://app.monstercampaigns.com/c/vmrqpgrbcgdztg90fueg/" class="wpb-social-links__link" target="_blank" rel="noopener nofollow" title="Join WPBeginner Weekly Email Newsletter" > <svg width="20" height="20" aria-hidden="true" role="img" focusable="false" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M16 2H4C1.79086 2 0 3.79086 0 5.99999V15C0 17.2091 1.79086 19 4 19H16C18.2091 19 20 17.2091 20 15V5.99999C20 3.79086 18.2091 2 16 2ZM4 3.59H16C17.0657 3.59203 18.0025 4.29663 18.3 5.32L10.76 10.91C10.5534 11.112 10.2732 11.2209 9.98433 11.2115C9.69548 11.2021 9.42301 11.0751 9.23 10.86L1.72 5.33C2.01175 4.30972 2.9389 3.60216 4 3.59ZM1.59 15C1.59 16.331 2.66899 17.41 4 17.41H16C17.3271 17.4045 18.4 16.3271 18.4 15V6.96999L11.6 11.97C11.1654 12.3746 10.5938 12.5997 10 12.6C9.38274 12.5902 8.79115 12.3514 8.34 11.93L1.59 6.92999V15Z" fill="white"/></svg> </a> </div> </div> <div class="wpb-site-footer__column"> <h4>Free Tools</h4> <div class="wpb-site-footer__column-lists"> <ul class="wpb-site-footer__column-list"> <li class="wpb-site-footer__column-list-item"> <a href="https://www.wpbeginner.com/tools/business-name-generator/" class="wpb-site-footer__column-list-item-link">Business Name Generator</a> </li> <li class="wpb-site-footer__column-list-item"> <a href="https://www.wpbeginner.com/tools/wordpress-theme-detector" class="wpb-site-footer__column-list-item-link">WordPress Theme Detector</a> </li> <li class="wpb-site-footer__column-list-item"> <a href="https://www.wpbeginner.com/tools/keyword-generator-tool/" class="wpb-site-footer__column-list-item-link">SEO Keyword Generator</a> </li> <li class="wpb-site-footer__column-list-item"> <a href="https://www.wpbeginner.com/tools/headline-analyzer-tool/" class="wpb-site-footer__column-list-item-link">Headline Analyzer</a> </li> <li class="wpb-site-footer__column-list-item"> <a href="https://www.wpbeginner.com/tools/seo-analyzer-tool/" class="wpb-site-footer__column-list-item-link">Website SEO Analyzer</a> </li> <li class="wpb-site-footer__column-list-item"> <a href="https://www.wpbeginner.com/tools/email-signature-generator/" class="wpb-site-footer__column-list-item-link">Email Signature Generator</a> </li> <li class="wpb-site-footer__column-list-item"> <a href="https://www.wpbeginner.com/tools/" class="wpb-site-footer__column-list-item-link">27+ Free Business Tools</a> </li> </ul> </div> </div> <div class="wpb-site-footer__column"> <h4>Resources</h4> <div class="wpb-site-footer__column-lists"> <ul class="wpb-site-footer__column-list"> <li class="wpb-site-footer__column-list-item"> <a href="https://videos.wpbeginner.com/courses/" class="wpb-site-footer__column-list-item-link" target="_blank">WordPress Courses</a> </li> <li class="wpb-site-footer__column-list-item"> <a href="https://www.wpbeginner.com/glossary/" class="wpb-site-footer__column-list-item-link">WordPress Glossary</a> </li> <li class="wpb-site-footer__column-list-item"> <a href="https://www.wpbeginner.com/solutions/" class="wpb-site-footer__column-list-item-link">WordPress Product Reviews</a> </li> <li class="wpb-site-footer__column-list-item"> <a href="https://www.wpbeginner.com/deals/" class="wpb-site-footer__column-list-item-link">WordPress Deals</a> </li> <li class="wpb-site-footer__column-list-item"> <a href="https://www.wpbeginner.com/wordpress-seo/" class="wpb-site-footer__column-list-item-link">WordPress SEO</a> </li> <li class="wpb-site-footer__column-list-item"> <a href="https://www.wpbeginner.com/wordpress-security/" class="wpb-site-footer__column-list-item-link">WordPress Security</a> </li> </ul> </div> </div> </div> <div class="wpb-site-footer__row"> <h4>Our Brands</h4> </div> <div class="wpb-site-footer__row"> <div> <div class="wpb-site-footer__about-title"> <div> <svg xmlns="http://www.w3.org/2000/svg" width="52" height="52" viewBox="0 0 52 52" fill="none"> <rect width="52" height="52" rx="8" fill="#FF6600"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M12.6703 29.9054C11.6015 28.1268 11 26.1055 11 23.9629C11 16.8036 17.7157 11 25.9999 11C34.2842 11 41 16.8036 41 23.9629C41 26.1055 40.3985 28.1268 39.3296 29.9055C40.2666 30.9754 40.8236 32.3122 40.8236 33.7614C40.8236 37.299 37.5051 40.1667 33.4118 40.1667C30.6367 40.1667 28.2178 38.8487 26.9495 36.8973C26.6382 36.9172 26.3201 36.9259 25.9999 36.9259C25.6796 36.9259 25.3616 36.9172 25.0503 36.8973C23.7819 38.8487 21.3631 40.1667 18.5881 40.1667C14.4948 40.1667 11.1764 37.299 11.1764 33.7614C11.1764 32.3122 11.7333 30.9754 12.6703 29.9054ZM19.3566 27.96C21.1763 29.6296 23.969 30.9484 27.4616 30.9358C28.9006 30.9306 30.2936 30.6387 31.4459 30.1062L31.4404 28.5509C30.0032 29.0544 28.8195 29.1794 27.3655 29.1846C24.1426 29.1962 21.2899 27.8625 19.3508 26.3293L19.3566 27.96ZM32.3799 24.2562V20.647H21.7019V24.2562H32.3799ZM19.6573 24.2562V20.647H17.3596V24.2562H19.6573Z" fill="white"/> </svg> </div> <div> <h4>About WPBeginner®</h4> </div> </div> <div class="wpb-site-footer__about-content"> <p>WPBeginner is a free WordPress resource site for Beginners. WPBeginner was founded in July 2009 by <a href="https://syedbalkhi.com/" target="_blank" rel="noopener">Syed Balkhi</a>. The main goal of this site is to provide high quality WordPress tutorials and other training resources to help people learn WordPress and improve their websites.</p> </div> <div class="wpb-site-footer__hiring"> Join our team: <a href="https://awesomemotive.com/career/" target="_blank"> We are Hiring! </a> </div> <div class="wpb-site-footer__language-switcher"> <div class="wpb-language-switcher" style="min-width: 170px"> <div class="wpb-language-switcher__inner"> <a href="https://www.wpbeginner.com/fr/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/" data-iso="fr">Français</a><a href="https://www.wpbeginner.com/de/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/" data-iso="de">Deutsch</a><a href="https://www.wpbeginner.com/it/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/" data-iso="it">Italiano</a><a href="https://www.wpbeginner.com/ja/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/" data-iso="ja">日本語</a><a href="https://www.wpbeginner.com/pl/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/" data-iso="pl">Polski</a><a href="https://www.wpbeginner.com/pt/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/" data-iso="pt">Português</a><a href="https://www.wpbeginner.com/es/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/" data-iso="es">Español</a><a href="https://www.wpbeginner.com/sv/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/" data-iso="sv">Svenska</a><a href="https://www.wpbeginner.com/tr/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/" data-iso="tr">Türkçe</a> </div> <span class="current-lang" data-iso="en"><img src="data:image/svg+xml,%3Csvg%20xmlns=&#039;http://www.w3.org/2000/svg&#039;%20width=&#039;24&#039;%20height=&#039;24&#039;%20viewBox=&#039;0%200%2024%2024&#039;%3E%3C/svg%3E" width="24" height="24" alt class="perfmatters-lazy" data-src="https://www.wpbeginner.com/wp-content/themes/wpbv7/assets/images/globe.svg" /><noscript><img src="https://www.wpbeginner.com/wp-content/themes/wpbv7/assets/images/globe.svg" width="24" height="24" alt="" /></noscript>English</span> </div> </div> </div> <div class="extend-it-two-cols"> <div class="wpb-site-footer__column"> <div class="wpb-site-footer__column-lists wpb-site-footer__column-lists--split"> <ul class="wpb-site-footer__column-list"> <li class="wpb-site-footer__column-list-item"> <a href="https://www.wpbeginner.com/solutions/optinmonster/" class="wpb-site-footer__column-list-item-link">OptinMonster</a> </li> <li class="wpb-site-footer__column-list-item"> <a href="https://www.wpbeginner.com/solutions/wpforms/" class="wpb-site-footer__column-list-item-link">WPForms</a> </li> <li class="wpb-site-footer__column-list-item"> <a href="https://www.wpbeginner.com/solutions/all-in-one-seo/" class="wpb-site-footer__column-list-item-link">All in One SEO</a> </li> <li class="wpb-site-footer__column-list-item"> <a href="https://www.wpbeginner.com/solutions/monsterinsights/" class="wpb-site-footer__column-list-item-link">MonsterInsights</a> </li> <li class="wpb-site-footer__column-list-item"> <a href="https://www.wpbeginner.com/solutions/wp-mail-smtp/" class="wpb-site-footer__column-list-item-link">WP Mail SMTP</a> </li> <li class="wpb-site-footer__column-list-item"> <a href="https://www.wpbeginner.com/solutions/smash-balloon/" class="wpb-site-footer__column-list-item-link">Smash Balloon</a> </li> <li class="wpb-site-footer__column-list-item"> <a href="https://www.wpbeginner.com/solutions/seedprod/" class="wpb-site-footer__column-list-item-link">SeedProd</a> </li> <li class="wpb-site-footer__column-list-item"> <a href="https://www.nameboy.com/" class="wpb-site-footer__column-list-item-link" target="_blank">Nameboy</a> </li> </ul> <ul class="wpb-site-footer__column-list"> <li class="wpb-site-footer__column-list-item"> <a href="https://www.wpbeginner.com/solutions/duplicator/" class="wpb-site-footer__column-list-item-link">Duplicator</a> </li> <li class="wpb-site-footer__column-list-item"> <a href="https://www.wpbeginner.com/solutions/wp-simple-pay/" class="wpb-site-footer__column-list-item-link">WP Simple Pay</a> </li> <li class="wpb-site-footer__column-list-item"> <a href="https://www.wpbeginner.com/solutions/easy-digital-downloads/" class="wpb-site-footer__column-list-item-link">Easy Digital Downloads</a> </li> <li class="wpb-site-footer__column-list-item"> <a href="https://www.wpbeginner.com/solutions/searchwp/" class="wpb-site-footer__column-list-item-link">SearchWP</a> </li> <li class="wpb-site-footer__column-list-item"> <a href="https://www.wpbeginner.com/solutions/rafflepress/" class="wpb-site-footer__column-list-item-link">RafflePress</a> </li> <li class="wpb-site-footer__column-list-item"> <a href="https://www.wpbeginner.com/solutions/pushengage/" class="wpb-site-footer__column-list-item-link">PushEngage</a> </li> <li class="wpb-site-footer__column-list-item"> <a href="https://www.wpbeginner.com/solutions/wp-charitable/" class="wpb-site-footer__column-list-item-link">WP Charitable</a> </li> <li class="wpb-site-footer__column-list-item"> <a href="https://www.wpbeginner.com/solutions/affiliatewp/" class="wpb-site-footer__column-list-item-link">AffiliateWP</a> </li> </ul> </div> </div> </div> </div> </div> </div></footer> <div class="footer-copyright"> <div class="wrap"> <p> Copyright &copy; 2009 - 2024 WPBeginner LLC. All Rights Reserved. WPBeginner&reg; is a registered trademark. </p> <p> Managed by <u><a href="https://awesomemotive.com" target="_blank" rel="noopener">Awesome Motive</a></u> | <a href="https://www.wpbeginner.com/wordpress-hosting/" title="How to Choose the Best WordPress Hosting?">WordPress hosting</a> by <u><a href="https://www.wpbeginner.com/refer/siteground/" target="_blank" rel="nofollow noopener">SiteGround</a></u> </p> <p class="trademarks-footer"> The WordPress® trademark is the intellectual property of the WordPress Foundation. Uses of the WordPress®, names in this website are for identification purposes only and do not imply an endorsement by WordPress Foundation. WPBeginner is not endorsed or owned by, or affiliated with, the WordPress Foundation. </p> </div> </div> <div class="search-modal"><div class="wrap"><button class="search-modal__close" aria-label="Close Search"><svg width="20" height="20" aria-hidden="true" role="img" focusable="false"><use xlink:href="#regular-times"></use></svg></button><p class="search-modal__title">I need help with&hellip;</p><div class="search-modal__form"> <form role="search" method="get" class="search-form" action="https://www.wpbeginner.com/search/"> <input type="search" class="search-field" placeholder="Enter your keywords and search WPBeginner&hellip;" value="" name="q" title="Search for"/> <button type="submit" class="search-submit" aria-label="Search"> <svg width="15" height="15" aria-hidden="true" role="img" focusable="false"><use xlink:href="#regular-search"></use></svg> <span>Search</span> </button> </form> </div><p class="search-modal__popular">Popular searches:</p> <div class="guideicons"> <a href="https://www.wpbeginner.com/start-a-wordpress-blog/" class="guideicon starting"><svg width="26" height="26" aria-hidden="true" role="img" focusable="false"><use xlink:href="#light-edit"></use></svg>Starting a Blog</a> <a href="https://www.wpbeginner.com/wordpress-seo/" class="guideicon seo"><svg width="26" height="26" aria-hidden="true" role="img" focusable="false"><use xlink:href="#light-chart-bar"></use></svg>WordPress SEO</a> <a href="https://www.wpbeginner.com/wordpress-performance-speed/" class="guideicon speed"><svg width="26" height="26" aria-hidden="true" role="img" focusable="false"><use xlink:href="#light-tachometer-alt-fast"></use></svg>WordPress Performance</a> <a href="https://www.wpbeginner.com/common-wordpress-errors-and-how-to-fix-them/" class="guideicon errors"><svg width="26" height="26" aria-hidden="true" role="img" focusable="false"><use xlink:href="#light-exclamation-circle"></use></svg>WordPress Errors</a> <a href="https://www.wpbeginner.com/wordpress-security/" class="guideicon security"><svg width="26" height="26" aria-hidden="true" role="img" focusable="false"><use xlink:href="#light-lock"></use></svg>WordPress Security</a> <a href="https://www.wpbeginner.com/wp-tutorials/how-to-start-an-online-store/" class="guideicon store"><svg width="26" height="26" aria-hidden="true" role="img" focusable="false"><use xlink:href="#light-shopping-cart"></use></svg>Building an Online Store</a> </div> </div></div></div> <script type="pmdelayedscript" data-perfmatters-type="text/javascript" data-cfasync="false" data-no-optimize="1" data-no-defer="1" data-no-minify="1"> document.addEventListener('om.Scripts.init', function (event) { event.detail.Scripts.enabled.fonts = false; }); </script> <script type="pmdelayedscript" data-cfasync="false" data-no-optimize="1" data-no-defer="1" data-no-minify="1"> var sh3MaxRetries = 10, syntaxHighlighterTracker = 0; var syntaxHighlighterWrap = function () { var hs = document.querySelectorAll('.syntaxhighlighter'); hs.forEach(function (h) { if (h.nextElementSibling && h.nextElementSibling.classList.contains('wpcode-syntax-footer')) { return; } else { h.parentElement.classList.add('wpcode-syntax-legacy-prev-div'); } }); }; var waitForSyntaxHighlighterToLoad = function () { /* check max retries */ if (++syntaxHighlighterTracker > sh3MaxRetries) { return; } var hs = document.querySelectorAll('.syntaxhighlighter'); if (hs.length === 0) { /* wait for syntax highlighter to initialize */ setTimeout(waitForSyntaxHighlighterToLoad, 800); } else { syntaxHighlighterWrap(); } }; waitForSyntaxHighlighterToLoad(); </script> <!-- This site is converting visitors into subscribers and customers with OptinMonster - https://optinmonster.com :: Campaign Title: YouTube campaign - Funnelkit template --> <script type="pmdelayedscript" data-cfasync="false" data-no-optimize="1" data-no-defer="1" data-no-minify="1">(function(d,u,ac){var s=d.createElement('script');s.type='text/javascript';s.src='https://a.omappapi.com/app/js/api.min.js';s.async=true;s.dataset.user=u;s.dataset.campaign=ac;d.getElementsByTagName('head')[0].appendChild(s);})(document,1,'bpbdfdgdzpmrqcbireia');</script> <!-- / OptinMonster --><!-- This site is converting visitors into subscribers and customers with OptinMonster - https://optinmonster.com :: Campaign Title: Get a custom theme --> <script type="pmdelayedscript" data-cfasync="false" data-no-optimize="1" data-no-defer="1" data-no-minify="1">(function(d,u,ac){var s=d.createElement('script');s.type='text/javascript';s.src='https://a.omappapi.com/app/js/api.min.js';s.async=true;s.dataset.user=u;s.dataset.campaign=ac;d.getElementsByTagName('head')[0].appendChild(s);})(document,1,'gj8zuwtcac32cprejmvu');</script> <!-- / OptinMonster --><!-- This site is converting visitors into subscribers and customers with OptinMonster - https://optinmonster.com :: Campaign Title: Website Design Promo - Page Targeting --> <script type="pmdelayedscript" data-cfasync="false" data-no-optimize="1" data-no-defer="1" data-no-minify="1">(function(d,u,ac){var s=d.createElement('script');s.type='text/javascript';s.src='https://a.omappapi.com/app/js/api.min.js';s.async=true;s.dataset.user=u;s.dataset.campaign=ac;d.getElementsByTagName('head')[0].appendChild(s);})(document,1,'jitajycm2826lj21weqw');</script> <!-- / OptinMonster --><!-- This site is converting visitors into subscribers and customers with OptinMonster - https://optinmonster.com :: Campaign Title: Calendly link on Maintenance --> <script type="pmdelayedscript" data-cfasync="false" data-no-optimize="1" data-no-defer="1" data-no-minify="1">(function(d,u,ac){var s=d.createElement('script');s.type='text/javascript';s.src='https://a.omappapi.com/app/js/api.min.js';s.async=true;s.dataset.user=u;s.dataset.campaign=ac;d.getElementsByTagName('head')[0].appendChild(s);})(document,1,'smyde8mkgoufl0kqde9b');</script> <!-- / OptinMonster --><!-- This site is converting visitors into subscribers and customers with OptinMonster - https://optinmonster.com :: Campaign Title: Calendly link on Hacked Site --> <script type="pmdelayedscript" data-cfasync="false" data-no-optimize="1" data-no-defer="1" data-no-minify="1">(function(d,u,ac){var s=d.createElement('script');s.type='text/javascript';s.src='https://a.omappapi.com/app/js/api.min.js';s.async=true;s.dataset.user=u;s.dataset.campaign=ac;d.getElementsByTagName('head')[0].appendChild(s);})(document,1,'upf03gyvuqdbhwwtakkq');</script> <!-- / OptinMonster --><!-- This site is converting visitors into subscribers and customers with OptinMonster - https://optinmonster.com :: Campaign Title: Calendly link on Page Speed --> <script type="pmdelayedscript" data-cfasync="false" data-no-optimize="1" data-no-defer="1" data-no-minify="1">(function(d,u,ac){var s=d.createElement('script');s.type='text/javascript';s.src='https://a.omappapi.com/app/js/api.min.js';s.async=true;s.dataset.user=u;s.dataset.campaign=ac;d.getElementsByTagName('head')[0].appendChild(s);})(document,1,'ygz7dakejwybm2dgwzyn');</script> <!-- / OptinMonster --><!-- This site is converting visitors into subscribers and customers with OptinMonster - https://optinmonster.com :: Campaign Title: Calendly link on SEO --> <script type="pmdelayedscript" data-cfasync="false" data-no-optimize="1" data-no-defer="1" data-no-minify="1">(function(d,u,ac){var s=d.createElement('script');s.type='text/javascript';s.src='https://a.omappapi.com/app/js/api.min.js';s.async=true;s.dataset.user=u;s.dataset.campaign=ac;d.getElementsByTagName('head')[0].appendChild(s);})(document,1,'djpltannwqskloxol47k');</script> <!-- / OptinMonster --><!-- This site is converting visitors into subscribers and customers with OptinMonster - https://optinmonster.com :: Campaign Title: Calendly link on Design --> <script type="pmdelayedscript" data-cfasync="false" data-no-optimize="1" data-no-defer="1" data-no-minify="1">(function(d,u,ac){var s=d.createElement('script');s.type='text/javascript';s.src='https://a.omappapi.com/app/js/api.min.js';s.async=true;s.dataset.user=u;s.dataset.campaign=ac;d.getElementsByTagName('head')[0].appendChild(s);})(document,1,'usczpqoxctf5dncw1bhv');</script> <!-- / OptinMonster --><!-- This site is converting visitors into subscribers and customers with OptinMonster - https://optinmonster.com :: Campaign Title: Exit - Maintenance --> <script type="pmdelayedscript" data-cfasync="false" data-no-optimize="1" data-no-defer="1" data-no-minify="1">(function(d,u,ac){var s=d.createElement('script');s.type='text/javascript';s.src='https://a.omappapi.com/app/js/api.min.js';s.async=true;s.dataset.user=u;s.dataset.campaign=ac;d.getElementsByTagName('head')[0].appendChild(s);})(document,1,'boxnd4x4rrqs42xwvz1t');</script> <!-- / OptinMonster --><!-- This site is converting visitors into subscribers and customers with OptinMonster - https://optinmonster.com :: Campaign Title: WP Maintenance header bar --> <script type="pmdelayedscript" data-cfasync="false" data-no-optimize="1" data-no-defer="1" data-no-minify="1">(function(d,u,ac){var s=d.createElement('script');s.type='text/javascript';s.src='https://a.omappapi.com/app/js/api.min.js';s.async=true;s.dataset.user=u;s.dataset.campaign=ac;d.getElementsByTagName('head')[0].appendChild(s);})(document,1,'jk3encykedcat5mjtrxp');</script> <!-- / OptinMonster --><!-- This site is converting visitors into subscribers and customers with OptinMonster - https://optinmonster.com :: Campaign Title: 30-day popup --> <script type="pmdelayedscript" data-cfasync="false" data-no-optimize="1" data-no-defer="1" data-no-minify="1">(function(d,u,ac){var s=d.createElement('script');s.type='text/javascript';s.src='https://a.omappapi.com/app/js/api.min.js';s.async=true;s.dataset.user=u;s.dataset.campaign=ac;d.getElementsByTagName('head')[0].appendChild(s);})(document,1,'hysqjgfyyqsckdzvdaav');</script> <!-- / OptinMonster --><!-- This site is converting visitors into subscribers and customers with OptinMonster - https://optinmonster.com :: Campaign Title: Page: Fix WordPress Errors --> <script type="pmdelayedscript" data-cfasync="false" data-no-optimize="1" data-no-defer="1" data-no-minify="1">(function(d,u,ac){var s=d.createElement('script');s.type='text/javascript';s.src='https://a.omappapi.com/app/js/api.min.js';s.async=true;s.dataset.user=u;s.dataset.campaign=ac;d.getElementsByTagName('head')[0].appendChild(s);})(document,1,'voryezdmadohbszzg0mo');</script> <!-- / OptinMonster --><!-- This site is converting visitors into subscribers and customers with OptinMonster - https://optinmonster.com :: Campaign Title: Page: Free business email (grow business site) --> <script type="pmdelayedscript" data-cfasync="false" data-no-optimize="1" data-no-defer="1" data-no-minify="1">(function(d,u,ac){var s=d.createElement('script');s.type='text/javascript';s.src='https://a.omappapi.com/app/js/api.min.js';s.async=true;s.dataset.user=u;s.dataset.campaign=ac;d.getElementsByTagName('head')[0].appendChild(s);})(document,1,'sdhkwciylfkw0rnp6apr');</script> <!-- / OptinMonster --><!-- This site is converting visitors into subscribers and customers with OptinMonster - https://optinmonster.com :: Campaign Title: Page: Build a website --> <script type="pmdelayedscript" data-cfasync="false" data-no-optimize="1" data-no-defer="1" data-no-minify="1">(function(d,u,ac){var s=d.createElement('script');s.type='text/javascript';s.src='https://a.omappapi.com/app/js/api.min.js';s.async=true;s.dataset.user=u;s.dataset.campaign=ac;d.getElementsByTagName('head')[0].appendChild(s);})(document,1,'a6hl4vffeajqqe1dwl9e');</script> <!-- / OptinMonster --><!-- This site is converting visitors into subscribers and customers with OptinMonster - https://optinmonster.com :: Campaign Title: Ultimate WordPress Toolkit (New) --> <script type="pmdelayedscript" data-cfasync="false" data-no-optimize="1" data-no-defer="1" data-no-minify="1">(function(d,u,ac){var s=d.createElement('script');s.type='text/javascript';s.src='https://a.omappapi.com/app/js/api.min.js';s.async=true;s.dataset.user=u;s.dataset.campaign=ac;d.getElementsByTagName('head')[0].appendChild(s);})(document,1,'iyqfvnwed1i5jxbmo47x');</script> <!-- / OptinMonster --><!-- This site is converting visitors into subscribers and customers with OptinMonster - https://optinmonster.com :: Campaign Title: WPBeginner Newsletter MonsterLink (Sidebar) --> <script type="pmdelayedscript" data-cfasync="false" data-no-optimize="1" data-no-defer="1" data-no-minify="1">(function(d,u,ac){var s=d.createElement('script');s.type='text/javascript';s.src='https://a.omappapi.com/app/js/api.min.js';s.async=true;s.dataset.user=u;s.dataset.campaign=ac;d.getElementsByTagName('head')[0].appendChild(s);})(document,1,'vmrqpgrbcgdztg90fueg');</script> <!-- / OptinMonster --><script type="pmdelayedscript" data-perfmatters-type="text/javascript" data-cfasync="false" data-no-optimize="1" data-no-defer="1" data-no-minify="1"> /* MonsterInsights Scroll Tracking */ if ( typeof(jQuery) !== 'undefined' ) { jQuery( document ).ready(function(){ function monsterinsights_scroll_tracking_load() { if ( ( typeof(__gaTracker) !== 'undefined' && __gaTracker && __gaTracker.hasOwnProperty( "loaded" ) && __gaTracker.loaded == true ) || ( typeof(__gtagTracker) !== 'undefined' && __gtagTracker ) ) { (function(factory) { factory(jQuery); }(function($) { /* Scroll Depth */ "use strict"; var defaults = { percentage: true }; var $window = $(window), cache = [], scrollEventBound = false, lastPixelDepth = 0; /* * Plugin */ $.scrollDepth = function(options) { var startTime = +new Date(); options = $.extend({}, defaults, options); /* * Functions */ function sendEvent(action, label, scrollDistance, timing) { if ( 'undefined' === typeof MonsterInsightsObject || 'undefined' === typeof MonsterInsightsObject.sendEvent ) { return; } var paramName = action.toLowerCase(); var fieldsArray = { send_to: 'G-YFDKLJ5Q0T', non_interaction: true }; fieldsArray[paramName] = label; if (arguments.length > 3) { fieldsArray.scroll_timing = timing MonsterInsightsObject.sendEvent('event', 'scroll_depth', fieldsArray); } else { MonsterInsightsObject.sendEvent('event', 'scroll_depth', fieldsArray); } } function calculateMarks(docHeight) { return { '25%' : parseInt(docHeight * 0.25, 10), '50%' : parseInt(docHeight * 0.50, 10), '75%' : parseInt(docHeight * 0.75, 10), /* Cushion to trigger 100% event in iOS */ '100%': docHeight - 5 }; } function checkMarks(marks, scrollDistance, timing) { /* Check each active mark */ $.each(marks, function(key, val) { if ( $.inArray(key, cache) === -1 && scrollDistance >= val ) { sendEvent('Percentage', key, scrollDistance, timing); cache.push(key); } }); } function rounded(scrollDistance) { /* Returns String */ return (Math.floor(scrollDistance/250) * 250).toString(); } function init() { bindScrollDepth(); } /* * Public Methods */ /* Reset Scroll Depth with the originally initialized options */ $.scrollDepth.reset = function() { cache = []; lastPixelDepth = 0; $window.off('scroll.scrollDepth'); bindScrollDepth(); }; /* Add DOM elements to be tracked */ $.scrollDepth.addElements = function(elems) { if (typeof elems == "undefined" || !$.isArray(elems)) { return; } $.merge(options.elements, elems); /* If scroll event has been unbound from window, rebind */ if (!scrollEventBound) { bindScrollDepth(); } }; /* Remove DOM elements currently tracked */ $.scrollDepth.removeElements = function(elems) { if (typeof elems == "undefined" || !$.isArray(elems)) { return; } $.each(elems, function(index, elem) { var inElementsArray = $.inArray(elem, options.elements); var inCacheArray = $.inArray(elem, cache); if (inElementsArray != -1) { options.elements.splice(inElementsArray, 1); } if (inCacheArray != -1) { cache.splice(inCacheArray, 1); } }); }; /* * Throttle function borrowed from: * Underscore.js 1.5.2 * http://underscorejs.org * (c) 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Underscore may be freely distributed under the MIT license. */ function throttle(func, wait) { var context, args, result; var timeout = null; var previous = 0; var later = function() { previous = new Date; timeout = null; result = func.apply(context, args); }; return function() { var now = new Date; if (!previous) previous = now; var remaining = wait - (now - previous); context = this; args = arguments; if (remaining <= 0) { clearTimeout(timeout); timeout = null; previous = now; result = func.apply(context, args); } else if (!timeout) { timeout = setTimeout(later, remaining); } return result; }; } /* * Scroll Event */ function bindScrollDepth() { scrollEventBound = true; $window.on('scroll.scrollDepth', throttle(function() { /* * We calculate document and window height on each scroll event to * account for dynamic DOM changes. */ var docHeight = $(document).height(), winHeight = window.innerHeight ? window.innerHeight : $window.height(), scrollDistance = $window.scrollTop() + winHeight, /* Recalculate percentage marks */ marks = calculateMarks(docHeight), /* Timing */ timing = +new Date - startTime; checkMarks(marks, scrollDistance, timing); }, 500)); } init(); }; /* UMD export */ return $.scrollDepth; })); jQuery.scrollDepth(); } else { setTimeout(monsterinsights_scroll_tracking_load, 200); } } monsterinsights_scroll_tracking_load(); }); } /* End MonsterInsights Scroll Tracking */ </script> <script type="pmdelayedscript" data-perfmatters-type="text/javascript" data-cfasync="false" data-no-optimize="1" data-no-defer="1" data-no-minify="1"> var bpbdfdgdzpmrqcbireia_shortcode = true;var gj8zuwtcac32cprejmvu_shortcode = true;var jitajycm2826lj21weqw_shortcode = true;var smyde8mkgoufl0kqde9b_shortcode = true;var upf03gyvuqdbhwwtakkq_shortcode = true;var ygz7dakejwybm2dgwzyn_shortcode = true;var djpltannwqskloxol47k_shortcode = true;var usczpqoxctf5dncw1bhv_shortcode = true;var boxnd4x4rrqs42xwvz1t_shortcode = true;var jk3encykedcat5mjtrxp_shortcode = true;var hysqjgfyyqsckdzvdaav_shortcode = true;var voryezdmadohbszzg0mo_shortcode = true;var sdhkwciylfkw0rnp6apr_shortcode = true;var a6hl4vffeajqqe1dwl9e_shortcode = true;var iyqfvnwed1i5jxbmo47x_shortcode = true;var vmrqpgrbcgdztg90fueg_shortcode = true; </script> <script type="pmdelayedscript" src="https://www.wpbeginner.com/wp-content/plugins/syntaxhighlighter/syntaxhighlighter3/scripts/shCore.js?ver=3.0.9b" id="syntaxhighlighter-core-js" data-perfmatters-type="text/javascript" data-cfasync="false" data-no-optimize="1" data-no-defer="1" data-no-minify="1"></script> <script type="pmdelayedscript" src="https://www.wpbeginner.com/wp-content/plugins/syntaxhighlighter/syntaxhighlighter3/scripts/shBrushPhp.js?ver=3.0.9b" id="syntaxhighlighter-brush-php-js" data-perfmatters-type="text/javascript" data-cfasync="false" data-no-optimize="1" data-no-defer="1" data-no-minify="1"></script> <script type="pmdelayedscript" src="https://www.wpbeginner.com/wp-content/plugins/syntaxhighlighter/syntaxhighlighter3/scripts/shBrushSql.js?ver=3.0.9b" id="syntaxhighlighter-brush-sql-js" data-perfmatters-type="text/javascript" data-cfasync="false" data-no-optimize="1" data-no-defer="1" data-no-minify="1"></script> <script type="pmdelayedscript" data-perfmatters-type="text/javascript" data-cfasync="false" data-no-optimize="1" data-no-defer="1" data-no-minify="1"> (function(){ var corecss = document.createElement('link'); var themecss = document.createElement('link'); var corecssurl = "https://www.wpbeginner.com/wp-content/plugins/syntaxhighlighter/syntaxhighlighter3/styles/shCore.css?ver=3.0.9b"; if ( corecss.setAttribute ) { corecss.setAttribute( "rel", "stylesheet" ); corecss.setAttribute( "type", "text/css" ); corecss.setAttribute( "href", corecssurl ); } else { corecss.rel = "stylesheet"; corecss.href = corecssurl; } document.head.appendChild( corecss ); var themecssurl = "https://www.wpbeginner.com/wp-content/plugins/wpcode-syntaxhighlighter/wpcode.css?ver=3.0.9b"; if ( themecss.setAttribute ) { themecss.setAttribute( "rel", "stylesheet" ); themecss.setAttribute( "type", "text/css" ); themecss.setAttribute( "href", themecssurl ); } else { themecss.rel = "stylesheet"; themecss.href = themecssurl; } document.head.appendChild( themecss ); })(); SyntaxHighlighter.config.strings.expandSource = '+ expand source'; SyntaxHighlighter.config.strings.help = '?'; SyntaxHighlighter.config.strings.alert = 'SyntaxHighlighter\n\n'; SyntaxHighlighter.config.strings.noBrush = 'Can\'t find brush for: '; SyntaxHighlighter.config.strings.brushNotHtmlScript = 'Brush wasn\'t configured for html-script option: '; SyntaxHighlighter.defaults['auto-links'] = false; SyntaxHighlighter.defaults['pad-line-numbers'] = false; SyntaxHighlighter.defaults['toolbar'] = false; SyntaxHighlighter.all(); // Infinite scroll support if ( typeof( jQuery ) !== 'undefined' ) { jQuery( function( $ ) { $( document.body ).on( 'post-load', function() { SyntaxHighlighter.highlight(); } ); } ); } </script> <script type="pmdelayedscript" src="https://www.wpbeginner.com/wp-content/themes/wpbv7/assets/js/legacy-global.min.js?ver=70e68c1952dba879" id="wpb-legacy-global-js" data-perfmatters-type="text/javascript" data-cfasync="false" data-no-optimize="1" data-no-defer="1" data-no-minify="1"></script> <script type="pmdelayedscript" id="wpb-global-js-extra" data-perfmatters-type="text/javascript" data-cfasync="false" data-no-optimize="1" data-no-defer="1" data-no-minify="1"> /* <![CDATA[ */ var wpb_global_localized = {"searchFormErrorMessages":["More characters needed for effective search.","Expand your search terms for improved accuracy."]}; /* ]]> */ </script> <script type="pmdelayedscript" src="https://www.wpbeginner.com/wp-content/themes/wpbv7/assets/js/global.min.js?ver=ae173fbbfda6b490" id="wpb-global-js" data-perfmatters-type="text/javascript" data-cfasync="false" data-no-optimize="1" data-no-defer="1" data-no-minify="1"></script> <script type="pmdelayedscript" src="https://www.wpbeginner.com/wp-includes/js/comment-reply.min.js?ver=6.6.1" id="comment-reply-js" async="async" data-wp-strategy="async" data-perfmatters-type="text/javascript" data-cfasync="false" data-no-optimize="1" data-no-defer="1" data-no-minify="1"></script> <script type="text/javascript" id="perfmatters-lazy-load-js-before"> /* <![CDATA[ */ window.lazyLoadOptions={elements_selector:"img[data-src],.perfmatters-lazy,.perfmatters-lazy-css-bg",thresholds:"0px 0px",class_loading:"pmloading",class_loaded:"pmloaded",callback_loaded:function(element){if(element.tagName==="IFRAME"){if(element.classList.contains("pmloaded")){if(typeof window.jQuery!="undefined"){if(jQuery.fn.fitVids){jQuery(element).parent().fitVids()}}}}}};window.addEventListener("LazyLoad::Initialized",function(e){var lazyLoadInstance=e.detail.instance;}); /* ]]> */ </script> <script type="text/javascript" async src="https://www.wpbeginner.com/wp-content/plugins/perfmatters/js/lazyload.min.js?ver=2.3.3" id="perfmatters-lazy-load-js"></script> <script type="pmdelayedscript" data-cfasync="false" data-no-optimize="1" data-no-defer="1" data-no-minify="1">(function(d){var s=d.createElement("script");s.type="text/javascript";s.src="https://a.omappapi.com/app/js/api.min.js";s.async=true;s.id="omapi-script";d.getElementsByTagName("head")[0].appendChild(s);})(document);</script><script defer type="pmdelayedscript" src="https://www.wpbeginner.com/wp-content/plugins/akismet/_inc/akismet-frontend.js?ver=1728655458" id="akismet-frontend-js" data-perfmatters-type="text/javascript" data-cfasync="false" data-no-optimize="1" data-no-defer="1" data-no-minify="1"></script> <script type="pmdelayedscript" src="https://www.wpbeginner.com/wp-content/plugins/optinmonster/assets/dist/js/helper.min.js?ver=2.16.4" id="optinmonster-wp-helper-js" data-perfmatters-type="text/javascript" data-cfasync="false" data-no-optimize="1" data-no-defer="1" data-no-minify="1"></script> <svg style="display:none;"><defs><symbol id="solid-search"xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M505 442.7L405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z"/></symbol><symbol id="solid-times"xmlns="http://www.w3.org/2000/svg" viewBox="0 0 352 512"><path d="M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z"/></symbol><symbol id="solid-users"xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 512"><path d="M96 224c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64zm448 0c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64zm32 32h-64c-17.6 0-33.5 7.1-45.1 18.6 40.3 22.1 68.9 62 75.1 109.4h66c17.7 0 32-14.3 32-32v-32c0-35.3-28.7-64-64-64zm-256 0c61.9 0 112-50.1 112-112S381.9 32 320 32 208 82.1 208 144s50.1 112 112 112zm76.8 32h-8.3c-20.8 10-43.9 16-68.5 16s-47.6-6-68.5-16h-8.3C179.6 288 128 339.6 128 403.2V432c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48v-28.8c0-63.6-51.6-115.2-115.2-115.2zm-223.7-13.4C161.5 263.1 145.6 256 128 256H64c-35.3 0-64 28.7-64 64v32c0 17.7 14.3 32 32 32h65.9c6.3-47.4 34.9-87.3 75.2-109.4z"/></symbol><symbol id="regular-bars"xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"/></symbol><symbol id="regular-times"xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512"><path d="M207.6 256l107.72-107.72c6.23-6.23 6.23-16.34 0-22.58l-25.03-25.03c-6.23-6.23-16.34-6.23-22.58 0L160 208.4 52.28 100.68c-6.23-6.23-16.34-6.23-22.58 0L4.68 125.7c-6.23 6.23-6.23 16.34 0 22.58L112.4 256 4.68 363.72c-6.23 6.23-6.23 16.34 0 22.58l25.03 25.03c6.23 6.23 16.34 6.23 22.58 0L160 303.6l107.72 107.72c6.23 6.23 16.34 6.23 22.58 0l25.03-25.03c6.23-6.23 6.23-16.34 0-22.58L207.6 256z"/></symbol><symbol id="regular-chevron-down"xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M441.9 167.3l-19.8-19.8c-4.7-4.7-12.3-4.7-17 0L224 328.2 42.9 147.5c-4.7-4.7-12.3-4.7-17 0L6.1 167.3c-4.7 4.7-4.7 12.3 0 17l209.4 209.4c4.7 4.7 12.3 4.7 17 0l209.4-209.4c4.7-4.7 4.7-12.3 0-17z"/></symbol><symbol id="regular-envelope"xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M464 64H48C21.49 64 0 85.49 0 112v288c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V112c0-26.51-21.49-48-48-48zm0 48v40.805c-22.422 18.259-58.168 46.651-134.587 106.49-16.841 13.247-50.201 45.072-73.413 44.701-23.208.375-56.579-31.459-73.413-44.701C106.18 199.465 70.425 171.067 48 152.805V112h416zM48 400V214.398c22.914 18.251 55.409 43.862 104.938 82.646 21.857 17.205 60.134 55.186 103.062 54.955 42.717.231 80.509-37.199 103.053-54.947 49.528-38.783 82.032-64.401 104.947-82.653V400H48z"/></symbol><symbol id="regular-arrow-right"xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M218.101 38.101L198.302 57.9c-4.686 4.686-4.686 12.284 0 16.971L353.432 230H12c-6.627 0-12 5.373-12 12v28c0 6.627 5.373 12 12 12h341.432l-155.13 155.13c-4.686 4.686-4.686 12.284 0 16.971l19.799 19.799c4.686 4.686 12.284 4.686 16.971 0l209.414-209.414c4.686-4.686 4.686-12.284 0-16.971L235.071 38.101c-4.686-4.687-12.284-4.687-16.97 0z"/></symbol><symbol id="regular-server"xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M424 400c0 13.255-10.745 24-24 24s-24-10.745-24-24 10.745-24 24-24 24 10.745 24 24zm-88-24c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24zm64-144c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24zm-64 0c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24zm176-72a47.758 47.758 0 01-6.438 24A47.758 47.758 0 01512 208v96a47.758 47.758 0 01-6.438 24A47.758 47.758 0 01512 352v96c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48v-96a47.758 47.758 0 016.438-24A47.758 47.758 0 010 304v-96a47.758 47.758 0 016.438-24A47.758 47.758 0 010 160V64c0-26.51 21.49-48 48-48h416c26.51 0 48 21.49 48 48v96zm-464 0h416V64H48v96zm416 48H48v96h416v-96zm0 144H48v96h416v-96zm-64-216c13.255 0 24-10.745 24-24s-10.745-24-24-24-24 10.745-24 24 10.745 24 24 24zm-64 0c13.255 0 24-10.745 24-24s-10.745-24-24-24-24 10.745-24 24 10.745 24 24 24z"/></symbol><symbol id="regular-tools"xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M224 96.1v48.8l29.7 29.7c-6.8-34.8 3.5-70.3 28.5-95.3 20.3-20.3 47.2-31.2 75-31.2h1.2L301 105.3l15.1 90.6 90.6 15.1 57.3-57.3c.3 28.3-10.6 55.5-31.2 76.1-9.3 9.3-20.2 16.4-31.8 21.6 1.8 1.6 3.9 2.9 5.6 4.6l30.7 30.7c10.5-6.3 20.5-13.9 29.4-22.9 38.1-38.1 53.7-94.3 40.7-146.6C504.4 105 495 95.4 483 92c-12.2-3.4-25.2.1-34 9l-58.7 58.6-32.4-5.4-5.4-32.4 58.6-58.6c8.9-8.9 12.3-21.9 8.9-34-3.3-12.1-13-21.5-25.2-24.5-53.2-13.2-107.9 2-146.6 40.6C238 55.5 229.7 67 222.9 79.2l1.1.8v16.1zM106 454c-12.8 12.8-35.3 12.8-48.1 0-6.4-6.4-10-15-10-24 0-9.1 3.5-17.6 10-24l134.4-134.4-33.9-33.9L24 372C8.5 387.5 0 408.1 0 430s8.5 42.5 24 58 36.1 24 58 24 42.5-8.5 58-24l100.9-100.9c-9.7-15.8-15.2-33.8-15.7-52.1L106 454zm395.1-58.3L384 278.6c-23.1-23.1-57.6-27.6-85.4-13.9L192 158.1V96L64 0 0 64l96 128h62.1l106.6 106.6c-13.6 27.8-9.2 62.3 13.9 85.4l117.1 117.1c14.6 14.6 38.2 14.6 52.7 0l52.7-52.7c14.5-14.6 14.5-38.2 0-52.7z"/></symbol><symbol id="regular-plug"xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512"><path d="M312 24a24 24 0 00-48 0v88h48zm-192 0a24 24 0 00-48 0v88h48zm248 120H16a16 16 0 00-16 16v16a16 16 0 0016 16h16v64c0 80.14 59.11 145.92 136 157.58V512h48v-98.42c76.89-11.66 136-77.44 136-157.58v-64h16a16 16 0 0016-16v-16a16 16 0 00-16-16zm-64 112a112 112 0 01-224 0v-64h224z"/></symbol><symbol id="regular-browser"xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M464 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zM48 92c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v24c0 6.6-5.4 12-12 12H60c-6.6 0-12-5.4-12-12V92zm416 334c0 3.3-2.7 6-6 6H54c-3.3 0-6-2.7-6-6V168h416v258zm0-310c0 6.6-5.4 12-12 12H172c-6.6 0-12-5.4-12-12V92c0-6.6 5.4-12 12-12h280c6.6 0 12 5.4 12 12v24z"/></symbol><symbol id="regular-level-down"xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512"><path d="M316.485 392l-116 116.485c-4.686 4.686-12.284 4.686-16.971 0L67.515 392c-4.686-4.686-4.686-12.284 0-16.971l22.312-22.312c4.808-4.808 12.646-4.665 17.275.315L164 414.996V56H44.024a11.996 11.996 0 01-8.485-3.515l-32-32C-4.021 12.926 1.333 0 12.024 0H196c13.255 0 24 10.745 24 24v390.996l56.899-61.963c4.629-4.98 12.467-5.123 17.275-.315l22.312 22.312c4.686 4.686 4.686 12.284-.001 16.97z"/></symbol><symbol id="regular-long-arrow-right"xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M295.515 115.716l-19.626 19.626c-4.753 4.753-4.675 12.484.173 17.14L356.78 230H12c-6.627 0-12 5.373-12 12v28c0 6.627 5.373 12 12 12h344.78l-80.717 77.518c-4.849 4.656-4.927 12.387-.173 17.14l19.626 19.626c4.686 4.686 12.284 4.686 16.971 0l131.799-131.799c4.686-4.686 4.686-12.284 0-16.971L312.485 115.716c-4.686-4.686-12.284-4.686-16.97 0z"/></symbol><symbol id="regular-search"xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M508.5 468.9L387.1 347.5c-2.3-2.3-5.3-3.5-8.5-3.5h-13.2c31.5-36.5 50.6-84 50.6-136C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c52 0 99.5-19.1 136-50.6v13.2c0 3.2 1.3 6.2 3.5 8.5l121.4 121.4c4.7 4.7 12.3 4.7 17 0l22.6-22.6c4.7-4.7 4.7-12.3 0-17zM208 368c-88.4 0-160-71.6-160-160S119.6 48 208 48s160 71.6 160 160-71.6 160-160 160z"/></symbol><symbol id="brands-facebook-square"xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M400 32H48A48 48 0 000 80v352a48 48 0 0048 48h137.25V327.69h-63V256h63v-54.64c0-62.15 37-96.48 93.67-96.48 27.14 0 55.52 4.84 55.52 4.84v61h-31.27c-30.81 0-40.42 19.12-40.42 38.73V256h68.78l-11 71.69h-57.78V480H400a48 48 0 0048-48V80a48 48 0 00-48-48z"/></symbol><symbol id="brands-twitter"xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M459.37 151.716c.325 4.548.325 9.097.325 13.645 0 138.72-105.583 298.558-298.558 298.558-59.452 0-114.68-17.219-161.137-47.106 8.447.974 16.568 1.299 25.34 1.299 49.055 0 94.213-16.568 130.274-44.832-46.132-.975-84.792-31.188-98.112-72.772 6.498.974 12.995 1.624 19.818 1.624 9.421 0 18.843-1.3 27.614-3.573-48.081-9.747-84.143-51.98-84.143-102.985v-1.299c13.969 7.797 30.214 12.67 47.431 13.319-28.264-18.843-46.781-51.005-46.781-87.391 0-19.492 5.197-37.36 14.294-52.954 51.655 63.675 129.3 105.258 216.365 109.807-1.624-7.797-2.599-15.918-2.599-24.04 0-57.828 46.782-104.934 104.934-104.934 30.213 0 57.502 12.67 76.67 33.137 23.715-4.548 46.456-13.32 66.599-25.34-7.798 24.366-24.366 44.833-46.132 57.827 21.117-2.273 41.584-8.122 60.426-16.243-14.292 20.791-32.161 39.308-52.628 54.253z"/></symbol><symbol id="brands-youtube"xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><path d="M549.655 124.083c-6.281-23.65-24.787-42.276-48.284-48.597C458.781 64 288 64 288 64S117.22 64 74.629 75.486c-23.497 6.322-42.003 24.947-48.284 48.597-11.412 42.867-11.412 132.305-11.412 132.305s0 89.438 11.412 132.305c6.281 23.65 24.787 41.5 48.284 47.821C117.22 448 288 448 288 448s170.78 0 213.371-11.486c23.497-6.321 42.003-24.171 48.284-47.821 11.412-42.867 11.412-132.305 11.412-132.305s0-89.438-11.412-132.305zm-317.51 213.508V175.185l142.739 81.205-142.739 81.201z"/></symbol><symbol id="brands-instagram"xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M224.1 141c-63.6 0-114.9 51.3-114.9 114.9s51.3 114.9 114.9 114.9S339 319.5 339 255.9 287.7 141 224.1 141zm0 189.6c-41.1 0-74.7-33.5-74.7-74.7s33.5-74.7 74.7-74.7 74.7 33.5 74.7 74.7-33.6 74.7-74.7 74.7zm146.4-194.3c0 14.9-12 26.8-26.8 26.8-14.9 0-26.8-12-26.8-26.8s12-26.8 26.8-26.8 26.8 12 26.8 26.8zm76.1 27.2c-1.7-35.9-9.9-67.7-36.2-93.9-26.2-26.2-58-34.4-93.9-36.2-37-2.1-147.9-2.1-184.9 0-35.8 1.7-67.6 9.9-93.9 36.1s-34.4 58-36.2 93.9c-2.1 37-2.1 147.9 0 184.9 1.7 35.9 9.9 67.7 36.2 93.9s58 34.4 93.9 36.2c37 2.1 147.9 2.1 184.9 0 35.9-1.7 67.7-9.9 93.9-36.2 26.2-26.2 34.4-58 36.2-93.9 2.1-37 2.1-147.8 0-184.8zM398.8 388c-7.8 19.6-22.9 34.7-42.6 42.6-29.5 11.7-99.5 9-132.1 9s-102.7 2.6-132.1-9c-19.6-7.8-34.7-22.9-42.6-42.6-11.7-29.5-9-99.5-9-132.1s-2.6-102.7 9-132.1c7.8-19.6 22.9-34.7 42.6-42.6 29.5-11.7 99.5-9 132.1-9s102.7-2.6 132.1 9c19.6 7.8 34.7 22.9 42.6 42.6 11.7 29.5 9 99.5 9 132.1s2.7 102.7-9 132.1z"/></symbol><symbol id="brands-pinterest"xmlns="http://www.w3.org/2000/svg" viewBox="0 0 496 512"><path d="M496 256c0 137-111 248-248 248-25.6 0-50.2-3.9-73.4-11.1 10.1-16.5 25.2-43.5 30.8-65 3-11.6 15.4-59 15.4-59 8.1 15.4 31.7 28.5 56.8 28.5 74.8 0 128.7-68.8 128.7-154.3 0-81.9-66.9-143.2-152.9-143.2-107 0-163.9 71.8-163.9 150.1 0 36.4 19.4 81.7 50.3 96.1 4.7 2.2 7.2 1.2 8.3-3.3.8-3.4 5-20.3 6.9-28.1.6-2.5.3-4.7-1.7-7.1-10.1-12.5-18.3-35.3-18.3-56.6 0-54.7 41.4-107.6 112-107.6 60.9 0 103.6 41.5 103.6 100.9 0 67.1-33.9 113.6-78 113.6-24.3 0-42.6-20.1-36.7-44.8 7-29.5 20.5-61.3 20.5-82.6 0-19-10.2-34.9-31.4-34.9-24.9 0-44.9 25.7-44.9 60.2 0 22 7.4 36.8 7.4 36.8s-24.5 103.8-29 123.2c-5 21.4-3 51.6-.9 71.2C65.4 450.9 0 361.1 0 256 0 119 111 8 248 8s248 111 248 248z"/></symbol><symbol id="brands-linkedin"xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M416 32H31.9C14.3 32 0 46.5 0 64.3v383.4C0 465.5 14.3 480 31.9 480H416c17.6 0 32-14.5 32-32.3V64.3c0-17.8-14.4-32.3-32-32.3zM135.4 416H69V202.2h66.5V416zm-33.2-243c-21.3 0-38.5-17.3-38.5-38.5S80.9 96 102.2 96c21.2 0 38.5 17.3 38.5 38.5 0 21.3-17.2 38.5-38.5 38.5zm282.1 243h-66.4V312c0-24.8-.5-56.7-34.5-56.7-34.6 0-39.9 27-39.9 54.9V416h-66.4V202.2h63.7v29.2h.9c8.9-16.8 30.6-34.5 62.9-34.5 67.2 0 79.7 44.3 79.7 101.9V416z"/></symbol><symbol id="brands-wordpress"xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M61.7 169.4l101.5 278C92.2 413 43.3 340.2 43.3 256c0-30.9 6.6-60.1 18.4-86.6zm337.9 75.9c0-26.3-9.4-44.5-17.5-58.7-10.8-17.5-20.9-32.4-20.9-49.9 0-19.6 14.8-37.8 35.7-37.8.9 0 1.8.1 2.8.2-37.9-34.7-88.3-55.9-143.7-55.9-74.3 0-139.7 38.1-177.8 95.9 5 .2 9.7.3 13.7.3 22.2 0 56.7-2.7 56.7-2.7 11.5-.7 12.8 16.2 1.4 17.5 0 0-11.5 1.3-24.3 2l77.5 230.4L249.8 247l-33.1-90.8c-11.5-.7-22.3-2-22.3-2-11.5-.7-10.1-18.2 1.3-17.5 0 0 35.1 2.7 56 2.7 22.2 0 56.7-2.7 56.7-2.7 11.5-.7 12.8 16.2 1.4 17.5 0 0-11.5 1.3-24.3 2l76.9 228.7 21.2-70.9c9-29.4 16-50.5 16-68.7zm-139.9 29.3l-63.8 185.5c19.1 5.6 39.2 8.7 60.1 8.7 24.8 0 48.5-4.3 70.6-12.1-.6-.9-1.1-1.9-1.5-2.9l-65.4-179.2zm183-120.7c.9 6.8 1.4 14 1.4 21.9 0 21.6-4 45.8-16.2 76.2l-65 187.9C426.2 403 468.7 334.5 468.7 256c0-37-9.4-71.8-26-102.1zM504 256c0 136.8-111.3 248-248 248C119.2 504 8 392.7 8 256 8 119.2 119.2 8 256 8c136.7 0 248 111.2 248 248zm-11.4 0c0-130.5-106.2-236.6-236.6-236.6C125.5 19.4 19.4 125.5 19.4 256S125.6 492.6 256 492.6c130.5 0 236.6-106.1 236.6-236.6z"/></symbol><symbol id="light-comment-lines"xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M280 272H136c-4.4 0-8 3.6-8 8v16c0 4.4 3.6 8 8 8h144c4.4 0 8-3.6 8-8v-16c0-4.4-3.6-8-8-8zm96-96H136c-4.4 0-8 3.6-8 8v16c0 4.4 3.6 8 8 8h240c4.4 0 8-3.6 8-8v-16c0-4.4-3.6-8-8-8zM256 32C114.6 32 0 125.1 0 240c0 47.6 19.9 91.2 52.9 126.3C38 405.7 7 439.1 6.5 439.5c-6.6 7-8.4 17.2-4.6 26S14.4 480 24 480c61.5 0 110-25.7 139.1-46.3C192 442.8 223.2 448 256 448c141.4 0 256-93.1 256-208S397.4 32 256 32zm0 384c-28.3 0-56.3-4.3-83.2-12.8l-15.2-4.8-13 9.2c-23 16.3-58.5 35.3-102.6 39.6 12-15.1 29.8-40.4 40.8-69.6l7.1-18.7-13.7-14.6C47.3 313.7 32 277.6 32 240c0-97 100.5-176 224-176s224 79 224 176-100.5 176-224 176z"/></symbol><symbol id="light-edit"xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><path d="M417.8 315.5l20-20c3.8-3.8 10.2-1.1 10.2 4.2V464c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V112c0-26.5 21.5-48 48-48h292.3c5.3 0 8 6.5 4.2 10.2l-20 20c-1.1 1.1-2.7 1.8-4.2 1.8H48c-8.8 0-16 7.2-16 16v352c0 8.8 7.2 16 16 16h352c8.8 0 16-7.2 16-16V319.7c0-1.6.6-3.1 1.8-4.2zm145.9-191.2L251.2 436.8l-99.9 11.1c-13.4 1.5-24.7-9.8-23.2-23.2l11.1-99.9L451.7 12.3c16.4-16.4 43-16.4 59.4 0l52.6 52.6c16.4 16.4 16.4 43 0 59.4zm-93.6 48.4L403.4 106 169.8 339.5l-8.3 75.1 75.1-8.3 233.5-233.6zm71-85.2l-52.6-52.6c-3.8-3.8-10.2-4-14.1 0L426 83.3l66.7 66.7 48.4-48.4c3.9-3.8 3.9-10.2 0-14.1z"/></symbol><symbol id="light-chart-bar"xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M424 352h16c4.4 0 8-3.6 8-8V104c0-4.4-3.6-8-8-8h-16c-4.4 0-8 3.6-8 8v240c0 4.4 3.6 8 8 8zm-96 0h16c4.4 0 8-3.6 8-8V200c0-4.4-3.6-8-8-8h-16c-4.4 0-8 3.6-8 8v144c0 4.4 3.6 8 8 8zm-192 0h16c4.4 0 8-3.6 8-8v-80c0-4.4-3.6-8-8-8h-16c-4.4 0-8 3.6-8 8v80c0 4.4 3.6 8 8 8zm96 0h16c4.4 0 8-3.6 8-8V136c0-4.4-3.6-8-8-8h-16c-4.4 0-8 3.6-8 8v208c0 4.4 3.6 8 8 8zm272 64H32V72c0-4.42-3.58-8-8-8H8c-4.42 0-8 3.58-8 8v360c0 8.84 7.16 16 16 16h488c4.42 0 8-3.58 8-8v-16c0-4.42-3.58-8-8-8z"/></symbol><symbol id="light-tachometer-alt-fast"xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><path d="M120 320c0 13.26-10.74 24-24 24s-24-10.74-24-24 10.74-24 24-24 24 10.74 24 24zm168-168c13.26 0 24-10.74 24-24s-10.74-24-24-24-24 10.74-24 24 10.74 24 24 24zm-136 8c-13.26 0-24 10.74-24 24s10.74 24 24 24 24-10.74 24-24-10.74-24-24-24zm282.06 11.56c6.88 5.56 7.94 15.64 2.38 22.5l-97.14 120C347.18 324.7 352 337.74 352 352c0 35.35-28.65 64-64 64s-64-28.65-64-64 28.65-64 64-64c9.47 0 18.38 2.18 26.47 5.88l97.09-119.94c5.56-6.88 15.6-7.92 22.5-2.38zM320 352c0-17.67-14.33-32-32-32s-32 14.33-32 32 14.33 32 32 32 32-14.33 32-32zm160-56c-13.26 0-24 10.74-24 24s10.74 24 24 24 24-10.74 24-24-10.74-24-24-24zm96 24c0 52.8-14.25 102.26-39.06 144.8-5.61 9.62-16.3 15.2-27.44 15.2h-443c-11.14 0-21.83-5.58-27.44-15.2C14.25 422.26 0 372.8 0 320 0 160.94 128.94 32 288 32s288 128.94 288 288zm-32 0c0-141.16-114.84-256-256-256S32 178.84 32 320c0 45.26 12 89.75 34.7 128.68l442.8-.68C532 409.75 544 365.26 544 320z"/></symbol><symbol id="light-exclamation-circle"xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M256 40c118.621 0 216 96.075 216 216 0 119.291-96.61 216-216 216-119.244 0-216-96.562-216-216 0-119.203 96.602-216 216-216m0-32C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm-11.49 120h22.979c6.823 0 12.274 5.682 11.99 12.5l-7 168c-.268 6.428-5.556 11.5-11.99 11.5h-8.979c-6.433 0-11.722-5.073-11.99-11.5l-7-168c-.283-6.818 5.167-12.5 11.99-12.5zM256 340c-15.464 0-28 12.536-28 28s12.536 28 28 28 28-12.536 28-28-12.536-28-28-28z"/></symbol><symbol id="light-lock"xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M400 224h-16v-62.5C384 73.1 312.9.3 224.5 0 136-.3 64 71.6 64 160v64H48c-26.5 0-48 21.5-48 48v192c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V272c0-26.5-21.5-48-48-48zM96 160c0-70.6 57.4-128 128-128s128 57.4 128 128v64H96v-64zm304 320H48c-8.8 0-16-7.2-16-16V272c0-8.8 7.2-16 16-16h352c8.8 0 16 7.2 16 16v192c0 8.8-7.2 16-16 16z"/></symbol><symbol id="light-shopping-cart"xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><path d="M551.991 64H129.28l-8.329-44.423C118.822 8.226 108.911 0 97.362 0H12C5.373 0 0 5.373 0 12v8c0 6.627 5.373 12 12 12h78.72l69.927 372.946C150.305 416.314 144 431.42 144 448c0 35.346 28.654 64 64 64s64-28.654 64-64a63.681 63.681 0 00-8.583-32h145.167a63.681 63.681 0 00-8.583 32c0 35.346 28.654 64 64 64 35.346 0 64-28.654 64-64 0-17.993-7.435-34.24-19.388-45.868C506.022 391.891 496.76 384 485.328 384H189.28l-12-64h331.381c11.368 0 21.177-7.976 23.496-19.105l43.331-208C578.592 77.991 567.215 64 551.991 64zM240 448c0 17.645-14.355 32-32 32s-32-14.355-32-32 14.355-32 32-32 32 14.355 32 32zm224 32c-17.645 0-32-14.355-32-32s14.355-32 32-32 32 14.355 32 32-14.355 32-32 32zm38.156-192H171.28l-36-192h406.876l-40 192z"/></symbol></defs></svg> <script type="pmdelayedscript" data-perfmatters-type="text/javascript" data-cfasync="false" data-no-optimize="1" data-no-defer="1" data-no-minify="1">var omapi_localized = { ajax: 'https://www.wpbeginner.com/wp-admin/admin-ajax.php?optin-monster-ajax-route=1', nonce: 'bb2a67133b', slugs: {"bpbdfdgdzpmrqcbireia":{"slug":"bpbdfdgdzpmrqcbireia","mailpoet":false},"gj8zuwtcac32cprejmvu":{"slug":"gj8zuwtcac32cprejmvu","mailpoet":false},"jitajycm2826lj21weqw":{"slug":"jitajycm2826lj21weqw","mailpoet":false},"smyde8mkgoufl0kqde9b":{"slug":"smyde8mkgoufl0kqde9b","mailpoet":false},"upf03gyvuqdbhwwtakkq":{"slug":"upf03gyvuqdbhwwtakkq","mailpoet":false},"ygz7dakejwybm2dgwzyn":{"slug":"ygz7dakejwybm2dgwzyn","mailpoet":false},"djpltannwqskloxol47k":{"slug":"djpltannwqskloxol47k","mailpoet":false},"usczpqoxctf5dncw1bhv":{"slug":"usczpqoxctf5dncw1bhv","mailpoet":false},"boxnd4x4rrqs42xwvz1t":{"slug":"boxnd4x4rrqs42xwvz1t","mailpoet":false},"jk3encykedcat5mjtrxp":{"slug":"jk3encykedcat5mjtrxp","mailpoet":false},"hysqjgfyyqsckdzvdaav":{"slug":"hysqjgfyyqsckdzvdaav","mailpoet":false},"voryezdmadohbszzg0mo":{"slug":"voryezdmadohbszzg0mo","mailpoet":false},"sdhkwciylfkw0rnp6apr":{"slug":"sdhkwciylfkw0rnp6apr","mailpoet":false},"a6hl4vffeajqqe1dwl9e":{"slug":"a6hl4vffeajqqe1dwl9e","mailpoet":false},"iyqfvnwed1i5jxbmo47x":{"slug":"iyqfvnwed1i5jxbmo47x","mailpoet":false},"vmrqpgrbcgdztg90fueg":{"slug":"vmrqpgrbcgdztg90fueg","mailpoet":false}} };</script> <script type="pmdelayedscript" data-perfmatters-type="text/javascript" data-cfasync="false" data-no-optimize="1" data-no-defer="1" data-no-minify="1">var omapi_data = {"object_id":5484,"object_key":"post","object_type":"post","term_ids":[5,3444,3014,3018,3019,3015,3017,11496,3016],"wp_json":"https:\/\/www.wpbeginner.com\/wp-json","wc_active":false,"edd_active":false,"nonce":"7d2a42c545"};</script> <script id="perfmatters-delayed-scripts-js">const pmDelayClick=true;const pmUserInteractions=["keydown","mousedown","mousemove","wheel","touchmove","touchstart","touchend"],pmDelayedScripts={normal:[],defer:[],async:[]},jQueriesArray=[],pmInterceptedClicks=[];var pmDOMLoaded=!1,pmClickTarget="";function pmTriggerDOMListener(){"undefined"!=typeof pmDelayTimer&&clearTimeout(pmDelayTimer),pmUserInteractions.forEach(function(e){window.removeEventListener(e,pmTriggerDOMListener,{passive:!0})}),document.removeEventListener("visibilitychange",pmTriggerDOMListener),"loading"===document.readyState?document.addEventListener("DOMContentLoaded",pmTriggerDelayedScripts):pmTriggerDelayedScripts()}async function pmTriggerDelayedScripts(){pmDelayEventListeners(),pmDelayJQueryReady(),pmProcessDocumentWrite(),pmSortDelayedScripts(),pmPreloadDelayedScripts(),await pmLoadDelayedScripts(pmDelayedScripts.normal),await pmLoadDelayedScripts(pmDelayedScripts.defer),await pmLoadDelayedScripts(pmDelayedScripts.async),await pmTriggerEventListeners(),document.querySelectorAll("link[data-pmdelayedstyle]").forEach(function(e){e.setAttribute("href",e.getAttribute("data-pmdelayedstyle"))}),window.dispatchEvent(new Event("perfmatters-allScriptsLoaded")),pmWaitForPendingClicks().then(()=>{pmReplayClicks()})}function pmDelayEventListeners(){let e={};function t(t,n){function r(n){return e[t].delayedEvents.indexOf(n)>=0?"perfmatters-"+n:n}e[t]||(e[t]={originalFunctions:{add:t.addEventListener,remove:t.removeEventListener},delayedEvents:[]},t.addEventListener=function(){arguments[0]=r(arguments[0]),e[t].originalFunctions.add.apply(t,arguments)},t.removeEventListener=function(){arguments[0]=r(arguments[0]),e[t].originalFunctions.remove.apply(t,arguments)}),e[t].delayedEvents.push(n)}function n(e,t){let n=e[t];Object.defineProperty(e,t,{get:n||function(){},set:function(n){e["perfmatters"+t]=n}})}t(document,"DOMContentLoaded"),t(window,"DOMContentLoaded"),t(window,"load"),t(window,"pageshow"),t(document,"readystatechange"),n(document,"onreadystatechange"),n(window,"onload"),n(window,"onpageshow")}function pmDelayJQueryReady(){let e=window.jQuery;Object.defineProperty(window,"jQuery",{get:()=>e,set(t){if(t&&t.fn&&!jQueriesArray.includes(t)){t.fn.ready=t.fn.init.prototype.ready=function(e){pmDOMLoaded?e.bind(document)(t):document.addEventListener("perfmatters-DOMContentLoaded",function(){e.bind(document)(t)})};let n=t.fn.on;t.fn.on=t.fn.init.prototype.on=function(){if(this[0]===window){function e(e){return e=(e=(e=e.split(" ")).map(function(e){return"load"===e||0===e.indexOf("load.")?"perfmatters-jquery-load":e})).join(" ")}"string"==typeof arguments[0]||arguments[0]instanceof String?arguments[0]=e(arguments[0]):"object"==typeof arguments[0]&&Object.keys(arguments[0]).forEach(function(t){delete Object.assign(arguments[0],{[e(t)]:arguments[0][t]})[t]})}return n.apply(this,arguments),this},jQueriesArray.push(t)}e=t}})}function pmProcessDocumentWrite(){let e=new Map;document.write=document.writeln=function(t){var n=document.currentScript,r=document.createRange();let a=e.get(n);void 0===a&&(a=n.nextSibling,e.set(n,a));var i=document.createDocumentFragment();r.setStart(i,0),i.appendChild(r.createContextualFragment(t)),n.parentElement.insertBefore(i,a)}}function pmSortDelayedScripts(){document.querySelectorAll("script[type=pmdelayedscript]").forEach(function(e){e.hasAttribute("src")?e.hasAttribute("defer")&&!1!==e.defer?pmDelayedScripts.defer.push(e):e.hasAttribute("async")&&!1!==e.async?pmDelayedScripts.async.push(e):pmDelayedScripts.normal.push(e):pmDelayedScripts.normal.push(e)})}function pmPreloadDelayedScripts(){var e=document.createDocumentFragment();[...pmDelayedScripts.normal,...pmDelayedScripts.defer,...pmDelayedScripts.async].forEach(function(t){var n=t.getAttribute("src");if(n){var r=document.createElement("link");r.href=n,"module"==t.getAttribute("data-perfmatters-type")?r.rel="modulepreload":(r.rel="preload",r.as="script"),e.appendChild(r)}}),document.head.appendChild(e)}async function pmLoadDelayedScripts(e){var t=e.shift();return t?(await pmReplaceScript(t),pmLoadDelayedScripts(e)):Promise.resolve()}async function pmReplaceScript(e){return await pmNextFrame(),new Promise(function(t){let n=document.createElement("script");[...e.attributes].forEach(function(e){let t=e.nodeName;"type"!==t&&("data-perfmatters-type"===t&&(t="type"),n.setAttribute(t,e.nodeValue))}),e.hasAttribute("src")?(n.addEventListener("load",t),n.addEventListener("error",t)):(n.text=e.text,t()),e.parentNode.replaceChild(n,e)})}async function pmTriggerEventListeners(){pmDOMLoaded=!0,await pmNextFrame(),document.dispatchEvent(new Event("perfmatters-DOMContentLoaded")),await pmNextFrame(),window.dispatchEvent(new Event("perfmatters-DOMContentLoaded")),await pmNextFrame(),document.dispatchEvent(new Event("perfmatters-readystatechange")),await pmNextFrame(),document.perfmattersonreadystatechange&&document.perfmattersonreadystatechange(),await pmNextFrame(),window.dispatchEvent(new Event("perfmatters-load")),await pmNextFrame(),window.perfmattersonload&&window.perfmattersonload(),await pmNextFrame(),jQueriesArray.forEach(function(e){e(window).trigger("perfmatters-jquery-load")});let e=new Event("perfmatters-pageshow");e.persisted=window.pmPersisted,window.dispatchEvent(e),await pmNextFrame(),window.perfmattersonpageshow&&window.perfmattersonpageshow({persisted:window.pmPersisted})}async function pmNextFrame(){return new Promise(function(e){requestAnimationFrame(e)})}function pmReplayClicks(){window.removeEventListener("touchstart",pmTouchStartHandler,{passive:!0}),window.removeEventListener("mousedown",pmTouchStartHandler),pmInterceptedClicks.forEach(e=>{e.target.outerHTML===pmClickTarget&&e.target.dispatchEvent(new MouseEvent("click",{view:e.view,bubbles:!0,cancelable:!0}))})}function pmWaitForPendingClicks(){return new Promise(e=>{window.pmIsClickPending?pmPendingClickFinished=e:e()})}function pmPndingClickStarted(){window.pmIsClickPending=!0}function pmPendingClickFinished(){window.pmIsClickPending=!1}function pmClickHandler(e){e.target.removeEventListener("click",pmClickHandler),pmRenameDOMAttribute(e.target,"pm-onclick","onclick"),pmInterceptedClicks.push(e),e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation(),pmPendingClickFinished()}function pmTouchStartHandler(e){"HTML"!==e.target.tagName&&(pmClickTarget||(pmClickTarget=e.target.outerHTML),window.addEventListener("touchend",pmTouchEndHandler),window.addEventListener("mouseup",pmTouchEndHandler),window.addEventListener("touchmove",pmTouchMoveHandler,{passive:!0}),window.addEventListener("mousemove",pmTouchMoveHandler),e.target.addEventListener("click",pmClickHandler),pmRenameDOMAttribute(e.target,"onclick","pm-onclick"),pmPendingClickStarted())}function pmTouchMoveHandler(e){window.removeEventListener("touchend",pmTouchEndHandler),window.removeEventListener("mouseup",pmTouchEndHandler),window.removeEventListener("touchmove",pmTouchMoveHandler,{passive:!0}),window.removeEventListener("mousemove",pmTouchMoveHandler),e.target.removeEventListener("click",pmClickHandler),pmRenameDOMAttribute(e.target,"pm-onclick","onclick"),pmPendingClickFinished()}function pmTouchEndHandler(e){window.removeEventListener("touchend",pmTouchEndHandler),window.removeEventListener("mouseup",pmTouchEndHandler),window.removeEventListener("touchmove",pmTouchMoveHandler,{passive:!0}),window.removeEventListener("mousemove",pmTouchMoveHandler)}function pmRenameDOMAttribute(e,t,n){e.hasAttribute&&e.hasAttribute(t)&&(event.target.setAttribute(n,event.target.getAttribute(t)),event.target.removeAttribute(t))}window.pmIsClickPending=!1,window.addEventListener("pageshow",e=>{window.pmPersisted=e.persisted}),pmUserInteractions.forEach(function(e){window.addEventListener(e,pmTriggerDOMListener,{passive:!0})}),pmDelayClick&&(window.addEventListener("touchstart",pmTouchStartHandler,{passive:!0}),window.addEventListener("mousedown",pmTouchStartHandler)),document.addEventListener("visibilitychange",pmTriggerDOMListener);</script></body></html>

Pages: 1 2 3 4 5 6 7 8 9 10