# Error: Before updating scaffolding from new DB schema, try

**URL:** <https://www.ruby-forum.com/t/error-before-updating-scaffolding-from-new-db-schema-try/99378>\
**Category:** Rails\
**Created:** [July 22, 2006, 2:44am UTC](https://www.ruby-forum.com/t/error-before-updating-scaffolding-from-new-db-schema-try/99378 "2006-07-22T02:44:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![donut](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/e19adc/32.png) [@donut](https://www.ruby-forum.com/u/donut)\
**Post date:** [July 22, 2006, 2:44am UTC](https://www.ruby-forum.com/t/error-before-updating-scaffolding-from-new-db-schema-try/99378/1 "2006-07-22T02:44:28Z")

</div>

Hi, I’m going through the Depot tutorial in the book “Agile Web  
Development with Rails” and I can’t even get past the very first step.  
I’m getting the following error:

“Before updating scaffolding from new DB schema, try creating a table  
for your model (Product)”

when I try to run "ruby script/generate scaffold Product Admin.

I have a table called “products” created in MySQL database  
depot\_development and so it’s not a name mismatch problem. I google’d a  
around and found that people who ran into this problem eventually  
“fixed” it by not using a MySQL password. So I removed my MySQL user  
password and the scaffold command worked. Is there a correct way to fix  
this problem? I don’t want to have an empty password for my sql  
account. Thanks.

---

<div class="post-metadata">

**Author:** ![donut](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/e19adc/32.png) [@donut](https://www.ruby-forum.com/u/donut)\
**Post date:** [July 22, 2006, 2:50am UTC](https://www.ruby-forum.com/t/error-before-updating-scaffolding-from-new-db-schema-try/99378/2 "2006-07-22T02:50:26Z")

</div>

I’m running ubuntu 6.06, ruby 1.8.4, rails 1.1.4, gems 0.9.0 if that  
matters.

---

<div class="post-metadata">

**Author:** ![donut](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/e19adc/32.png) [@donut](https://www.ruby-forum.com/u/donut)\
**Post date:** [July 22, 2006, 8:24am UTC](https://www.ruby-forum.com/t/error-before-updating-scaffolding-from-new-db-schema-try/99378/3 "2006-07-22T08:24:08Z")

</div>

Hey,

this helped me:  
[http://www.vandomburg.net/pages/mysql-ruby-windows](http://www.vandomburg.net/pages/mysql-ruby-windows)

Regards,  
Gedas

On 22/07/06, Donut D. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> depot\_development and so it’s not a name mismatch problem. I google’d a  
> removed\_email\_address@domain.invalid  
> [http://lists.rubyonrails.org/mailman/listinfo/rails](http://lists.rubyonrails.org/mailman/listinfo/rails)

–  
SÄ?kmÄ?s!

Pagarbiai,  
Gedas K.  
[http://gedas.maniakas.com](http://gedas.maniakas.com)
