WordPress.org

Support

Support » How-To and Troubleshooting » Pulling data from another database on server into a page

Pulling data from another database on server into a page

  • 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.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Jeremy Clark

    @jeremyclark13

    Member

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

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

    Jeremy Clark

    @jeremyclark13

    Member

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

    duhkneez

    @duhkneez

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

    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.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Pulling data from another database on server into a page’ is closed to new replies.
Skip to toolbar