Title: Custom Database Integration
Last modified: August 20, 2016

---

# Custom Database Integration

 *  [roe.fletcher](https://wordpress.org/support/users/roefletcher/)
 * (@roefletcher)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/custom-database-integration/)
 * Hello,
 * I’ve got multiple WordPress sites that I am responsible for. I am attempting 
   to combine all of our databases into one. I’ve created a new database, backed
   up our 6 sites databases and through find and replace changed the table prefixes
   in each. I’ve uploaded these all to the new database. When I go into the wp.config
   file to flip the switch and have our sites start writing to the new database 
   everything works out great! Except… My images in the media library get screwed
   up. By this I mean all the thumbnails in the backend are blank, when inspecting
   the attachment page I only find a link to the image instead of the image itself
   and my site seems to only randomly populate images. I will leave [http://www.infinitiofmissionviejoblog.com](http://www.infinitiofmissionviejoblog.com)
   with the changed wp.config file up for a short while as an example. Please help!
 * Background:
    We are importing our Active Directory data and hope to use this 
   to maintain various relations between the sites. We use tags on our posts to 
   give credit to our salespeople, but also use tags for other purposes. I need 
   to be able to compare a tag to the AD list to identify if it is an employee and
   be able to generate information based on that. For example one of our sites [http://www.audimissionviejoreviews.com](http://www.audimissionviejoreviews.com)
   needs to push review information to our central database associated with the 
   AD information. I’ve currently hacked this together with a shortcode and an xml
   file, but this has its limitations.
 * I really appreciate any time you might put towards helping me to solve this matter.

The topic ‘Custom Database Integration’ is closed to new replies.

## Tags

 * [database-migration](https://wordpress.org/support/topic-tag/database-migration/)
 * [multiple sites](https://wordpress.org/support/topic-tag/multiple-sites/)

 * In: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
 * 0 replies
 * 1 participant
 * Last reply from: [roe.fletcher](https://wordpress.org/support/users/roefletcher/)
 * Last activity: [13 years, 2 months ago](https://wordpress.org/support/topic/custom-database-integration/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
