Support » Fixing WordPress » share users table betwin 2 wordpress

  • Hi,

    Is possible to share the users table from 1 WP (site1) on other WP (site2)??

    Just the users table, so, if 1 user registrer on site 1 tehy can use the same username and password on site 2?

    The idea is to share users from 2 site from the same owner to prevent duplicacion of users.

    Thanks for your support

Viewing 4 replies - 1 through 4 (of 4 total)
  • In one of the WP installation, add the following in wp-config.php

    Say you want to use wp_users table:

    define('CUSTOM_USER_TABLE', 'wp_users');
    define('CUSTOM_USER_META_TABLE'', 'wp_usermeta');

    Insert that snippet before the following line.

    require_once (ABSPATH.'wp-settings.php');

    Thanks!

    Ooo, that’s great to know! 😀

    garsan

    (@garsan)

    Hi, I have a little problem here.

    On site1 everything is ok, when I log-in on site1 as admin there is no problem, but when I log-in on site2 (sharing the users table) I get the normal user space, no admin options.

    I’m using WP 2.0.2 in both sites.

    Thanks for the help.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘share users table betwin 2 wordpress’ is closed to new replies.