# Run 'rails console' no problem, but not 'rails dbconsole': Couldn't find database client: psql

**URL:** <https://www.ruby-forum.com/t/run-rails-console-no-problem-but-not-rails-dbconsole-couldnt-find-database-client-psql/195719>\
**Category:** Rails\
**Created:** [September 29, 2010, 1:28am UTC](https://www.ruby-forum.com/t/run-rails-console-no-problem-but-not-rails-dbconsole-couldnt-find-database-client-psql/195719 "2010-09-29T01:28:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ntk](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/48db29/32.png) [@ntk](https://www.ruby-forum.com/u/ntk)\
**Post date:** [September 29, 2010, 1:28am UTC](https://www.ruby-forum.com/t/run-rails-console-no-problem-but-not-rails-dbconsole-couldnt-find-database-client-psql/195719/1 "2010-09-29T01:28:46Z")

</div>

It’s one of those things that seems like it should work but does not. My  
rails app (and ‘rails console’) clearly knows where my data is as I can  
see  
my data.

When I run ‘rails dbconsole’ I can not get in, I get this error:  
Couldn’t  
find database client: psql. Check your $PATH and try again.

Up to now I just log in to pgsql directly and I am in, just curious to  
use  
the rails tool.

Environment: Rails 3, 1.9.2, rvm.

If you’ve seen this please let me know, I don’t yet see anything in  
searches.

David

---

<div class="post-metadata">

**Author:** ![ntk](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/48db29/32.png) [@ntk](https://www.ruby-forum.com/u/ntk)\
**Post date:** [September 29, 2010, 9:30am UTC](https://www.ruby-forum.com/t/run-rails-console-no-problem-but-not-rails-dbconsole-couldnt-find-database-client-psql/195719/2 "2010-09-29T09:30:27Z")

</div>

On Sep 29, 12:27 am, David K. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> It’s one of those things that seems like it should work but does not. My  
> rails app (and ‘rails console’) clearly knows where my data is as I can see  
> my data.
> 
> When I run ‘rails dbconsole’ I can not get in, I get this error: Couldn’t  
> find database client: psql. Check your $PATH and try again.

Is psql in your path?

Fred
