I was importing a site but it was stucked, so I have closed Local.
When I open it, all sites seems lost and it is saying “looks like you have’nt creates a site yet”.
Files are intact but Local can’t display the sites in dashboard.
What should be done?
It is weird that no one can comment on this.
Does anyone there thinks that local should scan and find the related sites?
It looks like a major collapse for a digital product.
Ah thank you Mikel.
Yes, this is a community forum but in past, I have seen Local Community Managers replied to posts. I thought they were appointed by Local. Maybe that was a mistake.
Setup new site is working.
I was importing a zip file and Local was stucked. Then I have restarted Local, when I reopened it, it said “Looks like you haven’t created any sites yet”, but the files of the sites I have created was there, intact. I tried zip them and import. Some of them worked, some of them throwed error.
wp-content folder and mysql database. Zip those 2 together and drop on Local to import. Making this as simple as possible without any extraneous folders, etc has always worked for me.
Thank you @afragen, if it is time consuming for you we can stop this conversation.
There is only one file in mysql folder in every single I have created on Local which is called my.cnf.bhs
So, I have zipped wp-content and this file together.
I cannot upload the zip file of it because of the upload limit, that’s why I am adding sql file zipped.
@Volkanmy.cnf.hbs is not the database file. You will find the database file in the /app/sql/local.sql inside of each site’s app/ folder. It’s at the same level as app/public/.
Local should automatically create this file as a backup each time you stop your site.
The actual database files are in the Local/run/<hash> folder for each site. On my Mac this is in the ~/Library/Local/run/...
I will stop trying to re-create the sites that were existing on Local - anytime soon.
It became such a time spending effort for me and you. I decided to communicate with my clients and ask for the access to the actual site. Then I will update changes from scratch that I have performed earlier on Local.
the SQL folder is populated whenever sites are Stopped or Restarted
Eww! I didn’t know that. And I have never seen sql folder in app folder. Never.
Until I start & stop the site and check the folder now. Yes indeed, a folder called sql popped up.
Well, I copied the sites to new location when Local said “you haven’t created any sites yet”.
I am checking now and none have sql folder in app folder.
And, I have scanned entire disk for sql files, none found (only except the ones I created after Local crushed).
I am a Win 10 user but I really dont know where Local/run folder.
Sorry if this looks stupid but I am really surprised with the sql folder populated in app folder.