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

I am getting this message after run: ruby script/server and click in
"About your application environment" in the browser.

You need to specify the appropriate username/password for your
database in config/database.yml .

Have you done any "getting started with Rails" tutorials?

Hello Renato,

Find the file yourapp/config/database.yaml, open it, and set it well.
You have to know your database username+password, if any. Any also the
database have to installed, and the database's gem also. Check it with
'mysql -v' and 'gem list m' or 'sqlite3 -v' and 'gem list sq', you
will see if something is missing, then istall it.

If you use ruby script/server instead of rails server, means that you
use Rails 2.3.X version ,and not the latest Rails 3. Chack your
versions: "ruby -v", "gem -v", "gem list", "rails -v".

It's a really good idea to update, since Rails 3 is completely
refactored and many new ideas in it, so if you study Rails 2, you will
need to restudy many things later. (sudo) "gem update"

Or the best solution: install RVM, version manager, so you can choose
which Ruby or Rails you wish to use.

Good luck,
Zoltán

1.grant all privileges in mysql with your yaml database
2.add password to your yaml
3.if yaml parse error,check whether you didnt leave any space in between your password and password line column,if not put one space,it has to follow in all all lines.
for eg:password: your_password.
4.try rake db:migrate --trace

1.grant all privileges in mysql with your yaml database
2.add password to your yaml
3.if yaml parse error,check whether you didnt leave any space in between
your password and password line column,if not put one space,it has to follow
in all all lines.
for eg:password: your_password.
4.try rake db:migrate --trace

5. Check the date on the forum to make sure you didn't respond to a
year-old message.

sounds like a permission issue on MySQL.

if you have shell access, try getting on the SQL monitor with the username and password.