# New to ruby on rails and programming stuck on page 23

**URL:** <https://www.ruby-forum.com/t/new-to-ruby-on-rails-and-programming-stuck-on-page-23/48154>\
**Category:** Ruby-Forum\
**Created:** [November 17, 2005, 4:55am UTC](https://www.ruby-forum.com/t/new-to-ruby-on-rails-and-programming-stuck-on-page-23/48154 "2005-11-17T04:55:40Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![tomfarm](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/b5ac83/32.png) [@tomfarm](https://www.ruby-forum.com/u/tomfarm)\
**Post date:** [November 17, 2005, 4:55am UTC](https://www.ruby-forum.com/t/new-to-ruby-on-rails-and-programming-stuck-on-page-23/48154/1 "2005-11-17T04:55:40Z")

</div>

hi all,

I been spending days tring to resolse this error… I am following curt  
hobbs tutorial "rolling with ruby on rails. originally i installed  
MySQL with a pasword so i was running into problems trying to connect.

Mysql::Error in Recipe#new  
#28000Access denied for user ‘root’@‘localhost’ (using password: NO)

I removed the password and now i am getting another error:

Mysql::Error in Recipe#new  
#28000Access denied for user ‘root’@‘localhost’ (using password: YES)

Any info or suggestions will be greatly appreciated.

I am stuck and don’t know how to get around this error.

thanks in advance,  
enjoy the journey,  
buster

---

<div class="post-metadata">

**Author:** ![tomfarm](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/b5ac83/32.png) [@tomfarm](https://www.ruby-forum.com/u/tomfarm)\
**Post date:** [December 9, 2005, 11:26am UTC](https://www.ruby-forum.com/t/new-to-ruby-on-rails-and-programming-stuck-on-page-23/48154/2 "2005-12-09T11:26:47Z")

</div>

Hi buster ,  
Try out this command now and please let me know the resullt .

ruby script/server environment=development

Thanx and regards,  
Naroor R.,

> **[Personal blog of Ratish Naroor | A travelogue by Ratish Naroor](http://naroor.blogspot.com/)**
>
> Ratish Naroor shares his life experiences including travelogues , hiking , photography and personal well being .

---

<div class="post-metadata">

**Author:** ![tomfarm](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/b5ac83/32.png) [@tomfarm](https://www.ruby-forum.com/u/tomfarm)\
**Post date:** [December 13, 2005, 6:42am UTC](https://www.ruby-forum.com/t/new-to-ruby-on-rails-and-programming-stuck-on-page-23/48154/3 "2005-12-13T06:42:22Z")

</div>

This is a bug that is addressed in the book “Agil Web D. with  
Rails”. They say to put a username in you .yaml and it will work.

---

<div class="post-metadata">

**Author:** ![tomfarm](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/b5ac83/32.png) [@tomfarm](https://www.ruby-forum.com/u/tomfarm)\
**Post date:** [May 23, 2006, 7:18pm UTC](https://www.ruby-forum.com/t/new-to-ruby-on-rails-and-programming-stuck-on-page-23/48154/4 "2006-05-23T19:18:49Z")

</div>

After making a change in database.yml, did you bounce the server? Stop  
and restart whichever web server you’re using so it can load the new  
user info.

Best,  
Anton

---

<div class="post-metadata">

**Author:** ![tomfarm](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/b5ac83/32.png) [@tomfarm](https://www.ruby-forum.com/u/tomfarm)\
**Post date:** [April 9, 2006, 3:55am UTC](https://www.ruby-forum.com/t/new-to-ruby-on-rails-and-programming-stuck-on-page-23/48154/5 "2006-04-09T03:55:01Z")

</div>

Hi, I’m having the same problem, and I tried Charlie B.'s suggestion  
unsuccessfully, would anyone mind explaining the remedy in more detail  
or sharing something that works?

thank you,  
John

---

<div class="post-metadata">

**Author:** ![tomfarm](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/b5ac83/32.png) [@tomfarm](https://www.ruby-forum.com/u/tomfarm)\
**Post date:** [February 24, 2007, 6:42pm UTC](https://www.ruby-forum.com/t/new-to-ruby-on-rails-and-programming-stuck-on-page-23/48154/6 "2007-02-24T18:42:12Z")

</div>

Anton wrote:

> After making a change in database.yml, did you bounce the server? Stop  
> and restart whichever web server you’re using so it can load the new  
> user info.
> 
> Best,  
> Anton

It’s the solution. I had the same error because I forgot restart the  
server after change database.yml

Thanks!

---

<div class="post-metadata">

**Author:** ![tomfarm](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/b5ac83/32.png) [@tomfarm](https://www.ruby-forum.com/u/tomfarm)\
**Post date:** [April 16, 2007, 6:01pm UTC](https://www.ruby-forum.com/t/new-to-ruby-on-rails-and-programming-stuck-on-page-23/48154/7 "2007-04-16T18:01:23Z")

</div>

Good solution guys, thanks. I am also using the “Rolling with Ruby on  
Rails Revisited” tutorial, and it says to configure the  
‘ODBC’@‘localhost’ connection. If you were sucessfull at doing this  
then replace the ‘root’ username in database.yml with ‘ODBC’. Then it  
worked.

Pedro wrote:

> Anton wrote:
> 
> > After making a change in database.yml, did you bounce the server? Stop  
> > and restart whichever web server you’re using so it can load the new  
> > user info.
> > 
> > Best,  
> > Anton
> 
> It’s the solution. I had the same error because I forgot restart the  
> server after change database.yml
> 
> Thanks!
