我已经 git 克隆了一个存储库,以便开始为私人项目做出贡献。
现在,当我启动 mysql 服务器和 rails 服务器时,我收到以下错误:
Access denied for user 'root'@'localhost' (using password: YES) (Mysql2::Error)
现在我尝试使用在 config/database.yml 文件中找到的密码登录,但没有成功。我应该怎么做才能让应用程序在我的本地环境中正常运行?
感谢您的帮助。
database.yml 文件:
development:
adapter: mysql2
encoding: utf8
reconnect: false
database: sc_development
pool: 5
username: root
password: Mysql2047
socket: /tmp/mysql.sock
# Warning: The database defined as "test" will be erased and
# re-generated from your development database when you run "rake".
# Do not set this db to the same as development or production.
test:
adapter: mysql2
encoding: utf8
reconnect: false
database: sc_test
pool: 5
username: root
password: Mysql2047
socket: /tmp/mysql.sock