# Cannot Open Local Site

**URL:** <https://community.localwp.com/t/cannot-open-local-site/41008>\
**Category:** Support\
**Created:** [January 24, 2024, 2:24pm UTC](https://community.localwp.com/t/cannot-open-local-site/41008 "2024-01-24T14:24:05Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![DionV](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/dionv/32/20721_2.png) [@DionV](https://community.localwp.com/u/DionV)\
**Post date:** [January 24, 2024, 2:24pm UTC](https://community.localwp.com/t/cannot-open-local-site/41008/1 "2024-01-24T14:24:05Z")

</div>

### What issue or error are you experiencing?

## When trying to start the site it says provisioning. Then comes up with this error. Uh-oh! Unable to start site. Error: Command failed: C:\Users\DionV\AppData\Roaming\Local\lightning-services\mysql-8.0.16+..\mysqladmin.exe ping Dmysqladmin: connect to server at ‘::1’ failed error: ‘Can’t connect to MySQL server on ‘:1’ (10061)’ Check that mysqld is running on :1 and that the port is 10059. You can check this by doing 'telnet ::1 10059" at ChildProcess.exithandler (node:child\_process:430:12) at ChildProcess.emit (node:events:513:28) at ChildProcess.emit (node:domain:489:12) at maybeClose (node:internal/child\_process:1091:16) at ChildProcess.\_handle.onexit (node:internal/child\_process:302:5)

### What steps can be taken to replicate the issue? Feel free to include screenshots, videos, etc

All of the other sites seem to be working well. I have tried telnet in command prompt to se if the port is operating and got this response:

Connecting To ::1…Could not open connection to the host, on port 10059: Connect failed

* * *

### System Details ntel(R) Core™ i7-1065G7 CPU @ 1.30GHz 1.50 GHz

- **Local Version:** Version 8.1.0+6514

- **Operating System (OS) and OS version:** Windows 11 Home

* * *

### Local Logs

Attach your Local Logs here ([Help Doc - Retrieving Local’s Log](https://localwp.com/help-docs/troubleshooting/retrieving-locals-log-file/))

* * *

_ **Security Reminder** _  
Local does a pretty good job of scrubbing private info from the logs and the errors it produces, however there’s always the possibility that something private can come through. Because these are public forums, always review the screenshots you are sharing to make sure there isn’t private info like passwords being displayed.

---

<div class="post-metadata">

**Author:** ![Nick-B](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/nick-b/32/16140_2.png) [@Nick-B](https://community.localwp.com/u/Nick-B)\
**Post date:** [January 24, 2024, 2:29pm UTC](https://community.localwp.com/t/cannot-open-local-site/41008/2 "2024-01-24T14:29:43Z")

</div>

Hi @DionV

If you create a new, blank site in Local can you access that okay? If you can, then you may want to try reimporting the site getting the errors. The steps would look like this:

- Locate the site files on your machine, and save a copy of them to your desktop. If you click `Go to Site Folder` under your site name it should take you right to where they are located.
- Once you have those copied, completely delete the site from Local
- Restart Local/your machine
- Reimport the site back into Local. You can refer here on how to [Restore from only Local site files](https://localwp.com/help-docs/getting-started/how-to-import-a-wordpress-site-into-local/#restore-local-site-from-site-files)

---

<div class="post-metadata">

**Author:** ![DionV](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/dionv/32/20721_2.png) [@DionV](https://community.localwp.com/u/DionV)\
**Post date:** [January 24, 2024, 3:13pm UTC](https://community.localwp.com/t/cannot-open-local-site/41008/3 "2024-01-24T15:13:23Z")

</div>

Thank you @Nick-B for your help. I have followed those steps but after the import all of my content-media-pages etc are missing?  
Any ideas?

---

<div class="post-metadata">

**Author:** ![Nick-B](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/nick-b/32/16140_2.png) [@Nick-B](https://community.localwp.com/u/Nick-B)\
**Post date:** [January 24, 2024, 3:16pm UTC](https://community.localwp.com/t/cannot-open-local-site/41008/4 "2024-01-24T15:16:38Z")

</div>

Are they just missing from the media library or have you tried locating them in the site files manually and don’t see them there either?

If you look at the files in the copy of your site that you made can you locate them in there to import over manually?

---

<div class="post-metadata">

**Author:** ![DionV](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/dionv/32/20721_2.png) [@DionV](https://community.localwp.com/u/DionV)\
**Post date:** [January 24, 2024, 3:19pm UTC](https://community.localwp.com/t/cannot-open-local-site/41008/5 "2024-01-24T15:19:51Z")

</div>

They are missing from the media library. The pages and templates that I created are also missing on the site?

---

<div class="post-metadata">

**Author:** ![DionV](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/dionv/32/20721_2.png) [@DionV](https://community.localwp.com/u/DionV)\
**Post date:** [January 24, 2024, 3:20pm UTC](https://community.localwp.com/t/cannot-open-local-site/41008/6 "2024-01-24T15:20:43Z")

</div>

> [@Nick-B](#):
>
> of your site that you made can you locate them in there to import over manually?

Are you able to tell me how to import manually. I copied the content folder over to the local site location but no difference?

---

<div class="post-metadata">

**Author:** ![Nick-B](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/nick-b/32/16140_2.png) [@Nick-B](https://community.localwp.com/u/Nick-B)\
**Post date:** [January 24, 2024, 3:29pm UTC](https://community.localwp.com/t/cannot-open-local-site/41008/7 "2024-01-24T15:29:10Z")

</div>

On this help article we have instructions under item #2 to manually import a site by moving over the specific files individually or #3 would be bundling up your files into a zip to import.

> **[Import/Export a WordPress Site](https://localwp.com/help-docs/getting-started/how-to-import-a-wordpress-site-into-local/)**
>
> This help document will walk you through how to import and export a site to and from Local. It will also go over how to restore from only Local site files. Table of Contents: Local is pretty flexible…

---

<div class="post-metadata">

**Author:** ![DionV](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/dionv/32/20721_2.png) [@DionV](https://community.localwp.com/u/DionV)\
**Post date:** [January 24, 2024, 3:32pm UTC](https://community.localwp.com/t/cannot-open-local-site/41008/8 "2024-01-24T15:32:23Z")

</div>

Thanks again, yes i zipped the entire contents of the folder and imported the site but nothing is there. Perhaps i can try it all again

---

<div class="post-metadata">

**Author:** ![Nick-B](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/nick-b/32/16140_2.png) [@Nick-B](https://community.localwp.com/u/Nick-B)\
**Post date:** [January 24, 2024, 3:37pm UTC](https://community.localwp.com/t/cannot-open-local-site/41008/9 "2024-01-24T15:37:09Z")

</div>

If you unzip that file and inspect the contents do you see your site’s content in there? If so you can use the #2 steps from that article to manually try moving things over.

---

<div class="post-metadata">

**Author:** ![DionV](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/dionv/32/20721_2.png) [@DionV](https://community.localwp.com/u/DionV)\
**Post date:** [January 25, 2024, 12:57pm UTC](https://community.localwp.com/t/cannot-open-local-site/41008/10 "2024-01-25T12:57:00Z")

</div>

Hi again, i have tried the above. The issues seems to be with importing the database. When i go to site shell and try wp db import your-database-filename.sql I get this error:  
Error: Failed to get current SQL modes. Reason: ERROR 2003 (HY000): Can’t connect to MySQL server on ‘localhost’ (10061)

---

<div class="post-metadata">

**Author:** ![Nick-B](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/nick-b/32/16140_2.png) [@Nick-B](https://community.localwp.com/u/Nick-B)\
**Post date:** [January 25, 2024, 2:12pm UTC](https://community.localwp.com/t/cannot-open-local-site/41008/11 "2024-01-25T14:12:31Z")

</div>

Hi @DionV

Do you have any antivirus, security, or firewall applications that could be blocking Local?

Are you running other developer applications simultaneously? That could also cause similar issues. Apps like MAMP, XAMPP, or Docker for example.

If nothing else is conflicting that you are aware of, make sure you’ve saved all the site files and DB and then you could try an uninstall/reinstall to see if things work afterward. The steps would be like this:

- Export any sites that you have on Local and save them to a folder somewhere on your computer.

- [Fully uninstall Local from your computer.](https://localwp.com/help-docs/troubleshooting/uninstalling-local/)

- Install the latest version of Local on this [link.](https://localwp.com/releases/)

- Once installed, please restart the computer.

- When the computer is restarted and turned on, close any applications that automatically run in the background (AntiVirus, Firewall, and other Developer applications included).

- Check and see if the issue still persists. If so, please provide us with an updated log. [Retrieving Local’s Log File](https://localwp.com/help-docs/troubleshooting/retrieving-locals-log-file/)

Keep us posted and we’d be happy to help further!

---

<div class="post-metadata">

**Author:** ![DionV](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/dionv/32/20721_2.png) [@DionV](https://community.localwp.com/u/DionV)\
**Post date:** [January 25, 2024, 3:32pm UTC](https://community.localwp.com/t/cannot-open-local-site/41008/12 "2024-01-25T15:32:53Z")

</div>

Still no success… here is the log file.

[https://1drv.ms/u/s!AjpD0iDOlBDmgbtR-LMeiI0taMPpSQ?e=ZAgI5g](https://1drv.ms/u/s!AjpD0iDOlBDmgbtR-LMeiI0taMPpSQ?e=ZAgI5g)

---

<div class="post-metadata">

**Author:** ![Nick-B](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/nick-b/32/16140_2.png) [@Nick-B](https://community.localwp.com/u/Nick-B)\
**Post date:** [January 25, 2024, 6:03pm UTC](https://community.localwp.com/t/cannot-open-local-site/41008/13 "2024-01-25T18:03:01Z")

</div>

When you say still no success do you mean importing the DB? You get the same error? Or can you not create a site at all?

---

<div class="post-metadata">

**Author:** ![DionV](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/dionv/32/20721_2.png) [@DionV](https://community.localwp.com/u/DionV)\
**Post date:** [January 26, 2024, 8:49am UTC](https://community.localwp.com/t/cannot-open-local-site/41008/14 "2024-01-26T08:49:32Z")

</div>

Yes that is correct still the same DB error. I have numerous other sites in local with no issues at all just this one. I have disabled all firewalls, antivirus etc. Reinstalled Local twice and added the site directly from the files at least 5 times with no result. Looks like a rebuild so disappointed. Have just installed the cloud backup add-on. Hoping to not face this issue again. I don’t know what else that i can do to bring back the work.

---

<div class="post-metadata">

**Author:** ![Nick-B](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/nick-b/32/16140_2.png) [@Nick-B](https://community.localwp.com/u/Nick-B)\
**Post date:** [January 26, 2024, 3:41pm UTC](https://community.localwp.com/t/cannot-open-local-site/41008/15 "2024-01-26T15:41:18Z")

</div>

Hi @DionV - I’ll send you a DM here to follow up

---

<div class="post-metadata">

**Author:** ![DionV](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/dionv/32/20721_2.png) [@DionV](https://community.localwp.com/u/DionV)\
**Post date:** [January 26, 2024, 3:41pm UTC](https://community.localwp.com/t/cannot-open-local-site/41008/16 "2024-01-26T15:41:49Z")

</div>

Ok, Thank you

---

<div class="post-metadata">

**Author:** ![Ehelton](https://avatars.discourse-cdn.com/v4/letter/e/e79b87/32.png) [@Ehelton](https://community.localwp.com/u/Ehelton)\
**Post date:** [January 29, 2024, 9:46pm UTC](https://community.localwp.com/t/cannot-open-local-site/41008/17 "2024-01-29T21:46:40Z")

</div>

I have the same issue, do you have a fix?

---

<div class="post-metadata">

**Author:** ![DionV](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/dionv/32/20721_2.png) [@DionV](https://community.localwp.com/u/DionV)\
**Post date:** [January 30, 2024, 10:28am UTC](https://community.localwp.com/t/cannot-open-local-site/41008/18 "2024-01-30T10:28:36Z")

</div>

Unfortunately No! Site rebuild. Have added the cloud backup add on hoping to avoid the same thing again.

---

<div class="post-metadata">

**Author:** ![Nick-B](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/nick-b/32/16140_2.png) [@Nick-B](https://community.localwp.com/u/Nick-B)\
**Post date:** [January 30, 2024, 5:01pm UTC](https://community.localwp.com/t/cannot-open-local-site/41008/19 "2024-01-30T17:01:21Z")

</div>

Hi @Ehelton

Are you able to create a new blank site in Local? Is it just previous sites that throw that error?

Do you have any add ons enabled?

---

<div class="post-metadata">

**Author:** ![Ehelton](https://avatars.discourse-cdn.com/v4/letter/e/e79b87/32.png) [@Ehelton](https://community.localwp.com/u/Ehelton)\
**Post date:** [February 2, 2024, 7:09pm UTC](https://community.localwp.com/t/cannot-open-local-site/41008/20 "2024-02-02T19:09:03Z")

</div>

Somehow after leaving local open for several days (site not running), after a restart of the local application today my site is working again. It does give a banner message “Warning! This site’s WordPress URL settings do not match the host set in local” but seems to be functioning like it was.

[Next page](https://community.localwp.com/t/cannot-open-local-site/41008.md?page=2)
