Title: Remote DB as input
Last modified: August 21, 2016

---

# Remote DB as input

 *  [bloggy2013](https://wordpress.org/support/users/bloggy2013/)
 * (@bloggy2013)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/remote-db-as-input/)
 * I just came across this and am reading up on it.
    In my application, I would 
   like to graph items from a database but that database is not the wordpress one,
   it is another server.
 * Can this be done?
 * [https://wordpress.org/plugins/wp-charts/](https://wordpress.org/plugins/wp-charts/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [i3ambii](https://wordpress.org/support/users/i3ambii/)
 * (@i3ambii)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/remote-db-as-input/#post-5124122)
 * You can dynamically build the shortcode with PHP, so if you can access the remote
   database okay, yes, you can feed it to WP charts.
 * After a quick Google, something similar to the below may do the trick to get 
   you connected. Obviously you will need to know the structure of the DB if you
   wish to query it!
 *     ```
       <?php
   
       mysql_connect("mysite.com:3306", "admin", "1admin") or die(mysql_error());
       echo "Connected to MySQL<br />";
   
       ?>
       ```
   
 * Never tried it myself mind!
 * Hope this helps,
 * Ryan
 *  Thread Starter [bloggy2013](https://wordpress.org/support/users/bloggy2013/)
 * (@bloggy2013)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/remote-db-as-input/#post-5124123)
 * The developer came with a plugin which allows an external DB to be used. I’m 
   guessing such a plugin exists in the plugin sections. Just didn’t know this at
   the time.
 *  [drdavidschulz](https://wordpress.org/support/users/drdavidschulz/)
 * (@drdavidschulz)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/remote-db-as-input/#post-5124124)
 * Did you find the plug-in? I would like to do this as well.
 *  Thread Starter [bloggy2013](https://wordpress.org/support/users/bloggy2013/)
 * (@bloggy2013)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/remote-db-as-input/#post-5124125)
 * No, it was installed by a company I hired to build me something. It is theirs,
   proprietary.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Remote DB as input’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-charts_b1d6e1.svg)
 * [WordPress Charts](https://wordpress.org/plugins/wp-charts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-charts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-charts/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-charts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-charts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-charts/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [bloggy2013](https://wordpress.org/support/users/bloggy2013/)
 * Last activity: [11 years, 9 months ago](https://wordpress.org/support/topic/remote-db-as-input/#post-5124125)
 * Status: not resolved