setup postage sql and pgAdmin

how to installing postage sql and pgAdmin in fedora using command line or using dnf package manager

sudo dnf install @sql-server pgadmin3
1 Like

error:
$ sudo postgresql-setup initdb
WARNING: using obsoleted argument syntax, try --help
WARNING: arguments transformed to: postgresql-setup --initdb --unit postgresql

  • Initializing database in ‘/var/lib/pgsql/data’
    ERROR: Data directory /var/lib/pgsql/data is not empty!
    ERROR: Initializing database failed, possibly see /var/lib/pgsql/initdb_postgresql.log

i am new to linux world (fedora )
so can any one give step by step instruction to install postage sql

I don’t use postgresql, but from the error, it says that it failed because your /var/lib/pgsql/data directory is not empty. Does that directory contain any important data? If not, can you remove it and try again?

are you using my sql

No, I don’t use any database.

3 Likes

I’m mariadb user…but this’s comment …very userful!..thanks!

thank you i successfully installed postgresql

whats are the things do after installing postgresql like setting password and how to install pgadmin in fedora 31

you should have gotten some pointers from the above.
“sudo dnf install package-name” works for all normal fedora packages, including pgadmin.

Search the postgresql documents here for how to do almost everything you need to know (and a lot extra). A tutorial is located here.