当我运行时:
bundle exec rails c
我明白了
Mysql2::Error: Access denied for user 'root'@'$HOST' (using password: YES)
尽管这很好用:
mysql -h $HOST -P $PORT -u root -p
这是我的 config/database.yml
development:
&defaults
adapter: mysql2
encoding: utf8mb4
collation: utf8mb4_unicode_ci
pool: 5
host: $HOST
port: $PORT
database: $DATABASE
username: root
password: $PASSWORD
reconnect: true
我究竟做错了什么?