I also happened to me once, I only had like 10 real post, so what I did was to go to phpMyAdmin, make sure your that on my wp_posts
and wp_posts_meta
tables are only information about the 10 real posts IDs, from the mysite/wp-admin/export.php
I exported all the posts (10 of them), I run the following SQL query on phpMyAdmin.
DELETE FROM wp_posts;
DELETE FROM wp_post_meta;
TRUNCATE TABLE wp_posts;
TRUNCATE TABLE wp_post_meta;
And finally, I import again the 10 posts, after that the ID was bad to normally, mine was only around 10000 tho, but it should work nonetheless.
Related Posts:
- Is it fine to have foreign key as primary key?
- Detecting errors generated by $wpdb->get_results()
- wpdb update add current timestamp not working
- Custom form that store input in database
- Restoring WordPress posts from database only
- Displaying content from one WP site on separate WP site
- Lost the `wp_options` table: what’s the best way to restore the site?
- Issue with wp_insert_post and post_content field error Could not update post in the database
- wp_posts – guid update
- Performance Gains of Relational DB Setup
- How to move existing WordPress wp-content folder along with database to new server and new domain name?
- WordPress Database Charset/Collate
- store simple data in get_option()
- How might I retrieve a featured post image from an external WP site and display it as a link back?
- Why is Woocommerce writing in my wp_comment table?
- Error establishing a database connection when migrating site to localhost
- How to implement content from external database into WordPress text page? [closed]
- Strange Deadlock database error for the query “Delete From wp_options”
- Strange characters on wordpress site – Not UTF8 Issue
- WordPress showing install screen after max_questions error
- Connect to live db whilst working locally
- Storing textbox values in Database
- WooCommerce – Query for ordered products
- Is a direct or import approach safer for migration into WordPress?
- Query WordPress database by registered date and role
- Tons of Twitter rows in my database
- Why can’t I swap a DB in a WP install? [closed]
- How to replace values in WordPress DB using phpMyAdmin
- How do I reset a self-hosted WordPress URL?
- One post carries 30 postmeta values, is this too much?
- Show content from database
- Customize JSON output
- What happens if I overwrite the current wp_options table with a backup from a week ago?
- CRUD operations using WordPress database API
- Display SQL that wordpress is running
- Critical error in final stage of website launch – URLs are BROKEN!
- change wp user status from wp_users table
- How to resolve Connections using insecure transport are prohibited while –require_secure_transport=ON
- How to Mirror WordPress database from Remote server to Local server
- Difficulty importing my live site to local
- WordPress returns to an old version
- data (html) migration to posts
- Super slow queries from author archive pages killing my database
- localize elements in database
- Use same database on main domain & sub domain
- How do I convert a MySQL database from utf8mb4 to utf8 encoding?
- Get value form wordpress database
- Moving to another server database connection error [closed]
- Why user_pass column in wp_users table is varchar(64)
- Best practice to limit results in get_row()?
- Is there an easy way of exporting posts with their category already asigned and pictures from localhost?
- Connect to another WP install and grab post based on custom field
- Which table (and column) has the content of configured get_post_meta?
- Serialize data before inserting into the DB
- Reinstalling wordpress from database breaks the site
- Pages from custom table
- Trouble running $wpdb->query() with last_insert_id
- Using $wpdb | checking entered email against existing emails in db
- content disappearing minutes after it’s published
- What is the most efficient way to reset a WordPress site?
- wp-cli: Error establishing a database connection: undefined constant DB_USER
- Optimizing function that automatically creates internal links based on post title string
- Can I customised default WP table
- Woocommerce – Check product stock availability from external database
- Get results from wordpress data custom table
- Outputting query results
- Help With a Large WordPress Based MySQL Database on Shared Hosting
- WordPress where clauses in db select
- How to display data from db in select list [closed]
- Will adding & modifying default WordPress table index break future WordPress update
- Database migration issues – Error #1046 No database selected
- echo site_url() returns a different value than what is in the database siteurl field
- Search Character Set Problem
- Native timestamp on wp_options option
- _wp_attachment_metadata is not being added to database when PDF files uploaded
- SELECT rows between two datetimes when the range is dynamic [closed]
- How to get the full stack trace for WordPress “table doesn’t exist” error in debug.log?
- How to fix Uploaded to this post option to see group of images uploaded to a post?
- How to access a table in a wordpress database using REST API?
- error establishing a database connection 3
- How to edit posts/pages without making the change live?
- Correct and secure way to access a custom SQL database in a custom PHP template file
- Does WordPress Support Using Named Pipes on the Windows Operating System?
- Missing latest posts and options after DB migration via phpMyAdmin
- get_the_terms is not working
- Custom metabox does not store data
- wordpress database error
- How do i get value from wp_postmeta?
- Local host to server import problem
- Restoring .sql backup results in “Error establishing a database connection”
- Link to handle $_GET request
- WordPress sync with phpbb
- “MySQL server has gone away” since update to 3.8
- featured image not showing up with mysql_connect
- Getting deleted users in database
- Options of accessing wordpress data from mobile app
- Getting data from a table using a query
- Database interaction (private-public) [closed]
- WP Multisite Users Not Linking
- Query a meta key using an array of values where the database value is a string