Ready to get started?Download WordPress


share users table betwin 2 wordpress (5 posts)

  1. garsan
    Posted 9 years ago #


    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

  2. Joshua Sigar
    Posted 9 years ago #

    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');

  3. garsan
    Posted 9 years ago #


  4. Ooo, that's great to know! :D

  5. garsan
    Posted 8 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic