Skip to content
Marie-Louise edited this page Jan 15, 2019 · 56 revisions

Everything Drupal!!

Vagrant

Twig

challenge

Exporting Features

drupal hooks

Importing or updating database

Request a copy of the database Once you receive it, save a copy for database locally in your drupal file system (local site folder).

  1. Go to vagrant terminal (virtual machine) using following command

    $ vagrant ssh

  2. 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

Creating a new admin account using one time log in

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

Revert changes in the UI

  1. Go to features
  2. then click the type of of content so for example Entity - Node, Entity - Paragraph...
  3. and then got to then check the state, look for your page (landing page for example) click it
  4. and see it's been overidden then select this
  5. go to view
  6. and then click revert changes

Clone this wiki locally