• Plans & Pricing
  • Log in
  • Get started
  • WordPress Hosting
  • WordPress for Agencies
  • Become an Affiliate
  • Domain Names
  • AI Website Builder
  • Website Builder
  • Create a Blog
  • Newsletter
  • Professional Email
  • Website Design Services
  • Commerce
  • WordPress Studio
  • Enterprise WordPress 
  • Overview
  • WordPress Themes
  • WordPress Plugins
  • WordPress Patterns
  • Google Apps
  • Support Center
  • WordPress News
  • Business Name Generator
  • Logo Maker
  • Discover New Posts
  • Popular Tags
  • Blog Search
Get started
  • Sign up
  • Log in
About
  • Plans & Pricing
Products
  • WordPress Hosting
  • WordPress for Agencies
  • Become an Affiliate
  • Domain Names
  • AI Website Builder
  • Website Builder
  • Create a Blog
  • Newsletter
  • Professional Email
  • Website Design Services
  • Commerce
  • WordPress Studio
  • Enterprise WordPress  
Features
  • Overview
  • WordPress Themes
  • WordPress Plugins
  • WordPress Patterns
  • Google Apps
Resources
  • Support Center
  • WordPress News
  • Business Name Generator
  • Logo Maker
  • Discover New Posts
  • Popular Tags
  • Blog Search
Jetpack App
  • Learn more
  • Support Center
  • Guides
  • Courses
  • Forums
  • Contact
Search
  • Support Center
  • Guides
  • Courses
  • Forums
  • Contact
Forums / Merge Database with Another Database WordPress

Merge Database with Another Database WordPress

  • Unknown's avatar
    bkilkowski · Member · Apr 3, 2023 at 3:30 pm
    • Copy link Copy link
    • Add topic to favorites Add topic to favorites

    We are taking ownership of our WordPress site are now going to manage it in-house. The company who was previously managing it for us was hosting our site on SiteGround. They sent over a folder with a zip file and an SQL file. I have already imported the “wp-content” file to the site, I just need to import the data from the SQL file into our new database.

    I have previously tried to import the SQL file and then change the table prefix in wp-config.php, but after I do this, I can no longer log into the admin portal. I also noticed that the SQL file does not have a user’s table. I also tried changing the prefixes of all of the default tables to match the one of the imported database. Can I merge the two databases so I can still have that users table, or should I let the company know, so they can resend the SQL file?

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar
    alishaynoor0 · Member · Apr 3, 2023 at 3:39 pm
    • Copy link Copy link

    It sounds like you are trying to migrate a WordPress site from SiteGround to a new hosting provider. To do this, you need to import both the SQL file and the wp-content folder to the new server.

    Regarding the issue with the SQL file, it is possible that the table prefix in the wp-config.php file is not set correctly. If the table prefix is different in the new hosting provider, you need to update it in the wp-config.php file to match the prefix used in the SQL file.

    However, changing the table prefix after importing the SQL file can cause issues with the WordPress site, including the inability to log into the admin portal. This is because the user table and other database tables have a specific prefix, and changing it can cause conflicts.

    Merging the two databases is possible, but it can be a complex process, and it is best left to experts. The easiest and most reliable solution is to request the company that previously managed the site to provide a new SQL file that includes the users table.

    Once you have the correct SQL file, you can import it into the new hosting provider’s database using phpMyAdmin or another MySQL management tool. Then, update the wp-config.php file with the correct database credentials, including the database name, username, and password.

    After the migration is complete, you should test the site thoroughly to ensure that everything is working correctly. You should also update any necessary settings, including the site URL, to ensure that the site is fully functional on the new hosting provider.

  • The topic ‘Merge Database with Another Database WordPress’ is closed to new replies.

Tags

  • .org
  • account
  • design
  • import
  • Jetpack

About this topic

  • In: Support
  • 2 participants
  • 1 reply
  • Last activity 3 years
  • Latest reply from bkilkowski

Couldn't find what you needed?

Contact us

Contact us

Get answers from our AI assistant, with access to 24/7 expert human support on paid plans.

Browse our guides

Browse our guides

Find step-by-step solutions to common questions in our comprehensive guides.

WordPress.com

Products
  • WordPress Hosting
  • WordPress for Agencies
  • Become an Affiliate
  • Domain Names
  • AI Website Builder
  • Website Builder
  • Create a Blog
  • Professional Email
  • Website Design Services
  • WordPress Studio
  • Enterprise WordPress
Features
  • Overview
  • WordPress Themes
  • WordPress Plugins
  • WordPress Patterns
  • Google Apps
Resources
  • WordPress.com Blog
  • Business Name Generator
  • Logo Maker
  • WordPress.com Reader
  • Accessibility
  • Remove Subscriptions
Help
  • Support Center
  • Guides
  • Courses
  • Forums
  • Contact
  • Developer Resources
Company
  • About
  • Press
  • Terms of Service
  • Privacy Policy
  • Do Not Sell or Share My Personal Information
  • Privacy Notice for California Users
DeutschEspañolFrançaisBahasa IndonesiaItalianoNederlandsPortuguês do BrasilSvenskaTürkçeРусскийالعربيةעִבְרִית日本語한국어简体中文繁體中文English

Mobile Apps

  • Download on the App Store
  • Get it on Google Play

Social Media

  • WordPress.com on Facebook
  • WordPress.com on X (Twitter)
  • WordPress.com on Instagram
  • WordPress.com on YouTube

Automattic

Automattic
Work With Us
    • WordPress.com Forums
    • Sign up
    • Log in
    • Copy shortlink
    • Report this content
    • Manage subscriptions