Hello. I have set a rails app, set the database.yml file, generated a
simple model, created the migration class file for this model and then
i´m trying to run the cmd: rake migrate, but i receive the following
msg:
C:\Documents and Settings\Ken\My Documents\RoR
Projects\railslist>rake migrate
(in C:/Documents and Settings/Ken/My Documents/RoR
Projects/railslist)
rake aborted!
#28000Access denied for user ‘root’@‘localhost’ (using password:
YES)
What´s probably happening is that MySql is denying access to Rails …
but i can´t figure out how to fix it. Any ideas?
What´s probably happening is that MySql is denying access to Rails …
but i can´t figure out how to fix it. Any ideas?
if you’re database.yml has something like:
username: root
password:
i.e. no password
Try connecting to mysql:
mysql -u root
If you can’t connect, you’ll need to set up a user ‘root’ without a
password.
Something like from within mysql:
GRANT ALL PRIVILEGES ON . TO ‘root’@‘localhost’ WITH GRANT OPTION;