Home:ALL Converter>Connect with rpostgresql

Connect with rpostgresql

Ask Time:2014-01-18T05:33:20         Author:user2051347

Json Formatter

I have build up a postgresql 9.2 database. My table looks like that:

CREATE DATABASE "EURUSD_M1"
  WITH OWNER = fadmin
       ENCODING = 'UTF8'
       TABLESPACE = pg_default
       LC_COLLATE = 'German_Germany.1252'
       LC_CTYPE = 'German_Germany.1252'
       CONNECTION LIMIT = -1;

However when trying to connect thorugh the rpostgresql driver I get:

> drv <- dbDriver("PostgreSQL")   ## loads the PostgreSQL driver
> con <- dbConnect(drv, port='5432', dbname='EURUSD_M1',
+       user='fadmin')   ## Open a connection 
Error in postgresqlNewConnection(drv, ...) : 
  RS-DBI driver: (could not connect fadmin@local on dbname "EURUSD_M1"
)

btw to specify host = 'localhost' does not change anything! Also fadmin is a superuser in my db!

Here are further connection information:

enter image description here

Any ideas what I am doing wrong?

I appreciate your answers!

Author:user2051347,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/21196313/connect-with-rpostgresql
yy