ruby on rails - Mysql2::Error Access denied for user -
i have rails applications on mac , work fine. have installed new 1 uses mysql2 gem, starting server when visiting application getting access denied error. trying follow solution mysql2::error: access denied user 'test'@'localhost' database 'depot_test' logging in root user when trying create new database getting access denied error.
changes in config / database.yml
user name root. test user not exist in mysql. think in development environment should like:
example
development: adapter: mysql2 database: depot_test pool: 5 host: localhost encoding: utf8 username: test password:
change username
root
or create test user privileges. remember rails uses environments(test, development, production u other). in case depot_development
or name not equal environment.
i hope helps you.
Comments
Post a Comment