How to install PostgreSQL on Mac OS | Install and Uninstall PostgreSQL Database

Sdílet
Vložit
  • čas přidán 14. 11. 2020
  • This video is about how to install PostgreSQL database, doing the initial setup of the PostgreSQL
    and then also explains how to uninstall PostgreSQL database on macOS Big Sur.
    This video also covers how to install pgAdmin and how to uninstall pgAdmin from macOS Big Sur.
    In this video, I cover PostgreSQL installation using the Interactive installer by EDB and also by Postgres.app
    Also cover the uninstallation of PostgreSQL database using both the Interactive installer by EDB and also by Postgres.app
    We go step by step from scratch to complete installation, setup and uninstallation of PostgreSQL.
    We also create a sample database and table using pgAdmin and then insert data to this table in pgAdmin.
    We look at the error's caused in Postgres 13.1 version when trying to install through the Interactive installer by EDB method.
    This video covers the following:
    1) Install PostgreSQL using the Interactive installer by EDB method.
    2) Setup pgAdmin which is installed as part of the EDB installer.
    3) Create sample database and table to test pgAdmin.
    4) Uninstall PostgreSQL using the uninstaller package provided by the EDB installer.
    5) Install PostgreSQL using Postgres.app method.
    6) Initialise database and setup command line path for PostgreSQL database.
    7) Install pgAdmin.
    8) Uninstall PostgreSQL database using uninstallation steps provided by Postgres.app
    Mentioned below are the links mentioned in video:
    PostgreSQL:
    www.postgresql.org/
    pgAdmin:
    www.pgadmin.org/
    Learn What is Database & Different types of Database (for beginners):
    • Learn What is Database...
    I hope the video was useful. Please like, subscribe and comment any queries or issues you may have faced during your PostgreSQL installation.
    Thank you and stay tuned for more SQL, Database and other tech video's on this channel.
    🔴 WATCH MORE VIDEOS HERE 👇
    ✅ SQL Tutorial - Basic concepts:
    • SQL Tutorial - Basic c...
    ✅ SQL Tutorial - Intermediate concepts:
    • SQL Tutorial - Interme...
    ✅ SQL Tutorial - Advance concepts:
    • SQL Tutorial - Advance...
    ✅ Practice Solving Basic SQL Queries:
    • Practice Solving BASIC...
    ✅ Practice Solving Intermediate SQL Queries:
    • Practice Solving INTER...
    ✅ Practice Solving Complex SQL Queries:
    • Practice Solving COMPL...
    ✅ Data Analytics Career guidance:
    • Data Analytics career ...
    ✅ SQL Course, SQL Training Platform Recommendations:
    • SQL Course / Training
    ✅ Python Tutorial:
    • Python Tutorial
    ✅ Git and GitHub Tutorial:
    • Git and GitHub
    ✅ Data Analytics Projects:
    • Data Analytics Projects
    THANK YOU,
    Thoufiq

