# APP/SQL folder missing in new sites (v. Version 9.1.1+6738)

**URL:** <https://community.localwp.com/t/app-sql-folder-missing-in-new-sites-v-version-9-1-1-6738/46030>\
**Category:** Bugs\
**Tags:** missing-sites, windows-11\
**Created:** [December 16, 2024, 9:46pm UTC](https://community.localwp.com/t/app-sql-folder-missing-in-new-sites-v-version-9-1-1-6738/46030 "2024-12-16T21:46:52Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![CodeSlayer2010](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/codeslayer2010/32/18772_2.png) [@CodeSlayer2010](https://community.localwp.com/u/CodeSlayer2010)\
**Post date:** [December 16, 2024, 9:46pm UTC](https://community.localwp.com/t/app-sql-folder-missing-in-new-sites-v-version-9-1-1-6738/46030/1 "2024-12-16T21:46:52Z")

</div>

# Bug Summary

Brand new blank sites install WordPress fine, but the normal `app/sql/` folder is missing (_app/public_ is present). Where is the database for WordPress being installed??

# Steps to reproduce

Click the plus button to make a new blank site. Whether using the default or custom config it happens. I’m surprised nobody has reported this yet.

# Environment Info

Describe your environment.

- What Operating System are you using? Windows 11
- What versions of site software (Nginx, Apache, PHP, MySQL) is used? Tried both, but latest try is Apache 2.4
- What version of Local is installed? Version 9.1.1+6738

# Supporting info

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?u=ben.turner)

Include any screenshots or video recordings of the issue to help others reproduce.

---

<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:** [December 17, 2024, 3:05pm UTC](https://community.localwp.com/t/app-sql-folder-missing-in-new-sites-v-version-9-1-1-6738/46030/2 "2024-12-17T15:05:39Z")

</div>

Hi @CodeSlayer2010! Can you `Stop` your site and then check and see if it shows up?

---

<div class="post-metadata">

**Author:** ![CodeSlayer2010](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/codeslayer2010/32/18772_2.png) [@CodeSlayer2010](https://community.localwp.com/u/CodeSlayer2010)\
**Post date:** [December 24, 2024, 7:50pm UTC](https://community.localwp.com/t/app-sql-folder-missing-in-new-sites-v-version-9-1-1-6738/46030/3 "2024-12-24T19:50:58Z")

</div>

That didn’t fix it. I’m having it happen on 2 different Windows computers when creating **brand new clean WordPress sites** even. One laptop has Windows 10 and the other Windows 11.

Maybe this is a problem in Windows only?

Created a brand new site today as a test - same issue.

I updated LocalWP version on the Win 10 laptop to: **Version 9.1.1+6738**

In a nutshell, the **the SQL folder was created correctly in sites before November** , but not after November.

_New site created today - sql folder missing_

 ![New site created today - sql folder missing](https://us1.discourse-cdn.com/flex019/uploads/lwpforums/original/3X/7/a/7a8f67098cbc2f9d3739ac9dc09a95fff5f42f57.png)

---

<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:** [December 30, 2024, 3:33pm UTC](https://community.localwp.com/t/app-sql-folder-missing-in-new-sites-v-version-9-1-1-6738/46030/4 "2024-12-30T15:33:21Z")

</div>

As far as I know this has always been the default behavior of Local. When you first create a site, no SQL file appears until the first time the site is stopped.

> [@No SQL folder when creating a new site](https://community.localwp.com/t/no-sql-folder-when-creating-a-new-site/41867/2):
>
> Hi, @Trellat! Stop the new site and you should see the app/sql folder. (Local creates that folder when you stop a site, not when you start it; this is not a change of behaviour, though.)

---

<div class="post-metadata">

**Author:** ![CodeSlayer2010](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/codeslayer2010/32/18772_2.png) [@CodeSlayer2010](https://community.localwp.com/u/CodeSlayer2010)\
**Post date:** [December 31, 2024, 6:09pm UTC](https://community.localwp.com/t/app-sql-folder-missing-in-new-sites-v-version-9-1-1-6738/46030/5 "2024-12-31T18:09:44Z")

</div>

> When you first create a site, no SQL file appears until the first time the site is stopped.

What? That’s weird and unintuitive. But, yep, I just tried it and observed that what you say is true.

One extra tidbit / nuance for anyone else finding this post:

The sql folder is only created if you _ **click** _ the “Stop site” button – **It does NOT create the folder if you simply close the LocalWP application.**

---

<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:** [December 31, 2024, 6:15pm UTC](https://community.localwp.com/t/app-sql-folder-missing-in-new-sites-v-version-9-1-1-6738/46030/6 "2024-12-31T18:15:24Z")

</div>

I’ll check with the team on this just for clarification around the “why”. I do agree that’s not the most intuitive and if it must remain this way it might be a good idea for us to call it out in some more clear documentation somewhere.

---

<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:** [January 2, 2025, 6:16am UTC](https://community.localwp.com/t/app-sql-folder-missing-in-new-sites-v-version-9-1-1-6738/46030/7 "2025-01-02T06:16:09Z")

</div>

Closed on January 2, 2025, 6:16am UTC

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

---

<div class="post-metadata">

**Author:** ![nickc](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/nickc/32/21209_2.png) [@nickc](https://community.localwp.com/u/nickc)\
**Post date:** [January 2, 2025, 8:59am UTC](https://community.localwp.com/t/app-sql-folder-missing-in-new-sites-v-version-9-1-1-6738/46030/8 "2025-01-02T08:59:57Z")

</div>

> The sql folder is only created if you _ **click** _ the “Stop site” button – **It does NOT create the folder if you simply close the LocalWP application.**

That’s correct. MySQL needs time to dump the SQL file. When you quit Local it sends a termination signal, and we cannot guarantee that we can artificially keep Local and all of its child processes open long enough after the termination signal for SQL dumps to succeed.

If creating SQL dumps on quit is critical to your workflow, it’s worth stopping sites before quitting Local. I agree with @Nick-B that we could better document how this currently works.

---

<div class="post-metadata">

**Author:** ![nickc](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/nickc/32/21209_2.png) [@nickc](https://community.localwp.com/u/nickc)\
**Post date:** [January 2, 2025, 9:00am UTC](https://community.localwp.com/t/app-sql-folder-missing-in-new-sites-v-version-9-1-1-6738/46030/9 "2025-01-02T09:00:16Z")

</div>

Opened on January 2, 2025, 9:00am UTC



---

<div class="post-metadata">

**Author:** ![CodeSlayer2010](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/codeslayer2010/32/18772_2.png) [@CodeSlayer2010](https://community.localwp.com/u/CodeSlayer2010)\
**Post date:** [January 7, 2025, 4:04pm UTC](https://community.localwp.com/t/app-sql-folder-missing-in-new-sites-v-version-9-1-1-6738/46030/11 "2025-01-07T16:04:08Z")

</div>

Thank you for clarifying the mechanism and logic!
