Tuấn Đỗ
Tuấn Đỗ

Reputation: 1

Mysql2::Error::ConnectionError: Access denied for user 'root'@'localhost' (using password: NO)

Got a new rails demo and i can't start the server i tried "mysql -u root -p" and its didn't work here is my database.yml:

default: &default

adapter: mysql2

encoding: utf8

pool: 5

username: root

password: ''

host: localhost

development:

<<: *default

database: buk_store_dev

production:

adapter: mysql2

host: 127.0.0.1

database: buk_store_production

Upvotes: 0

Views: 1391

Answers (1)

Sourcery
Sourcery

Reputation: 656

Check your root password on your MySQL server. Looks like you are using the wrong password.

Upvotes: 0

Related Questions