Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Empfohlene Antworten

Veröffentlicht

Hallo!

Ich habe vor kurzem meinen Server zerschossen, und danach nicht mehr Suse 8.2 sondern 9.0 aufgespielt. Gestern wollte ich dann mal wieder eine kleine Webapplikation programmieren, und dazu meine Postgresdatenbank wieder einrichten. Installiert und eingerichtet hab ich sie auch. Aber ich kann keine Verbindung von meinem Windows Client herstellen. Kann mir da einer weiterhelfen?

Bine

Ich habe diese Datei gar nicht. Kann aber die Datenbank auf dem Server starten, kann auch User anlegen, und Datenbanken. Nur bei der Verbindung von meinem Windows Rechner aus bekomme ich folgende Fehlermeldung:

Warning: pg_connect(): Unable to connect to PostgreSQL server: FATAL: IDENT authentication failed for user "sabine" . in 

Wo soll diese Datei denn liegen? Und bist Du sicher dass es sie unter Suse 9.0 gibt?

Bine

Also ich habe dieses Verzeichnis, aber da ist nichts drin!

Die pg_hba.conf steht an einer ganz anderen Stelle!

Bine

Wenn du ueber den ident authentifizieren willst, solltest du dir auch noch die pg_ident.conf im data-verzeichnis anschauen.

Dann muss auch der identd laufen. (siehe inetd)

Also noch mal: In meinem Data Verzeichnis ist NICHTS drin. Und ich will nur mit der Datenbank arbeiten, ob über IDENT oder nicht ist mir dabei egal - aber wie kann ich das ändern?

Bine

'initdb' gemacht?

Nein, hatte ich nicht. Aber kann ich auch nicht machen. Als root sagt er geht nicht als root, und als user postgres sagt er permission denied! Was nun?

Bine

man initdb

       initdb  must  be  run as the user that will own the server

       process, because the server needs to have  access  to  the

       files  and  directories  that  initdb  creates.  Since the

       server may not be run as root, you must not run initdb  as

       root either. (It will in fact refuse to do so.)



       Although  initdb will attempt to create the specified data

       directory, often it won't have permission to do so,  since

       the  parent of the desired data directory is often a root-

       owned directory. To set up an arrangement like this,  cre-

       ate  an  empty  data  directory as root, then use chown to

       hand over ownership of that directory to the database user

       account,  then su to become the database user, and finally

       run initdb as the database user.

Mach also erst ein chown <pguser> <datadir> und dann ein initdb als <pguser>.

HTH

Jetzt nenn mich nicht total doof, aber welches ist das datadir?

Bine

Das Verzeichniss, in das PostgreSQL dann die Daten ablegen soll und das bei dir leer ist (wie du oben schon gesagt hast).

Erstelle ein Konto oder melde dich an, um einen Kommentar zu schreiben.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.