Rapturezone

  • Resources
  • Blog
  • About Us
  • Privacy Policy

Error establishing a database connection – LightSail – WordPress MultiSite – Bitnami

September 26 by www

Error establishing a database connection – LightSail – WordPress MultiSite – Bitnami

  • The Error
  • Possible Cause
  • Possible Fix
  • Known Solution
    • Unstested Alternative Solution
  • Related
  • Links

The Error

When you try and go to MySites>NetworkAdmin>Sites.
You get the error below.

Error establishing a database connection


If your site does not display, please contact the owner of this network. If you are the owner of this network please check that MySQL is running properly and all tables are error free.

Could not find site wordpress.rapturezone.com. Searched for table wp_blogs in database bitnami_wordpress. Is that right?

What do I do now? Read the Debugging a WordPress Network article. Some of the suggestions there may help you figure out what went wrong. If you’re still stuck with this message, then check that your database contains the following tables:

wp_users
wp_usermeta
wp_blogs
wp_blogmeta
wp_signups
wp_site
wp_sitemeta
wp_registration_log

Possible Cause

When running

sudo /opt/bitnami/bncert-tool

As described in Adding New TLS Website to WordPress MultiSite Bitnami Instance.

An important entry in the following database is over written.

  • Database:bitnami_wordpress
  • Table:wp_blogs
  • Colum:Domain

To inspect you can issue the following commands. From a ssh session on the database server. The username and password can be found in /opt/bitnami/apps/wordpress/htdocs/wp-config.php on the application server.

mysql -u bn_wordpress -p
mysql> SHOW DATABASES;
mysql> SHOW TABLES;
mysql> select * from wp_blogs;
+---------+---------+-------------------------------+------+---------------------+---------------------+--------+----------+--------+------+---------+---------+
| blog_id | site_id | domain | path | registered | last_updated | public | archived | mature | spam | deleted | lang_id |
+---------+---------+-------------------------------+------+---------------------+---------------------+--------+----------+--------+------+---------+---------+
| 1 | 1 | wordpress.rapturezone.com | / | 2099-02-20 19:18:28 | 2099-06-28 18:07:14 | 1 | 0 | 0 | 0 | 0 | 0 |
+---------+---------+-------------------------------+------+---------------------+---------------------+--------+----------+--------+------+---------+---------+

Possible Fix

Known Solution

sudo /opt/bitnami/bncert-tool

Re-Run for the main/parent/root website.

Unstested Alternative Solution

Update the database entry for

bitnami_wordpress>wp_blogs>Domain

Related

  • Backup & Restore Bitnami WordPress MultiSite
  • Remove Bitnami Banner Bottom Right WordPress MultiSite
  • WordPress MultiSite Bitnami Essentials

Links

Filed Under: How To Tagged With: Bitnami, LighSail, WordPress

Recent Posts

  • Alternative Android Apps
  • Web Scraping with Python and Beautiful Soup Example IMDB Top 250
  • Web Scraping with Python and Beautiful Soup
  • Pi Pico Mouse Jiggler
  • JellyFin Docker Container

Recent Comments

    Archives

    • September 2021
    • August 2021
    • July 2021
    • January 2021
    • September 2020
    • August 2020
    • June 2020
    • May 2020
    • December 2019
    • November 2019
    • November 2017
    • July 2017
    • January 2017
    • January 2016
    • December 2015
    • September 2015
    • April 2015
    • March 2015
    • November 2014

    Categories

    • Definitions
    • How To
    • Resources
    • Uncategorized

    Meta

    • Log in
    • Entries feed
    • Comments feed
    • WordPress.org
    Google+

    Copyright © 2025 · eleven40 Pro Theme on Genesis Framework · WordPress · Log in