Title: Multiple wordpress install problem
Last modified: August 19, 2016

---

# Multiple wordpress install problem

 *  Resolved [st-evo](https://wordpress.org/support/users/st-evo/)
 * (@st-evo)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/multiple-wordpress-install-problem/)
 * Hi there, I have been working on multiple installs of wordpress on two systems,
   but alas I have hit a snag. I have set on up with no problems, but I have had
   to rebuild the other system completely.
 * I have recently hit a new problem, after auto generating the scripts using shell
   scripts everytime I generate a new blog it says it cannot access a database which
   isnt there… well.. the thing is there is NO part of the config file (or in fact
   ANY file) which points at this non-existant database, the wp-config.php file:
 *     ```
       <?php
       define('DB_NAME', 'media_steve');
       define('DB_USER', '******');
       define('DB_PASSWORD', '******');
       define('DB_HOST', 'localhost');
       $table_prefix  = 'cheese_';
       define('WPLANG', '');
       define('ABSPATH', '/srv/www/farm/sb/');
       require_once(ABSPATH.'wp-settings.php');
       ?>
       ```
   
 * and it says:
 * Error establishing a database connection
 * Yet it is there, the username and password are correct, the prefix is 100% correct,
   the path is correct. Permissions are all set up, I have even tried it with the
   root password.
 * If I then goto the wp-admin dir on Firefox I get:
 * >  Can’t select database
   > We were able to connect to the database server (which means your username and
   > password is okay) but not able to select the media_2012 database.
   >  * Are you sure it exists?
   >  * Does the user blogs have permission to use the
   > media_2012 database? * On some systems the name of your database is prefixed
   > with your username, so it would be like username_media_2012. Could that be 
   > the problem?
   > If you don’t know how to setup a database you should contact your host. If 
   > all else fails you may find help at the WordPress Support Forums.
 * There is no 2012!! any ideas?

Viewing 1 replies (of 1 total)

 *  Thread Starter [st-evo](https://wordpress.org/support/users/st-evo/)
 * (@st-evo)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/multiple-wordpress-install-problem/#post-1222541)
 * Ended up rebuilding the script – Fixed the problem (both scripts almost identical
   in the end apart from calling different img’s… so nothing major changed.)

Viewing 1 replies (of 1 total)

The topic ‘Multiple wordpress install problem’ is closed to new replies.

## Tags

 * [multiple install](https://wordpress.org/support/topic-tag/multiple-install/)

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 1 reply
 * 1 participant
 * Last reply from: [st-evo](https://wordpress.org/support/users/st-evo/)
 * Last activity: [16 years, 6 months ago](https://wordpress.org/support/topic/multiple-wordpress-install-problem/#post-1222541)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
