rails生成的scaffold的示例访问数据库出错,而手动写的访问正常,请高手帮助

rails生成的scaffold的示例访问数据库出错,而手动写的访问正常,请高手帮助

本地 php?name=rails" onclick="tagshow(event)" class="t_tag">rails 版本2.1.2,租赁的ror空间的版本也是2.1.2,手工写的php?name=%C1%AC%BD%D3" onclick="tagshow(event)" class="t_tag">连接数据库的代码正常,用 php?name=rails" onclick="tagshow(event)" class="t_tag">rails 自动生成的scaffold的product 示例程序老是报错,是什么原因?
错误信息:
ActiveRecord::StatementInvalid in ProductsController#index
Mysql::Error: Table 'htdocs_development.products' doesn't exist: SELECT * FROM `products`  
RAILS_ROOT: /www/xxxx.host/smallj_cn/htdocs

Application Trace | Framework Trace | Full Trace

麻烦高手指点一二,调试了3天了..


About your application’s environment
Ruby version 1.8.6 (amd64-freebsd7)
RubyGems version 1.2.0
Rails version 2.1.2
Active Record version 2.1.2
Action Pack version 2.1.2
Active Resource version 2.1.2
Action Mailer version 2.1.2
Active Support version 2.1.2
Application root /www/xxxx.host/smallj_cn/htdocs
Environment development
Database adapter mysql
Database schema version 0

补充一点,我在本地用的数据库是sqlite3,租赁空间上用的是mysql,我只修改了config中的配置文件,不知道这样做可以吗?
Mysql::Error: Table 'htdocs_development.products' doesn't exist