... | @@ -63,20 +63,9 @@ Table of contents: |
... | @@ -63,20 +63,9 @@ Table of contents: |
|
1. Make sure you are in
|
|
1. Make sure you are in
|
|
* 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. Gather the container database connection details in `settings.php` (with information in [ALL CAPS IN BRACKETS] to be of note)
|
|
|
|
```php
|
|
1. Run the drush command ```drush sql-connect``` to output the container database connection details.
|
|
$databases['default']['default'] = array (
|
|
1. Get the name of the database dump (should match the project name):
|
|
'database' => '[DATABASENAME]',
|
|
|
|
'username' => '[USERNAME]',
|
|
|
|
'password' => '[PASSWORD]',
|
|
|
|
'prefix' => '',
|
|
|
|
'host' => '[HOST IP ADDRESS]',
|
|
|
|
'port' => '3306',
|
|
|
|
'namespace' => 'Drupal\\Core\\Database\\Driver\\mysql',
|
|
|
|
'driver' => 'mysql',
|
|
|
|
);
|
|
|
|
```
|
|
|
|
1. Get the name of the database dump (should match the project name:
|
|
|
|
```bash
|
|
```bash
|
|
ls | grep .sql
|
|
ls | grep .sql
|
|
```
|
|
```
|
... | | ... | |