-
Notifications
You must be signed in to change notification settings - Fork 0
Drupal
Everything Drupal!!
Request a copy of the database Once you receive it, save a copy for database locally in your drupal file system (local site folder).
-
Go to vagrant terminal (virtual machine) using following command
$ vagrant ssh
-
Run following command to import database
$ mysql -uroot -proot drupal < /drupal_file_system_path/your_database.sql
so in the case of 14th nov:
$ mysql -uroot -proot drupal < var/www/corporate/www/mariadb-init/corpdb081118.sql
First request a copy of the db from a backend dev on the team.
copy the db into the directory for your local site in the mariadb-init folder
then enter the directory for the vagrant
and then vagrant up
then vagrant ssh
then drush sql-cli < /mariadb-init/dump-file.sql
and it should take a few minutes but will work 😃
(this was executed on weds 6th feb, for tkt #3724)
run...
$ drush updatedb
$ drush fra -y (this is a feature revert)
$ drush cc all
run this command inside the drupal vm :
$ drush uli
then run but copy from user to your local site URL:
http://default/user/reset/1/1542213062/V9RBeawoSy9wbQY62Rd1pLco3JmhkAxc959CfUYGawA/login
/user/reset/1/1542213062/V9RBeawoSy9wbQY62Rd1pLco3JmhkAxc959CfUYGawA/login
- Go to features
- then click the type of of content so for example Entity - Node, Entity - Paragraph...
- and then got to then check the state, look for your page (landing page for example) click it
- and see it's been overidden then select this
- go to view
- and then click revert changes
to check details for solr etc this is the place to go, click solr, open
to update solr, go to the drupal UI > configuration > search and meta data > Search API > Corporate prod (0verridden)
solr host: local host
path : 8983
solr path: /solr/d7
save settings