The MU forums have moved to

WPMU & WP2 share DB possible? (2 posts)

  1. ergate
    Posted 18 years ago #

    We have multiple installations of WP on a domain, and we have installed and are setting up WPMU to replace all the multiple installs and unify the whole mess (maintainig multiple WP installs is time consuming, especially when we have requests for blogs at that domain)
    One of the WP install is WP2 RC3, and we are wanting to move it to WPMU but it recieves a fair amount of traffic, and we dont want it to loose its search engine placements yadda yadda yadda. We have set up a test install of both WPMU and WP 2, I have all the posts imported into WPMU and have gone through and set WP to use the WPMU db tables. All of the posts and comments show up in both blogs (subdomain and regular WP install). The problem that I am running into is when a user logs into the WP install is getting the logins to hit the correct tables in WPMU.
    This is because WPMU uses wp_ for the users table, and wp_1_ for the other tables. Does anybody have any suggestions as to how to make the WP install use the WPMU user, etc tables?

    I have been thinking of linking all the appropriate links (admin etc) in the WP themes to point to the WPMU users install, but I am afraid this might miss some things.

    Any thoughts.

  2. itdamager
    Posted 18 years ago #

    Try creating a wordpress plugin that replaces wp_login() with your own function that tests against the correct db table. The current wp_login() function is located in includes/pluggable-functions.php but can be overridden in plugins.

About this Topic

  • Started 18 years ago by ergate
  • Latest reply from itdamager