In case you are just needing to restore a Local site from an existing Local site folder, here’s how:
Note: There must be SQL files present in app/sql in order for this to work. Otherwise, the database won’t be able to be restored.
- Rename
htdocs
withhtdocs-backup
. - Create new sites for each using existing domains and paths. Now go to Open Site SSH and browse the directory.
D:
cd ..
- Run this commands:
mysql -u root -proot -e "DROP DATABASE local;"
mysql -u root -proot -e "CREATE DATABASE local;"
mysql -u root -proot local < D:\htdocs\<sitename>\app\sql\local.sql
OR
mysql -u root -proot local < C:\Users\shiva\OneDrive\Local\<sitename>.sql
OR
mysql -u root -proot --max_allowed_packet=64M local < E:\shop-eachperson\sql\<environment>\eachperson.sql