Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+3 votes
1.5k views
in Q2A Core by
Q2A version: 1.4.1

1 Answer

+6 votes
by

This is included in Q2A. This question has some details, but in short:

  1. Install your first Q2A site as normal.
  2. Copy the files to your second Q2A site, but don't run the installation yet.
  3. Edit qa-config.php and set the users prefix option. Assuming your second site is "qa2" you'd have these two lines:
    define('QA_MYSQL_TABLE_PREFIX', 'qa2_');
    define('QA_MYSQL_USERS_PREFIX', 'qa_');
  4. Now run the installation on the second site.

 

by
Usefull info, thanks. Would this work for any table "posts" for example ?
by
Not sure exactly what you mean. The multi-site option only shares user tables (qa_users and qa_userprofiles). It doesn't make sense to share the posts table, otherwise why have 2 different sites?
by
He is probably trying to have the same database being used for multiple domains. This way he will try to have the same questions appear on different sites as if they were only from that site and have the benefit of 3 entry points. Terrible from a duplicate content point of view, IMHO, but it is commonly done by some, especially on dating sites.
by
we have to insert mysql database information in qa2  , qa-config.php file?
...