• Resolved st-evo

    (@st-evo)


    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

    (@st-evo)

    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.