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

**URL:** <https://www.ruby-forum.com/t/error-before-updating-scaffolding-from-new-db-schema-try-c/53573>\
**Category:** Rails\
**Created:** [February 10, 2006, 6:58am UTC](https://www.ruby-forum.com/t/error-before-updating-scaffolding-from-new-db-schema-try-c/53573 "2006-02-10T06:58:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tirta\_KSUntario](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/ecd19e/32.png) [@Tirta\_KSUntario](https://www.ruby-forum.com/u/Tirta_KSUntario)\
**Post date:** [February 10, 2006, 6:58am UTC](https://www.ruby-forum.com/t/error-before-updating-scaffolding-from-new-db-schema-try-c/53573/1 "2006-02-10T06:58:31Z")

</div>

Hi all,

I’m new to Rails, I know this is a classic error, but I cannot resolve  
it anyhow ☹

This is my system config:  
Windows XP SP2  
Ruby 1.8.2 → installed using windows installer version  
Rails 1.0.0  
MySql 4.1.10

I followed the instruction on [rubyonrails.org](http://rubyonrails.org), exactly step by step.  
But the error occur everytime I tried to generate scaffold or generate  
model.

I tried to googling around, I tried to reinstall Ruby’s mysql library  
using gem, but it failed.

Help anyone? I’m totally stuck here ☹

–  
Tirta K. Untario

---

<div class="post-metadata">

**Author:** ![Tirta\_KSUntario](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/ecd19e/32.png) [@Tirta\_KSUntario](https://www.ruby-forum.com/u/Tirta_KSUntario)\
**Post date:** [February 10, 2006, 7:15am UTC](https://www.ruby-forum.com/t/error-before-updating-scaffolding-from-new-db-schema-try-c/53573/2 "2006-02-10T07:15:48Z")

</div>

On Fri, 2006-02-10 at 12:57 +0700, Tirta K. Untario wrote:

> I followed the instruction on [rubyonrails.org](http://rubyonrails.org), exactly step by step.  
> But the error occur everytime I tried to generate scaffold or generate  
> model.
> 
> I tried to googling around, I tried to reinstall Ruby’s mysql library  
> using gem, but it failed.
> 
> Help anyone? I’m totally stuck here ☹

* * *

Can you connect to mysql in other ways?

Did you set up a table?

Are you using new or old style hashed passwords in mysql (must be new  
style)?

What instructions are you following?

You’re not offering much in terms of information.

Craig

---

<div class="post-metadata">

**Author:** ![Tirta\_KSUntario](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/ecd19e/32.png) [@Tirta\_KSUntario](https://www.ruby-forum.com/u/Tirta_KSUntario)\
**Post date:** [February 10, 2006, 7:20am UTC](https://www.ruby-forum.com/t/error-before-updating-scaffolding-from-new-db-schema-try-c/53573/3 "2006-02-10T07:20:28Z")

</div>

How are you invoking script/generate? What tables do you have in your  
db? Did you edit  
your database.yml appropriately?

b

---

<div class="post-metadata">

**Author:** ![Tirta\_KSUntario](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/ecd19e/32.png) [@Tirta\_KSUntario](https://www.ruby-forum.com/u/Tirta_KSUntario)\
**Post date:** [February 10, 2006, 11:23am UTC](https://www.ruby-forum.com/t/error-before-updating-scaffolding-from-new-db-schema-try-c/53573/4 "2006-02-10T11:23:13Z")

</div>

Hi all,

Thanks for Craig and Ben, I solved the problem 🙂

I use PHP4 for main web development language, and I changed hashed  
password for MySQL to the old one long time ago. So that’s where the  
problem lies…

–  
Tirta K. Untario
