I have an old wiki installed on domain.com/wiki which runs 1.31.0. I would like to install a new wiki on domain.com/newiki but have those two wikis share the user table. Do I simply make the necessary changes to the LocalSettings for the new wiki as suggested in Manual:Shared database and leave the LocalSettings for the old wiki untouched? Also, do I need to have the same versions of Mediawiki installed for both in order to make this work?
Topic on Project:Support desk
if you're using shared tables, its probably a good idea to use the same version. If its just user, it might work with different versions, but if possible id reccomend same version
I just setup a new wiki and configured the shared user table:
$wgSharedDB = 'miandb'; # The $wgDBname for the wiki database holding the main user table
$wgSharedTables[] = 'actor';
$wgSharedPrefix = ''; # The $wgDBprefix for the database. Defaults to the prefix of the current wiki if not specified
and when I try to login from the new wiki it gives me the following error message:
Auto-creation of a local account failed: Username entered already in use. Please choose a different name.
It might be worth mentioning that the old wiki is running 1.31.0 and the new one is running 1.34.0. Could the error message be due to different versions?