Ubuntu-Pardus postgresql parolanızı unuttunuz ve baştan kuramıyorsanız.

Mustafa Ülker
1 min readNov 23, 2020

/usr/share/postgresql klasörüne girin

cd /usr/share/postgresql

bir hataya mahal vermemek adına bu klasördeki tüm dosyaları bir üst klasörde oluşturacağımız klasör içine yedekleyelim

bu komutların tamamını super user olarak yapabilirsiniz.

cd /usr/share/postgresqlsudo sumkdir ../postgresqlyedekcp * ../postgresqlyedeksudo apt autoremove postgresqlmv * ../postgresqlyedeksudo apt install postgresqlsu — postgrespostgres@mustafaulker:~$ psqlpsql (13.1 (Debian 13.1–1.pgdg100+1), sunucu 11.8 (Debian 11.8–1.pgdg100+1))
Yardım için “help” yazınız.
postgres=# create user mustafaulker password mypassword,
postgres-# create schema test
postgres-# GRANT ALL ON SCHEMA test TO mustafaulker
postgres-# GRANT ALL ON ALL TABLES IN SCHEMA test TO mustafaulker

thats it.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

No responses yet

Write a response