Title: Direct read/write to database
Last modified: August 31, 2016

---

# Direct read/write to database

 *  Resolved [bloggy2013](https://wordpress.org/support/users/bloggy2013/)
 * (@bloggy2013)
 * [10 years ago](https://wordpress.org/support/topic/direct-readwrite-to-database/)
 * Does anyone know of a (safe) extension which would allow woo to manipulate a 
   table in a separate mysql database?
 * We basically need woo to read some fields in order to know how to handle an order
   then change a field or two in another database. This will allow users in another
   app to manage their app subscriptions using woo.
 * The app is yii while the woocommerce app has to be installed and running on a
   wordpress site.
 * [https://wordpress.org/plugins/woocommerce/](https://wordpress.org/plugins/woocommerce/)

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

 *  Plugin Contributor [Mike Jolley](https://wordpress.org/support/users/mikejolley/)
 * (@mikejolley)
 * [10 years ago](https://wordpress.org/support/topic/direct-readwrite-to-database/#post-7312300)
 * You’d need code using direct MYSQL query/connect functions instead of using $
   wpdb I think here. If it’s on the same server that is.
 * If it’s not you’d need an API in the other system which you can call and set/
   get data.
 *  Thread Starter [bloggy2013](https://wordpress.org/support/users/bloggy2013/)
 * (@bloggy2013)
 * [10 years ago](https://wordpress.org/support/topic/direct-readwrite-to-database/#post-7312413)
 * Hi, thanks for the reply.
 * Yes, it can be on the same server but we’ve used a plugin for stuff like this
   in the past which allowed us to use a separate db server too.
 * Just wondered if anyone knew of a bridge between woocommerce and yii mainly.
 * Thanks again.
 *  Plugin Contributor [Mike Jolley](https://wordpress.org/support/users/mikejolley/)
 * (@mikejolley)
 * [10 years ago](https://wordpress.org/support/topic/direct-readwrite-to-database/#post-7312421)
 * I don’t know of an existing solution for it.
 *  Thread Starter [bloggy2013](https://wordpress.org/support/users/bloggy2013/)
 * (@bloggy2013)
 * [10 years ago](https://wordpress.org/support/topic/direct-readwrite-to-database/#post-7312424)
 * Here are some other solutions I’ve come up with.
 * [https://docs.woothemes.com/document/woocommerce-rest-api/](https://docs.woothemes.com/document/woocommerce-rest-api/)
 * [https://packagist.org/packages/woothemes/woocommerce-api](https://packagist.org/packages/woothemes/woocommerce-api)
 *  Plugin Contributor [Mike Jolley](https://wordpress.org/support/users/mikejolley/)
 * (@mikejolley)
 * [10 years ago](https://wordpress.org/support/topic/direct-readwrite-to-database/#post-7312425)
 * Thats a way to get the data, but it won’t write it anywhere. You still need to
   facilitate that.
 *  Thread Starter [bloggy2013](https://wordpress.org/support/users/bloggy2013/)
 * (@bloggy2013)
 * [10 years ago](https://wordpress.org/support/topic/direct-readwrite-to-database/#post-7312434)
 * Yes, that will be programmed as a bridge but thought I’d share what I have found
   too.

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

The topic ‘Direct read/write to database’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [bloggy2013](https://wordpress.org/support/users/bloggy2013/)
 * Last activity: [10 years ago](https://wordpress.org/support/topic/direct-readwrite-to-database/#post-7312434)
 * Status: resolved