WordPress.org

Ready to get started?Download WordPress

Forums

Pulling data from another database on server into a page (6 posts)

  1. madridben
    Member
    Posted 6 years ago #

    Hi,

    I have a list of phrases in a seperate mysql database that I want to display on a page on my site. It is on a different server at the moment and ideally would stay there, but I can move it over to the same server as the wp installation if necessary.

    Any advice on how to do this in either case? I need to know how to connect to this other database table which isn't part of the wp database.

    Many thanks.

  2. Jeremy Clark
    Moderator
    Posted 6 years ago #

    Just run a sql query pulling the data out. Not really a WP issue.

  3. madridben
    Member
    Posted 6 years ago #

    Hmmm, but if it isn't in the wp database, how do I connect to the database?

  4. Jeremy Clark
    Moderator
    Posted 6 years ago #

    Again not really a wp issue. You'll need to write a sql query in php to pull the data out.

  5. duhkneez
    Member
    Posted 6 years ago #

    Would content pulled from a separate database be included in search results? (Using a "search-everything" plugin.)

  6. mishko
    Member
    Posted 6 years ago #

    Would content pulled from a separate database be included in search results? (Using a "search-everything" plugin.)

    Nope .. still only the WordPress DB.
    Otherwise you'd have to enter in different database name, user, and pass to make it search a seperate DB.
    I'm looking for one of these options now.

Topic Closed

This topic has been closed to new replies.

About this Topic