- mysqldump -u username -p --databases drupal >/tmp/drupal.sql
- drop database drupal;
- create database igem2007;
- GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER, CREATE TEMPORARY TABLES, LOCK TABLES
ON igem2007.*
TO 'drupal'@'localhost' IDENTIFIED BY 'foopass';
- cd /Library/WebServer/Documents
- rm -rv *
- curl -LO http://drupal.org/files/projects/drupal-5.1.tar.gz
- tar -xzvf drupal-5.1.tar.gz
- mv drupal-5.1/* drupal-5.1/.htaccess ./
- rmdir drupal-5.1
- chmod 777 ./sites/default/settings.php
- this part isn't actually mentioned in the install.txt; see my earlier post - visit the drupal site root via web browser and supply database info
- chmod 644 ./sites/default/settings.php
- mkdir files
- sudo chown www:admin files
- sudo chmod 755 files
References:
- MySQL:
- a handy list of MySQL commands (pantz.org)
- Downloading files with curl (ONlamp.com)
- Using tar to archive (cs.duke.edu)