Tables not created -Error establishing a database connection
-
Hello.
I have a new WP 4.2 install set up in a sub-directory of the root, hosted on HostGator.
I installed it manually (several times now). There are no plugins activated. The template is the default. The main install works fine.
The sub-directory Multi-site Network installation seems to go okay, but then I get an ‘Error establishing a database connection’ when I attempt to load new sites in my browser.
I get this error because the tables are missing, not because it cannot connect to the DB. I know this because I copied the tables from another multisite installation, and the network site worked properly. But, if I just follow the steps to create a new site, the necessary tables are not created. (User has all privileges).
These are the lines I added to my wp_config file (mydomain.com is not my real domain)
‘
define( ‘WP_ALLOW_MULTISITE’, true );
define(‘MULTISITE’, true);
define(‘SUBDOMAIN_INSTALL’, false);
define(‘DOMAIN_CURRENT_SITE’, ‘mydomain.com’);
define(‘PATH_CURRENT_SITE’, ‘/’);
define(‘SITE_ID_CURRENT_SITE’, 1);
define(‘BLOG_ID_CURRENT_SITE’, 1); `This is the entire content of my htaccess file:
# BEGIN WordPress RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] # add a trailing slash to /wp-admin RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L] RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^ - [L] RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L] RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L] RewriteRule . index.php [L] # END WordPress
So, can anyone guess why I’m having this problem? I am at wit’s end.
Thanks so much.
- The topic ‘Tables not created -Error establishing a database connection’ is closed to new replies.