Tuesday, December 15, 2009

Create a database from a DB dump

  1. Get into the directory where you want the DB.
  2. mysqladmin -uroot create DB_NAME_HERE
  3. mysql -uroot DB_NAME_HERE < DUMP_NAME_HERE.yml
  4. If you get "No such file" referring to database.yml, copy database.example.yml and rename the copy database.yml
  5. rake db:migrate

No comments:

Post a Comment