# Script/dbconsole

**URL:** <https://www.ruby-forum.com/t/script-dbconsole/154165>\
**Category:** Rails\
**Created:** [November 26, 2008, 1:22am UTC](https://www.ruby-forum.com/t/script-dbconsole/154165 "2008-11-26T01:22:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [November 26, 2008, 1:22am UTC](https://www.ruby-forum.com/t/script-dbconsole/154165/1 "2008-11-26T01:22:40Z")

</div>

I’m running rails 2.2.2. Is script/dbconsole part of this or do I have  
to somehow install it?

When I run script/dbconsole I get:

-bash: script/dbconsole: No such file or directory

But running script/console I do get:

script/console  
Loading development environment (Rails 2.1.1)

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [November 26, 2008, 1:33am UTC](https://www.ruby-forum.com/t/script-dbconsole/154165/2 "2008-11-26T01:33:01Z")

</div>

removed\_email\_address@domain.invalid wrote:

> I’m running rails 2.2.2. Is script/dbconsole part of this or do I have  
> to somehow install it?
> 
> When I run script/dbconsole I get:
> 
> -bash: script/dbconsole: No such file or directory
> 
> But running script/console I do get:
> 
> script/console  
> Loading development environment (Rails 2.1.1)

modify RAILS\_GEM\_VERSION in config/environment.rb

RAILS\_GEM\_VERSION = ‘2.2.2’ unless defined? RAILS\_GEM\_VERSION

then execute:  
rake rails:update

I hope this help.

Duilio R.

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [November 26, 2008, 1:33am UTC](https://www.ruby-forum.com/t/script-dbconsole/154165/3 "2008-11-26T01:33:11Z")

</div>

On Tue, Nov 25, 2008 at 4:22 PM, removed\_email\_address@domain.invalid [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> I’m running rails 2.2.2. Is script/dbconsole part of this or do I have  
> to somehow install it?

rake rails:update

jeremy

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [November 26, 2008, 1:41am UTC](https://www.ruby-forum.com/t/script-dbconsole/154165/4 "2008-11-26T01:41:59Z")

</div>

That did it. Thanks!
