# Site unable to be Pulled due to Command Failed MySQL

**URL:** <https://community.localwp.com/t/site-unable-to-be-pulled-due-to-command-failed-mysql/14222>\
**Category:** Support\
**Tags:** mac, mysql-8\
**Created:** [September 17, 2019, 2:41pm UTC](https://community.localwp.com/t/site-unable-to-be-pulled-due-to-command-failed-mysql/14222 "2019-09-17T14:41:36Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![ryker002](https://avatars.discourse-cdn.com/v4/letter/r/53a042/32.png) [@ryker002](https://community.localwp.com/u/ryker002)\
**Post date:** [September 17, 2019, 2:41pm UTC](https://community.localwp.com/t/site-unable-to-be-pulled-due-to-command-failed-mysql/14222/1 "2019-09-17T14:41:36Z")

</div>

Hello, I am trying to pull down a site from flywheel but whenever I try I get the error ““Uh-oh! Error pulling site. We ran into an issue pulling from Flywheel.”

Log file states  
{“thread”:“main”,“class”:“PullService”,“message”:"Error: Command failed: /Applications/Local.app/Contents/Resources/extraResources/site-binaries/mysql-8.0.15/bin/mysql --default-character-set=utf8 -A│

Sorry if this is rather vague, all other sites work when being pulled down so I am at a loss of what to do here.

---

<div class="post-metadata">

**Author:** ![elena](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/elena/32/8287_2.png) [@elena](https://community.localwp.com/u/elena)\
**Post date:** [September 17, 2019, 2:43pm UTC](https://community.localwp.com/t/site-unable-to-be-pulled-due-to-command-failed-mysql/14222/2 "2019-09-17T14:43:23Z")

</div>

Hi @ryker002,

Welcome to the Local Community! I’m sorry to hear that you’re having issues pulling a site to Local.

Can you please provide your `local-by-flywheel.log` file? See this Community Forum post for instructions on how to do so:

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

Thanks!

---

<div class="post-metadata">

**Author:** ![ryker002](https://avatars.discourse-cdn.com/v4/letter/r/53a042/32.png) [@ryker002](https://community.localwp.com/u/ryker002)\
**Post date:** [September 17, 2019, 2:49pm UTC](https://community.localwp.com/t/site-unable-to-be-pulled-due-to-command-failed-mysql/14222/3 "2019-09-17T14:49:01Z")

</div>

[local-lightning.log](https://community.localwp.com/uploads/short-url/unTc4uEC2bDfVYivF3I9MdF6TAV.log) (44.7 KB)

Hi Elena, here is the log file.

Also for reference, I am also on Mac Catalina. Thank you!

---

<div class="post-metadata">

**Author:** ![mariodorantesb](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/mariodorantesb/32/8315_2.png) [@mariodorantesb](https://community.localwp.com/u/mariodorantesb)\
**Post date:** [September 17, 2019, 3:19pm UTC](https://community.localwp.com/t/site-unable-to-be-pulled-due-to-command-failed-mysql/14222/4 "2019-09-17T15:19:22Z")

</div>

I have the same issue. I attach my local log file. I’m running on Windows 10. [local-by-flywheel.log](https://community.localwp.com/uploads/short-url/xxixfb1KDqhsvXi6Yr4YNoP9NjH.log) (81.2 KB) @elena!

 ![1](https://us1.discourse-cdn.com/flex019/uploads/lwpforums/original/2X/4/4097e522e589c810393e939569bec0219d1d1bf0.png)

---

<div class="post-metadata">

**Author:** ![mattwhosthat](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/mattwhosthat/32/7794_2.png) [@mattwhosthat](https://community.localwp.com/u/mattwhosthat)\
**Post date:** [September 18, 2019, 8:34pm UTC](https://community.localwp.com/t/site-unable-to-be-pulled-due-to-command-failed-mysql/14222/5 "2019-09-18T20:34:16Z")

</div>

@mariodorantesb, it looks like your issue is a bit different than the issue in this post. You’d probably be better served by opening a new topic instead. Also, looking through your log file, it looks like your issue might be resolved by installing the latest version of Local:

> **[Releases](https://localwp.com/releases/)**

Give that a shot and let us know if you still have trouble.

---

<div class="post-metadata">

**Author:** ![mattwhosthat](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/mattwhosthat/32/7794_2.png) [@mattwhosthat](https://community.localwp.com/u/mattwhosthat)\
**Post date:** [September 18, 2019, 8:56pm UTC](https://community.localwp.com/t/site-unable-to-be-pulled-due-to-command-failed-mysql/14222/6 "2019-09-18T20:56:59Z")

</div>

@ryker002, I got a chance to dig into the error that you’re getting when pulling your site down from Flywheel and it looks like the import process is struggling with the database a bit. From the looks of the log entry, we see this:

```auto
ERROR 1062 (23000) at line 1409 in file: '/Users/jameslewandowski/Local Sites/dogswell/app/public/.connect-pull.sql': Duplicate entry '\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\xEF\\xBF\\xBD\\xEF\\xBF\\xBD' for key 'PRIMARY'\n\n

```

This looks like a well known issue with trying to move WordFence tables from one environment to another. Because of the way WF stores table information, it can often times cause a bit of friction. Here’s a post with a resolution that has worked for quite a few people:

> **[Notice: wp\_register\_script was called incorrectly](https://community.localwp.com/t/notice-wp-register-script-was-called-strong-incorrectly-strong/10664/33)**
>
> Hey @Turnspike – Thanks for those logs! I think what is happening is that something is crashing MySQL during the import process, and then when Local tries to use wpcli to do various configuration updates, it is unable to because MySQL is offline....

---

<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:** [August 25, 2020, 6:37pm UTC](https://community.localwp.com/t/site-unable-to-be-pulled-due-to-command-failed-mysql/14222/7 "2020-08-25T18:37:24Z")

</div>


