Title: Connecting databases
Last modified: February 18, 2024

---

# Connecting databases

 *  Resolved [Arashtad](https://wordpress.org/support/users/arashtad/)
 * (@arashtad)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/connecting-databases/)
 * Hello,
 * How can we make multiple SliceWP installations on different websites use a single
   database? Ex. let’s say we have site1, site2, and site3 with different addresses
   and databases that all have SliceWP installed on them. What we are looking for
   is connecting all SliceWP installations on different websites and make them use
   the database of one website. So, each website still has its own database except
   the SliceWP part of the site that is connected to the SliceWP database of one
   site. This way the data of the SliceWP on all websites is the same.
   There are
   multiple approaches to do this like using API, etc. But, connecting all plugins
   to one DB is the fastest and less resource hungry solution. So, we chose to do
   that.Also, I understand that the logic for such action is finding the functions
   that establishes the db connections and interactions with it. But, I opened this
   topic so you who are the most familiar person with the plugin can give us a hint
   about the files and functions that are involved.
 * Basically, I’m trying to develop an additional plugin that changes the path to
   the database for SliceWP without overriding the original codes.
   Thank you

Viewing 1 replies (of 1 total)

 *  Plugin Author [iova.mihai](https://wordpress.org/support/users/iovamihai/)
 * (@iovamihai)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/connecting-databases/#post-17434246)
 * Hey [@arashtad](https://wordpress.org/support/users/arashtad/),
 * Thank you for reaching out! From what I see, you’ve opened the same ticket via
   our website.
 * I’ve just responded to you via email. Please check both your spam and inbox folders
   for my reply.
 * Thank you and best wishes,
 * Mihai

Viewing 1 replies (of 1 total)

The topic ‘Connecting databases’ is closed to new replies.

 * ![](https://ps.w.org/slicewp/assets/icon-256x256.png?rev=2432848)
 * [Affiliate Program Suite — SliceWP Affiliates](https://wordpress.org/plugins/slicewp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/slicewp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/slicewp/)
 * [Active Topics](https://wordpress.org/support/plugin/slicewp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/slicewp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/slicewp/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [iova.mihai](https://wordpress.org/support/users/iovamihai/)
 * Last activity: [2 years, 3 months ago](https://wordpress.org/support/topic/connecting-databases/#post-17434246)
 * Status: resolved