Installing Drupal Using Drush
Welcome to my blog, and to the world of Drupal and Opensource.
Let me share you my experience of installing Drupal using Drush.
Drush is preety awesome command line tool for Drupal developers.
If you haven't already installed Drush check http://drupal.org/project/drush
One of the great features of Drush for Drupal 7 is you can do a brand new site install with two simple commands. First setup a MySQL user and database, and note the username and password.
Then run the following, making 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://YourMySQLUser:RandomPassword@localhost/YourMySQLDatabase
And boooooom, the script runs and you're done.
If you want some specific version then you can try out like:
drush dl drupal-7.2 which will give specific version while as drush dl drupal-7.x will give you the latest stable version of Drupal 7
*Note: The Drupal username and password seemed to always end up as admin/admin no matter what I set them to. So, I suggest just using those and then changing them after you login to your new site.