# How to Connect PostgreSQL Database in Ruby

**URL:** <https://www.ruby-forum.com/t/how-to-connect-postgresql-database-in-ruby/87965>\
**Category:** Rails\
**Created:** [March 7, 2007, 6:49am UTC](https://www.ruby-forum.com/t/how-to-connect-postgresql-database-in-ruby/87965 "2007-03-07T06:49:27Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ramakrishna\_reddy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/82dd89/32.png) [@ramakrishna\_reddy](https://www.ruby-forum.com/u/ramakrishna_reddy)\
**Post date:** [March 7, 2007, 6:49am UTC](https://www.ruby-forum.com/t/how-to-connect-postgresql-database-in-ruby/87965/1 "2007-03-07T06:49:27Z")

</div>

Hello,

```
    I try to connect PostgreSQL in Ruby , i am not geeting i got

```

some error in server starting , can u tell me , what is the  
configuration process Ruby + PostgreSQL .

```
     Thanking u

```

Waiting for Reply

Ramakrishna Reddy  
Pune,India

---

<div class="post-metadata">

**Author:** ![ramakrishna\_reddy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/82dd89/32.png) [@ramakrishna\_reddy](https://www.ruby-forum.com/u/ramakrishna_reddy)\
**Post date:** [March 7, 2007, 8:41am UTC](https://www.ruby-forum.com/t/how-to-connect-postgresql-database-in-ruby/87965/2 "2007-03-07T08:41:44Z")

</div>

ramakrishna reddy wrote:

> Hello,
> 
> ```
> I try to connect PostgreSQL in Ruby , i am not geeting i got
> 
> ```
> 
> some error in server starting , can u tell me , what is the  
> configuration process Ruby + PostgreSQL .
> 
> ```
> Thanking u
> 
> ```
> 
> Waiting for Reply
> 
> Ramakrishna Reddy  
> Pune,India

hi ,

just install the postgres\_pr gem!

---

<div class="post-metadata">

**Author:** ![ramakrishna\_reddy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/82dd89/32.png) [@ramakrishna\_reddy](https://www.ruby-forum.com/u/ramakrishna_reddy)\
**Post date:** [March 7, 2007, 8:54am UTC](https://www.ruby-forum.com/t/how-to-connect-postgresql-database-in-ruby/87965/3 "2007-03-07T08:54:56Z")

</div>

john wrote:

> ramakrishna reddy wrote:
> 
> > Hello,
> > 
> > ```
> > I try to connect PostgreSQL in Ruby , i am not geeting i got
> > 
> > ```
> > 
> > some error in server starting , can u tell me , what is the  
> > configuration process Ruby + PostgreSQL .
> > 
> > ```
> > Thanking u
> > 
> > ```
> > 
> > Waiting for Reply
> > 
> > Ramakrishna Reddy  
> > Pune,India
> 
> hi ,
> 
> just install the postgres\_pr gem!  
> Hi

i installed that one already i am asking after configuration procedure

---

<div class="post-metadata">

**Author:** ![ramakrishna\_reddy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/82dd89/32.png) [@ramakrishna\_reddy](https://www.ruby-forum.com/u/ramakrishna_reddy)\
**Post date:** [March 7, 2007, 11:04am UTC](https://www.ruby-forum.com/t/how-to-connect-postgresql-database-in-ruby/87965/4 "2007-03-07T11:04:48Z")

</div>

can you post your database.yml file?

On Mar 7, 8:49 am, ramakrishna reddy \<rails-mailing-l…@andreas-

---

<div class="post-metadata">

**Author:** ![ramakrishna\_reddy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/82dd89/32.png) [@ramakrishna\_reddy](https://www.ruby-forum.com/u/ramakrishna_reddy)\
**Post date:** [March 7, 2007, 12:34pm UTC](https://www.ruby-forum.com/t/how-to-connect-postgresql-database-in-ruby/87965/5 "2007-03-07T12:34:54Z")

</div>

Ahmad wrote:

> can you post your database.yml file?
> 
> On Mar 7, 8:49 am, ramakrishna reddy \<rails-mailing-l…@andreas-

Hello ,

```
    Thanks Finally i got the solution, only configuration problem in 

```

database.yml, i just changed adapater as postgresql now it is working .

Thanks Ahmad.

Regards

Ramakrishna
