I find the export tools very slow and not so reliable. If imporitng fails you probably have a timeout with your server or your dump file is too big.
Here’s the way I do it, and it’s much faster:
- extract a fresh copy of wordpress code in production
- replace the wp-content folder with the one from dev
- copy the wp-config.php from dev and verify the database connection settings
- do a full mysql dump of your development wordpress database
- import the dump into your production database
-
if the domain used in dev is different from production run the following queries in production.
UPDATE wp_options SET option_value = replace(option_value, ‘olddomain.com’, ‘newdomain.com’) WHERE option_value like ‘%olddomain.com%’;
UPDATE wp_posts SET guid = replace(guid, ‘olddomain.com’,’newdomain.com’), post_content = replace(post_content, ‘olddomain.com’,’newdomain.com’);
Related Posts:
- What is this JavaScript “require”?
- How to resolve ORA-011033: ORACLE initialization or shutdown in progress
- Oracle SQL query for Date format
- Failed to connect to mysql at 127.0.0.1:3306 with user root access denied for user ‘root’@’localhost'(using password:YES)
- Can I have multiple primary keys in a single table?
- Using wpdb to connect to a separate database
- How can I make a WordPress database portable and url independent?
- wpdb->insert multiple record at once
- How to migrate a HTTPS WordPress installation to localhost?
- Database connection close
- How to stop WordPress using utf8mb4_unicode_520_ci collation?
- Importing posts from old website to new conflicting post ID’s?
- Exporting revisions
- WP_Options ID high
- Default WordPress settings API data sanitization
- Fatal error: Call to undefined function dbDelta()
- How to use multiple database in wordpress?
- How best to inject ads between posts in the loop?
- How to write Hebrew characters?
- Cloning and syncing a WordPress website
- Error establishing a database connection – with Debug Data
- Finding the login page from database?
- Does thumbnail regeneration edit the database?
- When and why should I use $wpdb different return types?
- Database with mixed collation (utf8mb4 & utf8_general_ci)
- Using table lock with wp_insert_post?
- Should I remove transients from the wp_options table?
- WordPress doesn’t show all posts in database
- Adding new row to wp_post table
- Extracting the post_id via the wp_insert_post action (external db query)
- How to interact with another wordpress install on same database?
- Are custom tables in the database overwritten when WordPress is updated to new versions?
- What is the proper way to validate and sanitize JSON response from REST API?
- How to migrate a website based on a custom database to wordpress?
- How do I get the posts within a certain year/date(with sql query)?
- batch UPDATE autoload value in wp_options table
- Displaying BLOB PDF File
- Saving into post_excerpt or post_content
- Maintain user profile data in a non-WordPress database
- How to fix the disappearance of the “\” character when updating a post in the database
- Data storage for JS app using WP REST API
- WP CLI Core install – blank database
- Update from 4.5 to 4.6 failing
- Setup 3 Sites To Connect To 1 Database and Share Data
- How can I push local database changes to production, without impacting recent posts/pages that were published on production server?
- Setup private content for specific users with daily updates [closed]
- Does auto_load to ‘no’ in wp_options improve performance
- Call to undefined function get_user_meta() – trying to access data in MySQL from custom fields
- Will there be any concern if I upgrade my current WordPress Database server from Centos 7 Mariadb 5.5 to Centos 8 Mariadb 10.3?
- In which format the data is stored in WordPress Databases?
- Is it possible to rebuild the website while not accesseing the original database?
- Error message on blog posts only on my local environment [closed]
- how to read database fields
- $wpdb->query can’t insert data
- WSOD 3.9.1 – Tried Everything so far
- Can you refresh ONLY the wordpress adminbar and not the whole page?
- After database migration, theme mods don’t show [closed]
- Sending posts from Python to WordPress
- Problem migrating to localhost
- Remote database connection and local development
- How can I detect right db type?
- Add search bar to Custom Database Table in WordPress Dashboard
- Design problems when exporting remote database for local development
- How do you render posts from outside wordpress?
- Website displays old version of page
- A change in URL slug in database returns 404, how can I do auto-redirect?
- Second ezSQL initialization for MSSQL
- Displaying table data on a page
- muliple wordpress installs (network) on different databases
- White Screen in Home Page
- Continuous SQL query errors from outside source
- How to escape percentage sign(%) in sql query with $wpdb->prepare?
- Whats the best practise on how to store json data from a custom settings page?
- Recovery – Restore Database after moving folder location locally
- Migrate Users From laravel to wordpress
- WordPress has been updated! Before we send you on your way, we have to update your database to the newest version
- /wp-admin not accessible after migrating to local host (no plugin issue)
- Job and Employee Performance Tracking with Product Safety
- how add more field to wp user and save it to database
- set_transient fails if the value has more than 60.000 characters
- How do I cleanup my database with data that is no longer being used?
- Malware in old website – how to migrate?
- Set SQL_BIG_SELECTS and MAX_JOIN_SIZE on a WP_Query
- How to optimize wp_option table?
- How to display $wpdb->insert_id; value on redirected page
- Database for JQuery Autocomplete field
- Should I Use only wpdb Class to Write Custom Queries?
- Auto populate form fields based on serial input or pull listings from other websites?
- Catchable fatal error in formatting.php
- Wrong url for the images while using same database for two WordPress installations
- Sending WordPress database information to cross domain the safe way?
- Database Name Change
- Weird characters in title if it contain “ ”
- Where To Find bb_profile_data(); In bbPress?
- How do you build a database-centric site in WP?
- One information repeated on multiple locations on one site [closed]
- Attach posts based on category and position
- How to properly configure SSL connection to remote azure database for running queries within a WordPress environment
- Database Queries are crashing the server
- Uploading to WordPress Database