Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1. Put inside file /home/mylinuxuser/.drush/drushrc.php
- $command_specific['site-install'] = array('db-su' => 'mysqluser', 'db-su-pw' => 'xxpasswordxx');
- 2. drush dl drupal
- 3. cd drupal
- 4. drush site-install minimal --db-url=mysql://mysqluser:xxpasswordxx@localhost/mydb
- or
- drush site-install standard --db-url=mysql://mysqluser:xxpasswordxx@localhost/mydb
- LINK
- https://www.drupal.org/documentation/install/developers
- ==================================================================================================================
- Using drush to backup and restore a drupal installation
- 1) Remote server
- Inside your drupal installation
- $> drush archive-dump
- Archive saved to /root/drush-backups/archive-dump/20150228093558/mysite.20150228_093559.tar.gz [ok]
- /root/drush-backups/archive-dump/20150228093558/mysite.20150228_093559.tar.gz
- 2) local server
- 1. go to mysql console and set up the same mysql credentials you had for your mysql drupal database
- mysql> create user 'myuser'@localhost identified by 'xxpasswordxx';
- mysql> grant all privileges on *.* to 'myuser'@'localhost';
- mysql> set password for 'myuser'@'localhost'=password('xxnewpasswordxx');
- 2. restore
- go to /var/www/html and run
- $> drush archive-restore mysite.20150228_093559.tar.gz
Add Comment
Please, Sign In to add comment