... | @@ -64,24 +64,8 @@ Table of contents: |
... | @@ -64,24 +64,8 @@ Table of contents: |
|
* D7: `/var/www/docker_platform/docroot/sites/default/` or
|
|
* D7: `/var/www/docker_platform/docroot/sites/default/` or
|
|
* D8: `/var/www/docker_platform/web/sites/default`
|
|
* D8: `/var/www/docker_platform/web/sites/default`
|
|
|
|
|
|
1. Run the drush command ```drush sql-connect``` to output the container database connection details.
|
|
1. Run the command `drush sql-cli < commerce.sql`
|
|
1. Get the name of the database dump (should match the project name):
|
|
1. After db import is complete, run `drush cim` to update config sync and `drush cr` to clear cache.
|
|
```bash
|
|
|
|
ls | grep .sql
|
|
|
|
```
|
|
|
|
|
|
|
|
Example output: `commerce.sql`
|
|
|
|
1. Formulate mysql command to put prod db dump into existing database:
|
|
|
|
```bash
|
|
|
|
mysql -h [HOST IP ADDRESS] -p -u [USERNAME] [DATABASENAME] < [database dump.sql]
|
|
|
|
```
|
|
|
|
|
|
|
|
Example of what it might look like:
|
|
|
|
```bash
|
|
|
|
mysql -h 123.456.789.101 -p -u database_user database_name < commerce.sql
|
|
|
|
```
|
|
|
|
1. Enter that command, and then enter the corresponding password
|
|
|
|
1. Wait... It'll take some time.
|
|
|
|
|
|
|
|
## Download it to your local machine (mac, pc, etc)
|
|
## Download it to your local machine (mac, pc, etc)
|
|
1. Move the file to the `/var/www/docker_platform/docroot/` or `/var/www/docker_platform/web/` folder based on drupal version.
|
|
1. Move the file to the `/var/www/docker_platform/docroot/` or `/var/www/docker_platform/web/` folder based on drupal version.
|
... | | ... | |