WordPress.org

Ready to get started?Download WordPress

Forums

Installation of multiple WP scripts (3 posts)

  1. Alexancho
    Member
    Posted 2 years ago #

    I want to install multiple WP scripts on my local computer. What i have found is that i can only install one script and the DB name must be "wordpress". So, there are no problem with first script installation, but when i want to install one more, i get a message "Error establishing a database connection" or just a blank page. Of course, i created a new DB for a new blog and the DB name in wp-config.php match the name of a new DB. What can you advise me?

  2. I don't understand why you need to call the db wordPress or why you can't install more than one db. If you are running Mamp, you should be able to create as many dbs as possible.

    However, if for some reason, you are stuck, you can also just use different table prefixes.

    On line 62 of your wp-config, you'll find:

    $table_prefix = 'wp_';

    You can change that to whatever you want. So let's say you have 2 sites, one white, one black.

    You would use wp_white_ and wp_black. Both sites would use the same db, but they have different sets of tables.

  3. Alexancho
    Member
    Posted 2 years ago #

    Thank you. It was my mistake. I forgot to give privileges for the new databases.

Topic Closed

This topic has been closed to new replies.

About this Topic