Running several sites from one database

I’ve setup the following:

1.Tailored wordpress into a cms.

Read More

2.Setup the wordpress multisite network across several domains (rather than sub domains).

Now I just want to know is it possible to run several wordpress sites from one database? I have 10 websites and need to run them from one database, what would be the consequences of this?

This is purely down to costs as my host charges per database so I don’t want to buy 10 databases (at £25 a time!).

Related posts

Leave a Reply

1 comment

  1. It seems to be possible to run multiple WordPress installations in only one mySQL database. Each installation would use a different table name prefix. From the installation instructions:

    Single Database

    As with the multiple databases solution described above, the wp-config.php file will vary for each installation. In this case, however, only a single line will be unique to each blog:

      $table_prefix = 'wp_'; // example: 'wp_' or 'b2' or 'mylogin_' 
    

    By default, WordPress assigns the table prefix wp_ to its MySQL database tables, but this prefix can be anything you choose. By using more than one, you create unique identifiers for each blog in your database. For example, let’s say you have three blogs to set up, with the names Main, Projects and Test. You want to substitute the prefix wp_ for each blog’s wp-config.php