# Database tables being deleted upon import from LocalSync

**URL:** <https://community.localwp.com/t/database-tables-being-deleted-upon-import-from-localsync/16987>\
**Category:** Support\
**Tags:** localsync\_io\
**Created:** [February 4, 2020, 2:28pm UTC](https://community.localwp.com/t/database-tables-being-deleted-upon-import-from-localsync/16987 "2020-02-04T14:28:50Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![impossiblycr8v](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/impossiblycr8v/32/9505_2.png) [@impossiblycr8v](https://community.localwp.com/u/impossiblycr8v)\
**Post date:** [February 4, 2020, 2:28pm UTC](https://community.localwp.com/t/database-tables-being-deleted-upon-import-from-localsync/16987/1 "2020-02-04T14:28:50Z")

</div>

Not sure if this is an issue with the plugin [LocalSync](https://localsync.io/) (from the InfiniteWP folks) or LbF, but I’m noticing some very strange behavior. When pulling down the database from my live site, certain tables including wp-users and wp-posts get deleted (or just don’t get imported). This only happens on the newest version of Local. Everything works fine in 3.3.

I’d like to upgrade to the latest version, but this is a bit of a blocker. Any help is appreciated 🙂

---

<div class="post-metadata">

**Author:** ![system](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/system/32/1_2.png) [@system](https://community.localwp.com/u/system)\
**Post date:** [May 4, 2020, 2:28pm UTC](https://community.localwp.com/t/database-tables-being-deleted-upon-import-from-localsync/16987/2 "2020-05-04T14:28:54Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.

---

<div class="post-metadata">

**Author:** ![ben.turner](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/ben.turner/32/5366_2.png) [@ben.turner](https://community.localwp.com/u/ben.turner)\
**Post date:** [September 18, 2020, 2:45pm UTC](https://community.localwp.com/t/database-tables-being-deleted-upon-import-from-localsync/16987/3 "2020-09-18T14:45:39Z")

</div>



---

<div class="post-metadata">

**Author:** ![ben.turner](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/ben.turner/32/5366_2.png) [@ben.turner](https://community.localwp.com/u/ben.turner)\
**Post date:** [September 18, 2020, 2:48pm UTC](https://community.localwp.com/t/database-tables-being-deleted-upon-import-from-localsync/16987/4 "2020-09-18T14:48:11Z")

</div>

Hey @impossiblycr8v –

Thanks for your patience with this! I’ve never used LocalSync, but missing tables definitely sounds like something is breaking.

Does the site still “sort of work” – obviously with lots of tables missing, it won’t work correctly, but if you access the site in a browser, does it actually load and give errors?

Since it sounds like a MySQL issue, can you provide a zip of the `logs` folder under the site’s folder? You should see `logs` next to `app`.

Also, can you please provide your Local Log? See this Community Forum post for instructions on how to do so:

- [How do I retrieve Local’s Log?](https://localwp.com/community/t/how-do-i-retrieve-locals-log-file/3720)

---

<div class="post-metadata">

**Author:** ![impossiblycr8v](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/impossiblycr8v/32/9505_2.png) [@impossiblycr8v](https://community.localwp.com/u/impossiblycr8v)\
**Post date:** [September 19, 2020, 1:08am UTC](https://community.localwp.com/t/database-tables-being-deleted-upon-import-from-localsync/16987/6 "2020-09-19T01:08:06Z")

</div>

I’m not sure if this is still an issue as I abandoned using LocalSync as a result of this problem.

---

<div class="post-metadata">

**Author:** ![ben.turner](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/ben.turner/32/5366_2.png) [@ben.turner](https://community.localwp.com/u/ben.turner)\
**Post date:** [September 21, 2020, 6:32pm UTC](https://community.localwp.com/t/database-tables-being-deleted-upon-import-from-localsync/16987/7 "2020-09-21T18:32:36Z")

</div>


