# Scaffold gets Access denied error

**URL:** <https://www.ruby-forum.com/t/scaffold-gets-access-denied-error/50161>\
**Category:** Rails\
**Created:** [December 13, 2005, 8:15pm UTC](https://www.ruby-forum.com/t/scaffold-gets-access-denied-error/50161 "2005-12-13T20:15:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![will](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/90ced4/32.png) [@will](https://www.ruby-forum.com/u/will)\
**Post date:** [December 13, 2005, 8:15pm UTC](https://www.ruby-forum.com/t/scaffold-gets-access-denied-error/50161/1 "2005-12-13T20:15:52Z")

</div>

I’m going through the examples in the Rails book and I’m hung up on  
scaffolding. I actually got it to work last week. This week, having  
changed nothing it doesn’t work. So I’m going through the depot tutorial  
on a new server and now I can’t even get scaffold to work. I’ve set up  
the database, and everything is correct in my database.yml file. What  
could the problem be?

-jailshell-3.00$ script/generate scaffold Product Admin  
exists app/controllers/  
exists app/helpers/  
exists app/views/admin  
exists test/functional/  
dependency model  
exists app/models/  
exists test/unit/  
exists test/fixtures/  
identical app/models/product.rb  
identical test/unit/product\_test.rb  
identical test/fixtures/products.yml  
Access denied for user ‘libhost\_deopt’@‘localhost’ (using password: YES)

==

development:  
adapter: mysql  
database: libhost\_depot  
host: localhost  
username: libhost\_deopt  
password: libhost\_depot

Any tips/pointers are welcome.

-Will

---

<div class="post-metadata">

**Author:** ![will](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/90ced4/32.png) [@will](https://www.ruby-forum.com/u/will)\
**Post date:** [December 13, 2005, 9:31pm UTC](https://www.ruby-forum.com/t/scaffold-gets-access-denied-error/50161/2 "2005-12-13T21:31:32Z")

</div>

would help to know version of mysql and rails being used.  
you may want to look at thread immediately above this one, or see  
[http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/169979](http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/169979)  
[http://news.gmane.org/gmane.comp.lang.ruby.rails/cutoff=33950](http://news.gmane.org/gmane.comp.lang.ruby.rails/cutoff=33950) (see  
‘Mysql troubles’)
