Posts

Showing posts with the label Drush

Some Useful Drush Commands

Downloading modules:  $ drush dl module_name It will automaticly download extracted module to modules folder in your project. Enabling modules: $ drush en module_name Disabling modules: $ drush pm-disable module_name Unistalling modules: $ drush pm-uninstall module_name Clear Cache:  You can use the following command to clear all cache of your site. $ drush cc all List modules: $ drush pm-list --type=module And if you want to list only non core modules, you can use $ drush pm-list --type=module --no-core --pipe SQL dump: $ drush sql-dump > filename.sql It will automatically take the dump of the database of the project in which you are. status (st) Check the Status: Provides a birds-eye view of the current Drupal installation, if any. $ drush status Check the Recent Watchdog:  To list the recent watch dog status, us the following. $ drush ws ws referes to Watchdog show. Database connection detail: Provides a bi...

Installing Drupal 7 using Drush

Drush is raealy handy to do the Drupal stuff ver quick and easy. If you haven't already installed Drush check http://drupal.org/project/drush. Installing Drupal 7 with DRUSH is awsome, with just two simple commands, setting up MYSQL user and DB, note down the passwoprd, then run the following comman. Make sure to replace the user and passwords names for your local setup: drush dl drupal-7.x drush site-install standard --account-name=admin --account-pass=admin --db-url=mysql://MySQLUser:Password@localhost/MySQLDatabase ...and you're done. *Note: The Drupal username and password seemed to always end up as admin/admin. So, just using those and then changing them after you login to your new site.

Resetting Drupal Passwords in Drupal 7 with Drush

Sometimes, whether in testing or other situations, you need to reset a password (often the admin password) for a Drupal site. The shortest answer is that two wonderful options are built into drush! # Get an admin login link drush uli # Set the password for any user drush upwd admin --password="newpassword"