Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+1 vote
in Q2A Core by
closed by
I want to install an other Q2A website on a sub-domain
I want to make the users can login to the both Q2A websites with the same login

So I know that must set the option QA_MYSQL_USERS_PREFIX to point to my users table on the first installation.

But I do not know which value have to put rather than qa_users_   in the second installation

  define('QA_MYSQL_USERS_PREFIX', 'qa_users_');

And where I can find that value.

Thank you.
Q2A version: Lastest
closed with the note: Resolved
At the installation
i did change
define('QA_MYSQL_TABLE_PREFIX', 'qa_');
define('QA_MYSQL_TABLE_PREFIX', 'en_');
And I did not change
define('QA_MYSQL_USERS_PREFIX', 'qa_users_');

And it do not succeed
The issue Resolved

1 Answer

+2 votes
selected by
Best answer

You need to set QA_MYSQL_USERS_PREFIX on the second installation only.

For example on the first (original) site you might have this

define('QA_MYSQL_TABLE_PREFIX', 'qa_');

And on the second one (sub domain), if it's called "two" you would have this:

define('QA_MYSQL_TABLE_PREFIX', 'qatwo_');

define('QA_MYSQL_USERS_PREFIX', 'qa_');