Rails 5.0.0.1、ruby 2.3.1、MySql Server version: 5.7.11にて開発しています。
poduction, testでは問題なくデータベースが作成できるのですが、
production modeで
bin/rails db:create RAILS_ENV=production
コマンドを入れても
Access denied for user 'cuty'@'localhost' (using password: NO)Please provide the root password for your MySQL installation
が出てしまいます。
database.yamlは以下の通り
ruby
1default: &default 2 adapter: mysql2 3 encoding: utf8 4 pool: 5 5 username: root 6 password: 'fradiction' 7 socket: /tmp/mysql.sock 8 9development: 10 <<: *default 11 database: cuty_development 12 13# Warning: The database defined as "test" will be erased and 14# re-generated from your development database when you run "rake". 15# Do not set this db to the same as development or production. 16test: 17 <<: *default 18 database: cuty_test 19 20production: 21 <<: *default 22 database: cuty_production 23 username: root 24 password: 'fradiction'
何がいけないのでしょうか?
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。