click "network admin"-> "dashboard" leads to error "Error establishing d
-
I have a wordpress multisites setup in a subdirectory “wpmu” under our main website. Currently, there is only one blog in it.
After I log in the admin page, every thing under “My Sites”-> my blog site works correctly. But, if I click “my sites”->”network admin”-> “dashboard”, I got the error message below
————-
Error establishing database connectionIf 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 *******. Searched for table wpmu_blogs in database ********. Is that right?
What do I do now? Read the bug report page. Some of the guidelines 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:
wpmu_users wpmu_usermeta wpmu_blogs wpmu_signups wpmu_site wpmu_sitemeta wpmu_registration_log wpmu_blog_versions
I check my database, all those tables are there. I googled all possible reasons and tried many. Nothing seems to work.
I attached the wp-config.php below
define('WP_ALLOW_MULTISITE', true); define('MULTISITE', true); define('SUBDOMAIN_INSTALL', false); $base = '/wpmu/'; define( 'DOMAIN_CURRENT_SITE', 'aaccc.org' ); define( 'PATH_CURRENT_SITE', '/wpmu/' ); define( 'SITE_ID_CURRENT_SITE', 1 ); define( 'BLOG_ID_CURRENT_SITE', 7 );
I also attached the .htaccess file below
RewriteEngine On RewriteBase /wpmu/ # Rewrite www.domain.com to domain.com RewriteCond %{HTTP_HOST} ^www\.(.*) RewriteRule ^(.*) https://%1/$1 [R,L] #uploaded files RewriteRule ^(.*)?/?files/(.*) wp-content/blogs.php?file=$2 [L] RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule . - [L] RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-.*) $2 [L] RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L] RewriteRule . index.php [L]
Please give me any direction that I may try.
- The topic ‘click "network admin"-> "dashboard" leads to error "Error establishing d’ is closed to new replies.