Komentáře • 125

  • @pedra_rara
    @pedra_rara Před 3 lety +11

    You're a lifesaver!!!!
    Thank you ever sooo much

    • @techTFQ
      @techTFQ  Před 3 lety +1

      Thank you so much for your kind words..
      So glad it helped🙂

    • @mattbrody1424
      @mattbrody1424 Před rokem

      If you can not install it on your own by reading the docs I'd recommend you change the careers.

  • @fathimafarahna2633
    @fathimafarahna2633 Před 3 lety +12

    Being a naive, yet very easy to understand. You make a great tutor. Keep up your good work.

  • @hannachoi5819
    @hannachoi5819 Před 3 lety +3

    This video just gave me real peace since my mac kept failing to open PostgreSQL after upgrading to Big Sur. I finally open it and it works fine.

    • @techTFQ
      @techTFQ  Před 3 lety

      Awesome... glad the video helped..
      Thanks for your comment..

  • @rafiyashahana5498
    @rafiyashahana5498 Před 3 lety +1

    Very informative and helpful. Would love to see more such videos. 👌🏻

    • @techTFQ
      @techTFQ  Před 3 lety

      Thank you Rafiya... 😀

  • @jpg6220
    @jpg6220 Před 2 lety +3

    I needed this so much! thank you !!

    • @techTFQ
      @techTFQ  Před 2 lety

      Your welcome 🙏🏼
      Glad this helped ..

  • @nehatiwari2739
    @nehatiwari2739 Před 2 lety +2

    Thanks a lot for such a detailed explanation, its very useful. Thanks once again.

  • @mohammedshahil4898
    @mohammedshahil4898 Před 3 lety +1

    Never used PostgreSQL DB. But really loved the video & enjoyed learning something new👍🏻 Kuddos👏🏻 Keep up the good work brother🙌🏻

    • @techTFQ
      @techTFQ  Před 3 lety +1

      Thank you Shahil..
      It’s one of the most widely used RDBMS today and is gaining more popularity everyday so no harm in learning this 😀
      Thank you for liking it..

  • @thetyeewin3482
    @thetyeewin3482 Před 2 lety +2

    Thanks much! It is really helpful for me (beginner in PostgreSQL).

    • @techTFQ
      @techTFQ  Před 2 lety

      Your welcome Yee Win ,
      Glad this helped

  • @zolongOne
    @zolongOne Před 2 lety +2

    Your video was really helpful. Thanks!

    • @techTFQ
      @techTFQ  Před 2 lety +1

      Thank you 🙏🏼
      So glad it helped you 🙂

  • @amyhart2994
    @amyhart2994 Před 3 lety +2

    Fantastic guide, thank you!

    • @techTFQ
      @techTFQ  Před 3 lety

      Thank you for the feedback ☺️
      Much appreciated

  • @neelakantaraja3780
    @neelakantaraja3780 Před rokem

    your explantion is awesome...its worth..

  • @sheebaparveen3630
    @sheebaparveen3630 Před 3 lety +1

    Nicely explained 👌👌 perfect

    • @techTFQ
      @techTFQ  Před 3 lety

      Thank you Sheeba 😀

  • @aadione8
    @aadione8 Před 4 měsíci

    Great help sir

  • @konstantin_rom
    @konstantin_rom Před 2 lety +1

    Hi! Thanks for the video)

    • @techTFQ
      @techTFQ  Před 2 lety

      Your welcome 🙏🏼

  • @vanshikakathpal381
    @vanshikakathpal381 Před 3 měsíci

    hey firstly, thanks a lot i want to ask that i m learning from stratch is these 18 videos playlist is enough to learn basic sql?

  • @melissal431
    @melissal431 Před 3 lety +1

    Cool . Informative

  • @open-source243
    @open-source243 Před 2 lety +1

    Thank you ever so much :)

    • @techTFQ
      @techTFQ  Před 2 lety

      Your welcome 🙏🏼

  • @rg7380
    @rg7380 Před 2 lety +1

    you are awesome thank you for saving my time :)

    • @techTFQ
      @techTFQ  Před 2 lety

      Your welcome 🙏🏼 i am glad this helped

    • @kotlanavitha4777
      @kotlanavitha4777 Před rokem

      Hi , iam new learner to the SQL and i started few days ago but in my postgresql query was successfully executed but nothing was displayed in the data output I mean as shown above after successful execution the output in the format table filled with the stedends data so please could you help me out from this issue

  • @marcuswest4572
    @marcuswest4572 Před rokem

    Excellent

  • @ayushishukla2333
    @ayushishukla2333 Před 2 lety +1

    I am trying to uninstall my postgresql but I think while moving the folder, I lost the postgresql uninstaller. Now when I trying to delete the bin and data directories, its given me an error that these files are in use in some program.
    Kindly help me to uninstall it completely.

  • @estheryakubu2092
    @estheryakubu2092 Před rokem

    Thank you...

  • @brianchukwunalu2486
    @brianchukwunalu2486 Před rokem

    hello I tried everything but the only buttons showing on my poster sql interface is sql and property only

  • @Kanakapallianurag
    @Kanakapallianurag Před 2 lety +1

    very helpfull.

    • @techTFQ
      @techTFQ  Před 2 lety

      Thank you Anurag 🙏🏼

  • @smithasmith161
    @smithasmith161 Před 3 lety +1

    Helpful

  • @bunnyr4690
    @bunnyr4690 Před 3 lety +1

    God bless, you saved me

    • @techTFQ
      @techTFQ  Před 3 lety

      Thank you for the feedback...
      So glad it helped 🙂...

  • @ANAND02120
    @ANAND02120 Před 2 lety +1

    After installing and opening I cannot see any database when I click on the server. How to fix it?

  • @patrickbateman7665
    @patrickbateman7665 Před 3 lety +1

    Thank you Thoufiq Mohammed

    • @techTFQ
      @techTFQ  Před 3 lety +1

      Your welcome Dileep 🙂😃.. I hope it was helpful..

  • @komalkaur3876
    @komalkaur3876 Před 3 lety +1

    Hi , Thank u for the video .. i have one question ... how to re-attach panel actually in my system i was trying fetch sql query and accidentally panel got detach but there is no option to attclach it back to editor. When i try to run its showing “stay or leave on the page” . Not able to execute my query. Please answer this ASAP.

    • @techTFQ
      @techTFQ  Před 3 lety +1

      Hi.. your welcome..
      I believe you want your pg admin layout to be as it was in the beginning right?
      If so go to File -> Reset Layout
      This should do it..
      Also after the reset you can click File -> Lock layout -> prevent Docking to avoid such issues in future..

    • @komalkaur3876
      @komalkaur3876 Před 3 lety +1

      @@techTFQ Thank you very much.

  • @hmb8543
    @hmb8543 Před rokem

    Thank you TFQ, can you provide the database in order to follow you?

  • @raghuvaranmba8184
    @raghuvaranmba8184 Před 21 dnem

    Sir why enter current date in value insertion?

  • @sunilrskanda1588
    @sunilrskanda1588 Před rokem

    could please tell me how to import the SQL file to postgre

  • @xeskan
    @xeskan Před 3 lety +3

    Nice video, enjoyed it. Please keep them coming. I forgot my PostgreSQL user password, please share if you know the best way to reset it. Thank you!

  • @Metallica91394
    @Metallica91394 Před 6 měsíci +2

    So apparently the error has something to do with te processor of the mac, if you open the finder and search for the app, in the option Get Info you just activate the "run with rosetta", it will eliminate the error opening PgAdmin.

  • @chendathp10
    @chendathp10 Před 2 lety +2

    Thank you Thoufiq for this tutorial 👍 🙌 15:18 Can you explain how to change Owner database for default "postgres" please ? 🙏

    • @chendathp10
      @chendathp10 Před 2 lety +2

      FIND IT 😅 : I created the postgres Superuser : CREATE USER postgres SUPERUSER; then : CREATE DATABASE postgres WITH OWNER postgres; With command \du you can see all users. I quit my terminal and come back with : psql -U postgres VOILA 🥳

    • @techTFQ
      @techTFQ  Před 2 lety +1

      Awesome chenda 👌
      Glad you found the solution

  • @shankars8211
    @shankars8211 Před 11 měsíci +1

    Hi. I installed Postgresql as per the instructions in your video. but when i try to open the PG admin4, its showing fatal error indicating the server could not be contacted. kindly help me in this

    • @andreichisa550
      @andreichisa550 Před 5 měsíci +1

      i had the same problem how did rou resolve?

  • @sarazafar849
    @sarazafar849 Před 4 měsíci

    Can someone copy paste the Table script he used? I'm getting a syntax error and I want to see where my mistake is

  • @neelakantaraja3780
    @neelakantaraja3780 Před rokem +1

    trying to install in windows...i am not getting option to create password while installation..but after installation i am resetting the password..tere its is asking one more password....server connection also lost....how to create server connection if we reset master password? how to create password for server?

  • @shabanashabana4603
    @shabanashabana4603 Před 3 lety +1

    Nice

  • @alapaher377
    @alapaher377 Před 24 dny

    hi u make great videos but have just 1 request, can u plz zoom in your commands and screen in query tool so its easier for us to read. thnks from germany...

  • @chaitras1113
    @chaitras1113 Před rokem

    Text is not there in the database where I have to find that

  • @Iamnithinadhan
    @Iamnithinadhan Před 7 měsíci

    good video

  • @clarencechong7367
    @clarencechong7367 Před rokem

    Any Windows version or only MacOS guide?

  • @simranpardeshi8535
    @simranpardeshi8535 Před 14 dny

    The current_date in the Dob column isn't working

  • @empire1334
    @empire1334 Před 6 měsíci

    Is it same for windows also ?

  • @mram1690
    @mram1690 Před 8 měsíci

    How to set a password postgresql and pgadmin in macos please help

  • @igothisoncamera7205
    @igothisoncamera7205 Před 2 lety +1

    please make a video about how to use psql using terminal command line tools

    • @techTFQ
      @techTFQ  Před 2 lety +1

      Hi, haven’t planned this for now but will surely consider making a video abt it in near future

  • @xeskan
    @xeskan Před 3 lety +1

    Followed the process to uninstall but can still see the user: PostgreSQL at the login. So it's not a complete uninstallation. I deleted it by going to Mac Settings>users. Not sure if this is enough.
    Please make a video to access PostgreSQL from Python. Thank you!

    • @techTFQ
      @techTFQ  Před 3 lety +1

      Thank you for the feedback..
      Yes generally any database uninstallation involves some steps to delete files manually.. I believe I covered all of these steps in the video..
      You can also refer to the uninstallation instruction given by PostgreSQL (link in description)
      Hopefully it should clarify any of you doubts

  • @itsvikas-ei8hn
    @itsvikas-ei8hn Před rokem

    Toufic sir make a PostgreSQL tutorial on the command line because if you make a command line tutorial for Postgresql it lot's of help for a beginner how we can use Postgres use into command line

  • @bandimanasa9380
    @bandimanasa9380 Před 5 měsíci

    After installing ..it is still asking to install again and again. Can u help me out please.

  • @apurvadarsh85
    @apurvadarsh85 Před 2 lety +1

    I am on Apple Silicon M1 and I get the following error.
    A non-fatal error occur whilst creating menu shortcuts.
    problem running post-install step. installation may not complete correctly the database cluster.
    I tried installing different versions of Postgre but getting the same error.
    Can you help ?

    • @techTFQ
      @techTFQ  Před 2 lety

      Hi,
      Which type of installation have you chosen?
      Is it the interactive installer by EDB or Postgres.app or Homebrew?
      I think EDB might give some issues sometime for some version and generally the Postgres.app sure work fine.
      Can you try Postgres.app

    • @apurvadarsh85
      @apurvadarsh85 Před 2 lety +1

      @@techTFQ I tried EDB first, it failed. Then I tried postgres.app, it succeded. But after installing pgadmin 4, the server doesn't show up

    • @techTFQ
      @techTFQ  Před 2 lety

      Have you initialized the server as mentioned in the website?

    • @apurvadarsh85
      @apurvadarsh85 Před 2 lety +1

      @@techTFQ yes, as you showed on the video. Server was initialized correctly. I can see 3 server names including postgres

    • @techTFQ
      @techTFQ  Před 2 lety

      Ok, I had faced something like this long back and I remember I just uninstalled Postgres and PgAdmin and then re installed it again and it worked fine..
      Can you try that

  • @phichayaboice2033
    @phichayaboice2033 Před 2 lety

    I just installed PostgreSQL but it says "A non-fatal error occur whilst creating menu shortcuts.". What should I do?

    • @phichayaboice2033
      @phichayaboice2033 Před 2 lety

      And it says "Problem running post-install step. Installation may not complete correctly. Failed to start the database server.".

  • @AbbasSaqlain-dn9qp
    @AbbasSaqlain-dn9qp Před rokem

    sir why is postgre SQL is better than other SQL IDE,

  • @BusinessandFinance89
    @BusinessandFinance89 Před měsícem

    I just started learning SQL Today ( from a non tech finance background ). Started with your SQL Playlist. This is the second video. Having too much difficulty understanding . All the commands etc , only someone who already knows SQL can understand. What command,how did you arrive at . No explanation of the whole PGADMIN app. Straight deepdive into complex SQL Commands which went above my head. Too hard to understand. Is there extended version of SQL basic explanation video ?

  • @SatyamSoni1990
    @SatyamSoni1990 Před rokem

    Please add link for query

  • @kotlanavitha4777
    @kotlanavitha4777 Před rokem

    First thanks for making this video sir ! very informative, in my laptop query executed but in data out nothing was displayed it's blank plz help me out of this issue sir

  • @theunboxingchannel885
    @theunboxingchannel885 Před rokem +1

    Hey man can you also make a video of removing and resetting the password?

  • @trifff40
    @trifff40 Před 9 měsíci

    Have you create how to install postgreSQL on windows sir ?

  • @Summer-7
    @Summer-7 Před rokem

    help ):
    connection to server at 'localhost" (::1), port 5432 failed: FATAL: password authentication failed for user "postgres"
    i get this error when i try to open the server ?

    • @deawiw
      @deawiw Před 9 měsíci

      were you able to solve this problem? i'm in the same situation right now(

    • @allmixslaxy7981
      @allmixslaxy7981 Před 6 měsíci

      anyone know how to solve this problem

  • @ogunyemigodwin5690
    @ogunyemigodwin5690 Před rokem

    i have an error while installing postgreSQL on my laptop,it windows

  • @user-iy4zb5uo6o
    @user-iy4zb5uo6o Před 7 měsíci

    Hello sir, Do you handle any Online, Live
    / offline classes?

    • @techTFQ
      @techTFQ  Před 6 měsíci

      I might start something next month. It will be announced on LinkedIn

  • @lamaalsharyan5187
    @lamaalsharyan5187 Před 2 lety +1

    Thank yyyyoooouuu!!!! So helpful..
    i used the first method but when i login to pg admin it show me this error: connection to server at "localhost" (::1), port 5432 failed: FATAL: password authentication failed for user "postgres"
    why? How to solve it?

    • @techTFQ
      @techTFQ  Před 2 lety

      Your welcome 🙏🏼
      I think the error is due to incorrect password.. password should be the same which you entered during installation..

    • @lamaalsharyan5187
      @lamaalsharyan5187 Před 2 lety +1

      @@techTFQ am sure it correct and i try to reset new password but it still this error appears. can you help me? :(

    • @techTFQ
      @techTFQ  Před 2 lety +1

      Hi,
      I think you installed using the EDB method but I’ve seen some issue in it faced by some other people as well so can you uninstall this and then try to re-install using the Postgres.app method .. I think this will work

    • @lamaalsharyan5187
      @lamaalsharyan5187 Před 2 lety +1

      @@techTFQ thank you a looooooot
      my mistake was ther chick box i didnt check it when they want me enter the password :)

    • @techTFQ
      @techTFQ  Před 2 lety

      Ok 👍 glad it finally worked 😊

  • @surajgupta6962
    @surajgupta6962 Před rokem +2

    Easily Explained.

  • @pelussienta
    @pelussienta Před 3 lety +1

    i had the same mistake with the (13.1 version)

    • @techTFQ
      @techTFQ  Před 3 lety

      Are you also using Mac OS Big Sur?
      I imagined the issue to be due to Mac OS Big Sur and not with Postrges..

  • @hiteshvarma27
    @hiteshvarma27 Před měsícem

    getting error -> ERROR: syntax error at or near "Varchar"
    LINE 4: First Name Varchar (100) Not Null,

  • @anupprakash6545
    @anupprakash6545 Před 10 měsíci

    Your Video is awesome. Could you please share me the query. Notebook as well. thanks!

  • @pavanmunagasetty6930
    @pavanmunagasetty6930 Před rokem +1

    Pg admin fatal error why??

  • @ogunyemigodwin5690
    @ogunyemigodwin5690 Před 11 měsíci

    pgadmin is not responding,it giving a fatal error

  • @alvinguaba2091
    @alvinguaba2091 Před 7 měsíci

    top

  • @vikalpbhatt4382
    @vikalpbhatt4382 Před 7 měsíci

    Pg admin is not asking password when opened what to do?

  • @gopikrishnacheekati1689
    @gopikrishnacheekati1689 Před 4 měsíci

    username and password is what

  • @lv_music_creation3156
    @lv_music_creation3156 Před 2 lety +1

    kindly provide practices set