M
Michael Pope
I've been looking through all the posts relating to this and my syntax
looks correct but my ruby file will not connect to my postgresql db.
I'm running this on an eeepc using PostgreSQL 7.4 with Ruby 1.9
Here is the code I'm using:
require 'postgres'
conn = PGconn.connect("localhost", 5432, '','', "winesite_development",
"user", nil)
Here is the error I'm getting:
/convert.rb:12:in `connect': could not connect to server: Connection
refused (PGError)
Is the server running on host "localhost" and accepting
TCP/IP connections on port 5432?
from ./convert.rb:12
I've checked that postgres is running on the machine and I can connect
to it from the command line as user 'user' with no password.
looks correct but my ruby file will not connect to my postgresql db.
I'm running this on an eeepc using PostgreSQL 7.4 with Ruby 1.9
Here is the code I'm using:
require 'postgres'
conn = PGconn.connect("localhost", 5432, '','', "winesite_development",
"user", nil)
Here is the error I'm getting:
/convert.rb:12:in `connect': could not connect to server: Connection
refused (PGError)
Is the server running on host "localhost" and accepting
TCP/IP connections on port 5432?
from ./convert.rb:12
I've checked that postgres is running on the machine and I can connect
to it from the command line as user 'user' with no password.