Title: Migration problems (large database)
Last modified: August 28, 2025

---

# Migration problems (large database)

 *  Resolved [Mikko Saari](https://wordpress.org/support/users/msaari/)
 * (@msaari)
 * [9 months, 3 weeks ago](https://wordpress.org/support/topic/migration-problems-large-database/)
 * I have a large database of stats (1.7 million rows in _koko_analytics_post_stats),
   and the migration times out. Is it possible to run the migration from command
   line somehow to avoid the timeout? I’d like to keep all my existing stats, while
   getting the new treats – this site has lots of taxonomy page traffic and is the
   main reason I’ve been asking for this feature.

Viewing 3 replies - 16 through 18 (of 18 total)

[←](https://wordpress.org/support/topic/migration-problems-large-database/?output_format=md)
[1](https://wordpress.org/support/topic/migration-problems-large-database/?output_format=md)
2

 *  Thread Starter [Mikko Saari](https://wordpress.org/support/users/msaari/)
 * (@msaari)
 * [9 months, 3 weeks ago](https://wordpress.org/support/topic/migration-problems-large-database/page/2/#post-18617512)
 * I decided to take the nuclear option: I reset all the stats. I have the backup
   from this morning if I miss the old stuff, and since the whole method of calculating
   the stats has changed, it’s best to start fresh.
 * Oh, and I bought the Pro. Thanks for all your hard work!
 *  Plugin Author [Danny van Kooten](https://wordpress.org/support/users/dvankooten/)
 * (@dvankooten)
 * [9 months, 3 weeks ago](https://wordpress.org/support/topic/migration-problems-large-database/page/2/#post-18618133)
 * Oh wow. That’s a clean slate [@msaari](https://wordpress.org/support/users/msaari/).
   But that should definitely do the trick – provided your database tables are indeed
   correct (the reset button only truncates them – it does not re-create them).
   
   Thank you for throwing in some financial support. I truly appreciate it. Today
   and yesterday were hectic, mistakes were made, lessons were learned.
 *  Thread Starter [Mikko Saari](https://wordpress.org/support/users/msaari/)
 * (@msaari)
 * [9 months, 3 weeks ago](https://wordpress.org/support/topic/migration-problems-large-database/page/2/#post-18618159)
 * This is an excellent exercise in letting go of things; that has been a theme 
   for me this year. Some time ago I couldn’t have thought of doing it this way.
 * I really appreciate your responsiveness and support, as a fellow plugin author
   I know what it is.

Viewing 3 replies - 16 through 18 (of 18 total)

[←](https://wordpress.org/support/topic/migration-problems-large-database/?output_format=md)
[1](https://wordpress.org/support/topic/migration-problems-large-database/?output_format=md)
2

The topic ‘Migration problems (large database)’ is closed to new replies.

 * ![](https://ps.w.org/koko-analytics/assets/icon.svg?rev=2980600)
 * [Koko Analytics - Privacy-Friendly WordPress Analytics](https://wordpress.org/plugins/koko-analytics/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/koko-analytics/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/koko-analytics/)
 * [Active Topics](https://wordpress.org/support/plugin/koko-analytics/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/koko-analytics/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/koko-analytics/reviews/)

 * 18 replies
 * 2 participants
 * Last reply from: [Mikko Saari](https://wordpress.org/support/users/msaari/)
 * Last activity: [9 months, 3 weeks ago](https://wordpress.org/support/topic/migration-problems-large-database/page/2/#post-18618159)
 * Status: resolved