rake aborted Error During rake db:create Database in rails, Best Solution

if You looking this type of error:
rake aborted!

No Rakefile found (looking for: rakefile, Rakefile, rakefile.rb, Rakefile.rb)

Guys, be sure that, you are in the same directory, I'mean first check you got the exact path where you make a website. example, I create a website name blog in my sites directory on mac, so take this path

> mario-MBP:~ mariok$

now first go to your path or any other path, where you create a blog, through my example, here is my path,

> mario-MBP:~ mariok$cd Sites

mario-MBP:Sites mariok$cd blog

mario-MBP:blog mariok$

Here you can run this command to create a database,

rake db:create

Comments