前提・実現したいこと
rails s
をしたところ、以下のエラーが発生しました。
発生している問題・エラーメッセージ
ActiveRecord::NoDatabaseError Unknown database 'myapp_development'
該当のソースコード
# ever seen by anyone, they now have access to your database. # # Instead, provide the password as a unix environment variable when you boot # the app. Read http://guides.rubyonrails.org/configuring.html#configuring-a-database # for a full rundown on how to provide these environment variables in a # production deployment. # # On Heroku and other platform providers, you may have a full connection URL # available as an environment variable. For example: # # DATABASE_URL="mysql2://myuser:mypass@localhost/somedatabase" # # You can use this database configuration with: # # production: # url: <%= ENV['DATABASE_URL'] %> # production: <<: *default database: myapp_production username: myapp password: <%= ENV['MYAPP_DATABASE_PASSWORD'] %>
補足情報(FW/ツールのバージョンなど)
10.1.36-MariaDB MariaDB Server
centos 7
rails 5
ruby 2.5.1
回答依頼をいただいておいて申し訳ないのですがrailsの知識皆無なのでもっと専門知識をもった人に回していただけると
回答1件
あなたの回答
tips
プレビュー