Hi,
du meinst sicher psql Seltsam ist nur das wenn ich zuerst (vorher bin ich root) 'su -l -m postgres' mache und anschließend ein 'psql -l' mache erhalte ich:
Liste der Datenbanken
Name | Eigentümer | Kodierung
--------------+--------------+-----------
openexchange | openexchange | UNICODE
template0 | postgres | SQL_ASCII
template1 | postgres | SQL_ASCII
(3 Zeilen)
Was für mich ganz gut aussieht. Ich der Datei /var/lib/pgsql/datapostgresql.conf habe ich folgende Änderungen vorgenommen:
Code:
#---------------------------------------------------------------------------
# CONNECTIONS AND AUTHENTICATION
#---------------------------------------------------------------------------
# - Connection Settings -
tcpip_socket = true
max_connections = 100
# note: increasing max_connections costs about 500 bytes of shared
# memory per connection slot, in addition to costs from shared_buffers
# and max_locks_per_transaction.
#superuser_reserved_connections = 2
port = 5432
#unix_socket_directory = ''
#unix_socket_group = ''
#unix_socket_permissions = 0777 # octal
#virtual_host = '' # what interface to listen on; defaults to any
#rendezvous_name = '' # defaults to the computer name
# - Security & Authentication -
#authentication_timeout = 60 # 1-600, in seconds
#ssl = false
#password_encryption = true
#krb_server_keyfile = ''
#db_user_namespace = false
Außerdm habe ich in der Datei:
/var/lib/pgsql/data/pg_hba.conf
folgende Zeilen drin:
Code:
local all all trust
# IPv4-style local connections:
host all all 127.0.0.1 255.255.255.255 trust
# IPv6-style local connections:
#host all all ::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff trust
local all all ident sameuser
Wenn ich jedoch, immer noch als User 'postgres' mich an der Datenbank lokal anmelden möchte mit:
psql openxchange openxchange
erhalte ich:
psql: FATAL: Datenbank »openxchange« existiert nicht
Obwohl sie mir doch angezeigt wird? Kann mir jemand helfen?
Viele Grüße
pixel
Lesezeichen