Skip to content

Instantly share code, notes, and snippets.

@markhalliwell
Created July 21, 2013 16:47
Show Gist options
  • Select an option

  • Save markhalliwell/6049112 to your computer and use it in GitHub Desktop.

Select an option

Save markhalliwell/6049112 to your computer and use it in GitHub Desktop.
Deletes settings.php, removes the php config dir, drops and creates the database table.
#!/bin/bash
sudo rm -rf /sandbox/sites/d8.sandbox/sites/default/settings.php;
sudo rm -rf /sandbox/sites/d8.sandbox/sites/default/files/php/;
mysql -u root -proot -e 'DROP DATABASE `d8.sandbox`; CREATE DATABASE `d8.sandbox`;'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment