Java Expert....Java/Open Source Addict

Redes Sociales

twitterlinkedinrss feedemail youtube

Mostrando entradas con la etiqueta postgres.app. Mostrar todas las entradas
Mostrando entradas con la etiqueta postgres.app. Mostrar todas las entradas

viernes, 24 de septiembre de 2021

"Stale postmaster.pid file" en Postgres.app


Estimados amig@s, en esta oportunidad voy a mostrarles como corregir el error "Stale postmaster.pid file" en Postgres, el cual me apareció cuando mi máquina se reinicio inesperadamente por un problema de memoria al probar un tema de bigdata. Antes de comenzar es importante mencionar que utilizo la aplicación Postgres.app para Mac, pero el problema se corrigue de manera similar en otros sistemas operativos. El error que  me apareció es el siguiente.

Para poder corregir se tiene que realizar lo siguiente:

1.- Ubicar el archivo de configuración postmaster.pid, para lo cual una vez abierto la aplicación Postgress.app, selecionamos la opción Server Settings -> Show


2.- Diriguirse a la ubicación y proceder a eliminar el archivo.


3. Finalmente iniciar Postgres, para verificar que todo este correcto, presionando Start



viernes, 19 de octubre de 2018

Change Password Postgres.app on Mac


Before I show us how to change the password on Postgres is important say us that I used the Postgres.app  program to install Postgres on Mac. It is a tool  that let us manages the database from easy way. However the default installation doesn't include password.



To change the password  we must do the following steps:
  1. Go to the /Applications/Postgres.app/Contents/Versions/10/bin directory and execute the ./psql --u postgres command.
  2. Next we need to change the password throught the \password command. We need to enter the password twice times.
  3. Next quit the postgres console.

4. After that we need to change the autentication method of trust to md5 in the pg_hba.conf  file  located in /Users//Library/Application Support/Postgres/var-10/pg_hba.conf, where is the username of computer.



       5. Finally we need to restart the Postgres.app, for this we must stop the database and start again.