{"id":23228,"date":"2018-02-01T02:57:41","date_gmt":"2018-02-01T08:57:41","guid":{"rendered":"https:\/\/www.rosehosting.com\/blog\/?p=23228"},"modified":"2022-06-03T03:35:17","modified_gmt":"2022-06-03T08:35:17","slug":"error-establishing-a-database-connection","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/error-establishing-a-database-connection\/","title":{"rendered":"Error establishing a database connection"},"content":{"rendered":"<div id=\"bsf_rt_marker\"><\/div><p><img decoding=\"async\" class=\"aligncenter size-full wp-image-25483\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/02\/error-establishing-a-database-connection.jpg\" alt=\"Error establishing a database connection\" width=\"1200\" height=\"600\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/02\/error-establishing-a-database-connection.jpg 1200w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/02\/error-establishing-a-database-connection-150x75.jpg 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/02\/error-establishing-a-database-connection-300x150.jpg 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/02\/error-establishing-a-database-connection-768x384.jpg 768w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/02\/error-establishing-a-database-connection-1024x512.jpg 1024w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/02\/error-establishing-a-database-connection-860x430.jpg 860w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/02\/error-establishing-a-database-connection-680x340.jpg 680w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/02\/error-establishing-a-database-connection-500x250.jpg 500w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/02\/error-establishing-a-database-connection-400x200.jpg 400w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/02\/error-establishing-a-database-connection-200x100.jpg 200w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/02\/error-establishing-a-database-connection-50x25.jpg 50w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" \/><\/p>\n<p>Error establishing a database connection, is a very common error when you try to access your WordPress site.\u00a0The database stores all the important information for your website, including your posts, comments, site configuration, user accounts, theme and plugin settings and so on. If the connection to your database cannot be established, your WordPress website will not load, and more then likely will give you the error: &#8220;Error establishing a database connection&#8221; In this tutorial we will show you, how to fix\u00a0Error establishing a database connection in WordPress.<\/p>\n<p><!--more--><\/p>\n<p>The most common cause for &#8220;Error establishing a database connection&#8221; issue, is one of the following:<\/p>\n<p>Your database has been corrupted<br \/>\nIncorrect login credentials in your WordPress configuration file (wp-config.php)<br \/>\nYour MySQL service stopped working due to insufficient memory on the server (due to heavy traffic), or server problems<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-25491\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/02\/Error-establishing-a-database-connection-e1517474875180.png\" alt=\"Error establishing a database connection\" width=\"550\" height=\"245\" \/><\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-transparent ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-69dcbe935e0e0\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"ez-toc-cssicon\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-69dcbe935e0e0\"  aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.rosehosting.com\/blog\/error-establishing-a-database-connection\/#1-Requirements\" >1. Requirements<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.rosehosting.com\/blog\/error-establishing-a-database-connection\/#1-Corrupted-database\" >1. Corrupted database<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.rosehosting.com\/blog\/error-establishing-a-database-connection\/#2-Check-your-wp-configphp-file\" >2. Check your wp-config.php file<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.rosehosting.com\/blog\/error-establishing-a-database-connection\/#3-Check-your-server\" >3. Check your server<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.rosehosting.com\/blog\/error-establishing-a-database-connection\/#4-Conclusion\" >4. Conclusion<\/a><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"1-Requirements\"><\/span>1. Requirements<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>In order to troubleshoot &#8220;Error establishing a database connection&#8221; issue, a few requirements must be met:<\/p>\n<ul>\n<li>SSH access to your server<\/li>\n<li>The database is located on the same server<\/li>\n<li>You need to know your database username, user password, and name of the database<\/li>\n<\/ul>\n<p>Also before you try to fix &#8220;Error establishing a database connection&#8221; error, it is highly recommended that you make a backup of both your website and database.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"1-Corrupted-database\"><\/span>1. Corrupted database<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>The first step to do when trying to troubleshoot &#8220;Error establishing a database connection&#8221; problem is to check whether this error is present for both the front-end and the back-end of the your site. You can access your back-end via http:\/\/www.yourdomain.com\/wp-admin (replace &#8220;yourdomain&#8221; with your actual domain name)<\/p>\n<p>If the error remains the same for both your front-end and back-end then you should move to the next step.<\/p>\n<p>If you are able to access the back-end via https:\/\/www.yourdomain.com\/wp-admin,\u00a0 and you see the following message:<\/p>\n<pre>\u201cOne or more database tables are unavailable. The database may need to be repaired\u201d<\/pre>\n<p>it means that your database has been corrupted and you need to try to repair it.<\/p>\n<p>To do this, you must first enable the repair option in your wp-config.php file, located inside the WordPress site root directory, by adding the following line:<\/p>\n<pre>define('WP_ALLOW_REPAIR', true);<\/pre>\n<p>Now you can navigate to this this page: https:\/\/www.yourdomain.com\/wp-admin\/maint\/repair.php and click the &#8220;Repair and Optimize Database button.&#8221;<\/p>\n<p>For security reasons, remember to turn off the repair option be deleting the line we added before in the wp-config.php file.<\/p>\n<p>If this does not fix the problem or the database cannot be repaired you will probably need to restore it from a backup if you have one available.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"2-Check-your-wp-configphp-file\"><\/span>2. Check your wp-config.php file<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Another, probably most common reason, for failed database connection is because of incorrect database information set in your WordPress configuration file.<\/p>\n<p>The configuration file resides in your WordPress site root directory and it is called wp-config.php .<\/p>\n<p>Open the file and locate the following lines:<\/p>\n<pre>define('DB_NAME', 'database_name');\r\ndefine('DB_USER', 'database_username');\r\ndefine('DB_PASSWORD', 'database_password');\r\ndefine('DB_HOST', 'localhost');\r\n<\/pre>\n<p>Make sure the correct database name, username, and password are set. Database host should be set to &#8220;localhost&#8221;.<\/p>\n<p>If you ever change your database username and password you should always update this file as well.<\/p>\n<p>If everything is set up properly and you are still getting the &#8220;Error establishing a database connection&#8221; error then the problem is probably on the server side and you should move on to the next step of this tutorial.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"3-Check-your-server\"><\/span>3. Check your server<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Depending on the resources available, during high traffic hours, your server might not be able to handle all the load and it may stop your MySQL server.<\/p>\n<p>You can either contact your hosting provider about this or you can check it yourself if the MySQL server is properly running.<\/p>\n<p>To check the status of MySQL, log in to your server via <a href=\"https:\/\/www.rosehosting.com\/blog\/connect-to-your-linux-vps-via-ssh\/\">SSH<\/a> and use the following command:<\/p>\n<pre>systemctl status mysql<\/pre>\n<p>Or you can check if it is up in your active processes with:<\/p>\n<pre>ps aux | grep mysql<\/pre>\n<p>If your MySQL is not running you can start it with the following commands:<\/p>\n<pre>systemctl start mysql<\/pre>\n<p>You may also need to check the memory usage on your server.<\/p>\n<p>To check how much RAM you have available you can use the following command:<\/p>\n<pre>free -m<\/pre>\n<p>If your server is running low on memory you may want to consider upgrading your server.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"4-Conclusion\"><\/span>4. Conclusion<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Most of the time. the &#8220;Error establishing a database connection&#8221; error can be fixed by following one of the steps above.<\/p>\n<p><img decoding=\"async\" class=\"alignright size-full wp-image-25492\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/02\/How-to-Fix-the-Error-Establishing-a-Database-Connection-in-WordPress.jpg\" alt=\"How to Fix the Error Establishing a Database Connection in WordPress\" width=\"300\" height=\"331\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/02\/How-to-Fix-the-Error-Establishing-a-Database-Connection-in-WordPress.jpg 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/02\/How-to-Fix-the-Error-Establishing-a-Database-Connection-in-WordPress-136x150.jpg 136w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/02\/How-to-Fix-the-Error-Establishing-a-Database-Connection-in-WordPress-272x300.jpg 272w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/02\/How-to-Fix-the-Error-Establishing-a-Database-Connection-in-WordPress-200x221.jpg 200w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/02\/How-to-Fix-the-Error-Establishing-a-Database-Connection-in-WordPress-50x55.jpg 50w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/>Of course, you don\u2019t have to fix, Error establishing a database connection, if you use one of our <a href=\"https:\/\/www.rosehosting.com\/wordpress-hosting.html\">WordPress VPS Hosting\u00a0Services<\/a>, in which case you can simply ask our expert Linux admins to help you fix the\u00a0Error establishing a database connection in WordPress,\u00a0\u00a0for you. They are available 24\u00d77 and will take care of your request immediately.<\/p>\n<p><strong><span style=\"color: #ff0000;\">PS<\/span><\/strong>. If you liked this post, on how to fix the\u00a0Error establishing a database connection in WordPress, please share it with your friends on the social networks using the buttons on the left or simply leave a reply below. Thanks.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Error establishing a database connection, is a very common error when you try to access your WordPress site.\u00a0The database stores &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"Error establishing a database connection\" class=\"read-more button\" href=\"https:\/\/www.rosehosting.com\/blog\/error-establishing-a-database-connection\/#more-23228\" aria-label=\"Read more about Error establishing a database connection\">Read More<\/a><\/p>\n","protected":false},"author":4,"featured_media":25483,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1710,1702],"tags":[1650,1651],"class_list":["post-23228","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cms-crm-erp","category-databases","tag-error-establishing-a-database-connection","tag-wordpess","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-33"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.3 (Yoast SEO v27.3) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Error establishing a database connection | RoseHosting<\/title>\n<meta name=\"description\" content=\"Error establishing a database connection | RoseHosting\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.rosehosting.com\/blog\/error-establishing-a-database-connection\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Error establishing a database connection\" \/>\n<meta property=\"og:description\" content=\"Error establishing a database connection | RoseHosting\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.rosehosting.com\/blog\/error-establishing-a-database-connection\/\" \/>\n<meta property=\"og:site_name\" content=\"RoseHosting\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/RoseHosting\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/rosehosting.helpdesk\" \/>\n<meta property=\"article:published_time\" content=\"2018-02-01T08:57:41+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-06-03T08:35:17+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/02\/error-establishing-a-database-connection.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"600\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Jeff Wilson\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:site\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jeff Wilson\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/error-establishing-a-database-connection\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/error-establishing-a-database-connection\\\/\"},\"author\":{\"name\":\"Jeff Wilson\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\"},\"headline\":\"Error establishing a database connection\",\"datePublished\":\"2018-02-01T08:57:41+00:00\",\"dateModified\":\"2022-06-03T08:35:17+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/error-establishing-a-database-connection\\\/\"},\"wordCount\":811,\"commentCount\":2,\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/error-establishing-a-database-connection\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/02\\\/error-establishing-a-database-connection.jpg\",\"keywords\":[\"Error establishing a database connection\",\"WordPess\"],\"articleSection\":[\"CMS, CRM, ERP\",\"Databases\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/error-establishing-a-database-connection\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/error-establishing-a-database-connection\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/error-establishing-a-database-connection\\\/\",\"name\":\"Error establishing a database connection | RoseHosting\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/error-establishing-a-database-connection\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/error-establishing-a-database-connection\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/02\\\/error-establishing-a-database-connection.jpg\",\"datePublished\":\"2018-02-01T08:57:41+00:00\",\"dateModified\":\"2022-06-03T08:35:17+00:00\",\"description\":\"Error establishing a database connection | RoseHosting\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/error-establishing-a-database-connection\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/error-establishing-a-database-connection\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/error-establishing-a-database-connection\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/02\\\/error-establishing-a-database-connection.jpg\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/02\\\/error-establishing-a-database-connection.jpg\",\"width\":1200,\"height\":600,\"caption\":\"Error establishing a database connection\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/error-establishing-a-database-connection\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Error establishing a database connection\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\",\"name\":\"RoseHosting.com\",\"description\":\"Premium Linux Tutorials Since 2001\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\",\"name\":\"RoseHosting\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/android-chrome-192x192-1.png\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/android-chrome-192x192-1.png\",\"width\":192,\"height\":192,\"caption\":\"RoseHosting\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/RoseHosting\",\"https:\\\/\\\/x.com\\\/rosehosting\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/rosehosting\\\/\"],\"description\":\"RoseHosting is a leading Linux hosting provider, serving thousands of clients world-wide since 2001.\",\"email\":\"info@rosehosting.com\",\"telephone\":\"(314) 275-0414\",\"legalName\":\"Rose Web Services LLC\",\"foundingDate\":\"2001-04-02\",\"numberOfEmployees\":{\"@type\":\"QuantitativeValue\",\"minValue\":\"11\",\"maxValue\":\"50\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\",\"name\":\"Jeff Wilson\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"caption\":\"Jeff Wilson\"},\"description\":\"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.\",\"sameAs\":[\"https:\\\/\\\/www.rosehosting.com\",\"https:\\\/\\\/www.facebook.com\\\/rosehosting.helpdesk\"],\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/author\\\/jwilson\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Error establishing a database connection | RoseHosting","description":"Error establishing a database connection | RoseHosting","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.rosehosting.com\/blog\/error-establishing-a-database-connection\/","og_locale":"en_US","og_type":"article","og_title":"Error establishing a database connection","og_description":"Error establishing a database connection | RoseHosting","og_url":"https:\/\/www.rosehosting.com\/blog\/error-establishing-a-database-connection\/","og_site_name":"RoseHosting","article_publisher":"https:\/\/www.facebook.com\/RoseHosting","article_author":"https:\/\/www.facebook.com\/rosehosting.helpdesk","article_published_time":"2018-02-01T08:57:41+00:00","article_modified_time":"2022-06-03T08:35:17+00:00","og_image":[{"width":1200,"height":600,"url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/02\/error-establishing-a-database-connection.jpg","type":"image\/jpeg"}],"author":"Jeff Wilson","twitter_card":"summary_large_image","twitter_creator":"@rosehosting","twitter_site":"@rosehosting","twitter_misc":{"Written by":"Jeff Wilson","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.rosehosting.com\/blog\/error-establishing-a-database-connection\/#article","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/error-establishing-a-database-connection\/"},"author":{"name":"Jeff Wilson","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713"},"headline":"Error establishing a database connection","datePublished":"2018-02-01T08:57:41+00:00","dateModified":"2022-06-03T08:35:17+00:00","mainEntityOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/error-establishing-a-database-connection\/"},"wordCount":811,"commentCount":2,"publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/error-establishing-a-database-connection\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/02\/error-establishing-a-database-connection.jpg","keywords":["Error establishing a database connection","WordPess"],"articleSection":["CMS, CRM, ERP","Databases"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.rosehosting.com\/blog\/error-establishing-a-database-connection\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.rosehosting.com\/blog\/error-establishing-a-database-connection\/","url":"https:\/\/www.rosehosting.com\/blog\/error-establishing-a-database-connection\/","name":"Error establishing a database connection | RoseHosting","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/error-establishing-a-database-connection\/#primaryimage"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/error-establishing-a-database-connection\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/02\/error-establishing-a-database-connection.jpg","datePublished":"2018-02-01T08:57:41+00:00","dateModified":"2022-06-03T08:35:17+00:00","description":"Error establishing a database connection | RoseHosting","breadcrumb":{"@id":"https:\/\/www.rosehosting.com\/blog\/error-establishing-a-database-connection\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.rosehosting.com\/blog\/error-establishing-a-database-connection\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/error-establishing-a-database-connection\/#primaryimage","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/02\/error-establishing-a-database-connection.jpg","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/02\/error-establishing-a-database-connection.jpg","width":1200,"height":600,"caption":"Error establishing a database connection"},{"@type":"BreadcrumbList","@id":"https:\/\/www.rosehosting.com\/blog\/error-establishing-a-database-connection\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.rosehosting.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Error establishing a database connection"}]},{"@type":"WebSite","@id":"https:\/\/www.rosehosting.com\/blog\/#website","url":"https:\/\/www.rosehosting.com\/blog\/","name":"RoseHosting.com","description":"Premium Linux Tutorials Since 2001","publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.rosehosting.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.rosehosting.com\/blog\/#organization","name":"RoseHosting","url":"https:\/\/www.rosehosting.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","width":192,"height":192,"caption":"RoseHosting"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/RoseHosting","https:\/\/x.com\/rosehosting","https:\/\/www.linkedin.com\/in\/rosehosting\/"],"description":"RoseHosting is a leading Linux hosting provider, serving thousands of clients world-wide since 2001.","email":"info@rosehosting.com","telephone":"(314) 275-0414","legalName":"Rose Web Services LLC","foundingDate":"2001-04-02","numberOfEmployees":{"@type":"QuantitativeValue","minValue":"11","maxValue":"50"}},{"@type":"Person","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713","name":"Jeff Wilson","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","caption":"Jeff Wilson"},"description":"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.","sameAs":["https:\/\/www.rosehosting.com","https:\/\/www.facebook.com\/rosehosting.helpdesk"],"url":"https:\/\/www.rosehosting.com\/blog\/author\/jwilson\/"}]}},"_links":{"self":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/23228","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/comments?post=23228"}],"version-history":[{"count":1,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/23228\/revisions"}],"predecessor-version":[{"id":41834,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/23228\/revisions\/41834"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media\/25483"}],"wp:attachment":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media?parent=23228"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/categories?post=23228"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/tags?post=23228"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}