Title: Godaddy multisite database connection failure
Last modified: August 24, 2016

---

# Godaddy multisite database connection failure

 *  [kend1](https://wordpress.org/support/users/kend1/)
 * (@kend1)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/godaddy-multisite-database-connection-failure/)
 * Hello all,
    I want to add a second site via sub-directory for a second blog… 
   The company owner posts news and we have a mother that is posting “a day in the
   life” kind of thing. This is an established functioning site designed by previous
   webmaster, who quit. The site is newhorizonsaba.com
 * I’m new to WordPress and php, I’m an oldschool HTML kinda guy.
    I have installed
   wordpress with wamp on my laptop for a test bed. I was able to successfully add
   multisite to the test site that is on my laptop.
 * First I backed up the site and database.
 * Following the directions on the godaddy support page, I added the define(‘WP_ALLOW_MULTISITE’,
   true); to my wp-config.php. Everything went fine and I logged back in, disabled
   all plugins and selected network setup. I then copied the info into wp-comfig
   and htaccess as directed. Now I get “Error establishing a database connection”
 * I reverted back to the original wp-config and htaccess and my site was back up.
 * If I add the following to my wp-config I get the database connection failure (
   before editing htaccess).
 * > define(‘MULTISITE’, true);
   >  define(‘SUBDOMAIN_INSTALL’, false); define(‘DOMAIN_CURRENT_SITE’,‘
   > newhorizonsaba.com’); define(‘PATH_CURRENT_SITE’, ‘/index.php/’); define(‘SITE_ID_CURRENT_SITE’,
   > 1); define(‘BLOG_ID_CURRENT_SITE’, 1);
 * I checked that my database on godaddy does contains the following tables:
    wp_users
   wp_usermeta wp_blogs wp_signups wp_site wp_sitemeta wp_registration_log wp_blog_versions
 * Where did I go wrong? Is there another way to add a second blog to this site?

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Moderator [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [11 years, 2 months ago](https://wordpress.org/support/topic/godaddy-multisite-database-connection-failure/#post-6026426)
 * You’re missing a line.
 * Above `define('MULTISITE', true);` should be this:
 * `define( 'WP_ALLOW_MULTISITE', true );`
 *  Thread Starter [kend1](https://wordpress.org/support/users/kend1/)
 * (@kend1)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/godaddy-multisite-database-connection-failure/#post-6026438)
 * yes that line is in the wp-config
 * > /**
   > define(‘WP_DEBUG’, false);
   > define (‘WP_ALLOW_MULTISITE’, true);
   > define(‘MULTISITE’, true);
   >  define(‘SUBDOMAIN_INSTALL’, false); define(‘DOMAIN_CURRENT_SITE’,‘
   > newhorizonsaba.com’); define(‘PATH_CURRENT_SITE’, ‘/index.php/’); define(‘SITE_ID_CURRENT_SITE’,
   > 1); define(‘BLOG_ID_CURRENT_SITE’, 1);
   > /* That’s all, stop editing! Happy blogging. */
   > /** Absolute path to the WordPress directory. */
   >  if ( !defined(‘ABSPATH’) )
   > define(‘ABSPATH’, dirname(__FILE__) . ‘/’);
   > /** Sets up WordPress vars and included files. */
   >  require_once(ABSPATH . ‘
   > wp-settings.php’);
 * As I stated in the orignal post
 * > Following the directions on the godaddy support page, **I added the define(‘
   > WP_ALLOW_MULTISITE’, true); to my wp-config.php**. Everything went fine and
   > I logged back in, disabled all plugins and selected network setup. I then copied
   > the info into wp-comfig and htaccess as directed. Now I get “Error establishing
   > a database connection”
 *  Thread Starter [kend1](https://wordpress.org/support/users/kend1/)
 * (@kend1)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/godaddy-multisite-database-connection-failure/#post-6026440)
 * This is the contents of htaccess
 * # BEGIN WordPress
    RewriteEngine On RewriteBase /index.php/ 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).*) home/newhorizonsaba/
   public_html/$2 [L] RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ home/newhorizonsaba/
   public_html/$2 [L] RewriteRule . index.php [L]
 * # END WordPress
 *  Thread Starter [kend1](https://wordpress.org/support/users/kend1/)
 * (@kend1)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/godaddy-multisite-database-connection-failure/#post-6026606)
 * I guess no one has an answer

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Godaddy multisite database connection failure’ is closed to new replies.

## Tags

 * [database connection](https://wordpress.org/support/topic-tag/database-connection/)
 * [Error establishing a database connection](https://wordpress.org/support/topic-tag/error-establishing-a-database-connection/)
 * [godaddy](https://wordpress.org/support/topic-tag/godaddy/)
 * [multisite](https://wordpress.org/support/topic-tag/multisite/)

 * In: [Networking WordPress](https://wordpress.org/support/forum/multisite/)
 * 4 replies
 * 2 participants
 * Last reply from: [kend1](https://wordpress.org/support/users/kend1/)
 * Last activity: [11 years, 2 months ago](https://wordpress.org/support/topic/godaddy-multisite-database-connection-failure/#post-6026606)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
