Access denied for user 'root'@'localhost' using password

Hi, is the database and database.yml have the exact same userid and
pass for access?

-Conrad