WordPress.org

Ready to get started?Download WordPress

Forums

Problems connecting to external database (2 posts)

  1. Tyssen
    Member
    Posted 6 years ago #

    I read in another thread on the support forum about creating a separate template for a page I want to use to connect to an external database. So I did that and it works fine when testing locally with my XAMPP installation, but when I upload everything to the server, I'm getting these errors generated from header.php:

    WordPress database error: [Table 'name-of-external-db.wp_terms' doesn't exist]
    WordPress database error: [Table 'name-of-external-db.wp_posts' doesn't exist]
    WordPress database error: [Table 'name-of-external-db.wp_options' doesn't exist]

    in other words the table names from the WP db are being appended to my external db. Anyone know a way around this?

  2. Tyssen
    Member
    Posted 6 years ago #

    Turns out it was because I was missing the new_link being set to true from my mysql_connect function call.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags