# A Frustrated Beginner

**URL:** <https://www.ruby-forum.com/t/a-frustrated-beginner/116516>\
**Category:** Rails\
**Created:** [October 6, 2007, 6:46pm UTC](https://www.ruby-forum.com/t/a-frustrated-beginner/116516 "2007-10-06T18:46:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![MrSWatson](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/46a35a/32.png) [@MrSWatson](https://www.ruby-forum.com/u/MrSWatson)\
**Post date:** [October 6, 2007, 6:46pm UTC](https://www.ruby-forum.com/t/a-frustrated-beginner/116516/1 "2007-10-06T18:46:04Z")

</div>

I have tried everything in my power to get this program up and running  
and it is not working for me. I have installed RoR on my Windows XP  
machine. I have Instant Rails and Ruby on Rails and I am using Instant  
Rails to connect the mySQL database to Ruby on Rails. It is not  
working.

Everything works fine except when I create a scaffold it gives me an  
error in mySQL.  
The error reads,

“\> ruby script/generate scaffold Product Admin  
exists app/controllers/  
exists app/helpers/  
exists app/views/admin  
exists app/views/layout  
exists test/functional/  
dependency model  
exists app/models/  
exists test/unit/  
exists test/fixtures/  
identical app/models/product.rb  
identical test/unit/products.ywl  
identical test/fixtures/product.yml  
#28000Access denied for user ‘root’@‘localhost’ (using password: NO)”.

I have done this several time and continue to get the same error. Is  
there anyone that can chat with me on an instant messenger or live  
chat to help me with my problem, if possible.

My config/database.yml files shows,

# MySQL (default setup). Versions 4.1 and 5.0 are recommended.

# 

# Install the MySQL driver:

# gem install mysql

# On MacOS X:

# gem install mysql – --include=/usr/local/lib

# On Windows:

# gem install mysql

# Choose the win32 build.

# Install MySQL and put its /bin directory on your path.

# 

# And be sure to use new-style password hashing:

# [http://dev.mysql.com/doc/refman/5.0/en/old-client.html](http://dev.mysql.com/doc/refman/5.0/en/old-client.html)

development:  
adapter: mysql  
database: depot\_development  
username: root  
password:  
host: localhost

# Warning: The database defined as ‘test’ will be erased and

# re-generated from your development database when you run ‘rake’.

# Do not set this db to the same as development or production.

test:  
adapter: mysql  
database: depot\_test  
username: root  
password:  
host: localhost

production:  
adapter: mysql  
database: depot\_production  
username: root  
password:  
host: localhost

It seems to be correct to me.

Any ideas? Is there anyone I can chat with real time about this?

---

<div class="post-metadata">

**Author:** ![MrSWatson](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/46a35a/32.png) [@MrSWatson](https://www.ruby-forum.com/u/MrSWatson)\
**Post date:** [October 6, 2007, 6:57pm UTC](https://www.ruby-forum.com/t/a-frustrated-beginner/116516/2 "2007-10-06T18:57:50Z")

</div>

It was the password thing. Bharat was correct. Thank you.
