1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

rails 新規アプリ作成時:Mysqlにてbundle exec rake db:createが上手くいかない解決記録

Posted at

rails 新規アプリ作成時に、Mysqlにてbundle exec rake db:createが上手くいかない解決記録(自分用)

① bundle exec rails new アプリ名 . -B -d mysql --skip-test --skip-coffee
② bundle exec rake db:create

error文、
rake aborted!
No Rakefile found (looking for: rakefile, Rakefile, rakefile.rb, Rakefile.rb)

色々試し、不要なコマンドは実行したと思われるが、次回はここから行う。

$ ① mysql.server start 

 ② $ bundle exec rake db:create RAILE_ENV=development

####*rake aborted!
#####No Rakefile found (looking for: rakefile, Rakefile, rakefile.rb, Rakefile.rb)  が出る場合は、rakefileがあるディレクトリにcdで移動後、再度$ bundle exec rake db:create RAILE_ENV=developmentで
無事にCreated database となった。

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?