You can try a couple of things. WordPress has a built-in Importer/Exporter you can find under the Tools menu:
The tool is a bit hit or miss, your mileage may vary.
Alternatively, you can do the following:
First, take backups of everything!!
It sounds like you already have, but do it again, just in case.
- Export only the
wp_5_
tables from your current database to a SQL file. - Next, create a fresh new WordPress single site. Don’t add any content or anything, just set it up.
- Import the SQL file from step
1.
into your single site database. Now, you should have bothwp_
andwp_5_
tables. - You have a couple of options now:
- In your
wp-config.php
, change this line$table_prefix = 'wp_';
to$table_prefix = 'wp_5_';
- OR: Run a query like this for EVERY table you want to migrate:
- In your
INSERT INTO wp_posts SELECT * FROM wp_5_posts;
-- ... etc, so for terms you would do
INSERT INTO wp_terms SELECT * FROM wp_5_terms;
Related Posts:
- How to reset passwords for all users on a network using wp cli
- find a random blogid across my multisite network that has at least one post published
- WP-CLI methods for get_current_blog_id, get_blog_details or $wpdb->prefix
- wp-cli is not working properly. No response from commands
- Generate WP-CLI @alias for each site on multisite
- Built to scale, or worry later?
- Using WP CLI to set options in WP Multisite
- How can I list only sites that use a particular theme or plugin?
- SQL Query to Get list of all users along with their blogs
- Can wp-cli display all users and their roles across all sites in a multisite instance?
- How to run nested xargs commands?
- Using $wpdb Class to Pull Recent Comments Across a Network
- Split a database will improve performance?
- WP-CLI can’t list posts
- Within the database, where is the flag which says that a user has Super Admin rights?
- Performance on WPMS
- Bulk activate a theme on multisite
- How to create a network using a command line script?
- Database Tables Lost Indexes? How to Recover?
- Pushing stored procedure to a multisite database in WordPress
- Query to import data from one MultiSite table to another (pages/sub-pages)
- WP-CLI cron on multisite using WP-Toolkit “succeded”, but callback not executed
- Error: reassigning content to a different user is not supported on multisite
- Will changing the folder name two directories above a fresh wordpress installation break the site?
- Obtaining user table for one site on multisite set up
- new multisite, old db
- Renaming admin user on multisite install by MySQL
- Set up Network Locally on a Flash Drive
- Migrating Multisite with WP-Cli and/or Search-Replace-DB
- Create WordPress Multisite Instance Programmatically
- Delete all user’s meta without knowing all the ‘key’
- WP MultiSite: Can’t select database error after changing to new domain
- add_blog_option blog ID
- How to create a blogs category page with Blog-Types Plugin
- WP-Cli Error When Mapping Multisite Subdomain
- wp option get blogname –url=my-sub-site.com returning main site option
- WP-CLI Error Requesting CURL Extension
- wp cli search and replace on –network Error reconnecting to the database
- Can I use the main Multisite as a backend only?
- wp-cli core install –skip-email and –skip-config flags not working on MAMP unknown parameter
- Search returns “Nothing Found” on a sub directory
- How To Upload Existing WordPress Site To WordPress Multisite Using SSH
- WordPress Multisite with thousands of blog
- Get multisite count without php?
- WordPress and SQL – Update and Insert from another table if column value doesn’t exist
- MySql Database In WordPress Multisite
- Multisite Tables the same as Single Install?
- Plugin data shared in Multisite
- Merging versions of wp_posts based on post_title
- Too much slow queries with my multisite
- Multisite Domain Mapping with SSL
- Basic Multisite Question – Managing Content Centrally
- WP-Admin not working properly at WordPress multisite with subdirectories
- Multisite – Keep users logged in only to their site
- Is there an easy way to separate themes on network?
- Multisite with Different Domains
- Weird Issue with load balanced WP 3.0 setup
- How does WordPress connect sites and the wp_users table?
- Copy posts from one blog to another in multisite environment
- Child Theme CSS Not Overriding Parent Theme In MultiSite Site
- Is the W3 Total Cache plugin a good choice for WordPress MultiSite? [closed]
- How To Remove Dashboard Menu Items for Multisite Users?
- Staging setup for multisite installation
- Free Google Analytics plugin that works with WordPress in network mode (WPMU)? [closed]
- Is it possible to install BuddyPress with blogs installed on several servers? [closed]
- All wordpress network subfolder sites being redirected to main site
- Get current Blog ID in Tinymce Plugin Dialog Window in WPMU
- WordPress Multisite + Erros with URLS and ADMIN
- How can I tell if a wordpress site is running on multisite?
- Adding hreflang to multisite with no plugin?
- possible to combine sites that have lots of content, into multisite?
- Can Categories be used to hack a Multisite-like setup w/ a single MySql db?
- Does a single theme license work on multisite? [closed]
- muliple wordpress multisite installs on the same sever
- WP Multisite – Additional subdomain on the site for API purposes
- get_last_updated() not working – multisite loop
- Multisite configuration for multiple domains
- 404 not working on main site on multisite
- Is it possible to create /sub/sub domain based multiste?
- How long is “as long as possible” in wp_cache_set()?
- Cannot see dropdown shortcut to site dashboard in WordPress network why?
- How can I install WordPress as blog provider , stable?
- List all sites created in network and get the language used for each site
- Multisite Dashboard Always Redirects to Main Dashboard
- Moving from a non WordPress site to a WordPress Site – Login between both sites
- WP Multisite child theme: get_template_directory_uri() seeks it’s own subdirectory instead of directory of parent theme
- WordPress Multisite: Login to all subsites at once
- How to mapping a WordPress MultiSite Network Subdirectories to new domain with all subsites
- Multi-site Installation in WordPress | Security & Future Migrations
- Get the latest 3 posts across the network
- Blog broken after changing Site/Home URL
- Configuring Multisite with subdomains
- Autoblog posts in wpms(network) into main site including featured images
- Cron job disappering without notice?
- How do I make a copy of WordPress to other folder
- MU Domain mapping
- Avoid landing page redirects issue in wordpress multisite
- Multisite website configure Domain issue
- Can i use the same content in two websites? one is the main website and one is directory website
- WordPress Multisite