How to Install PostgreSql in Mac M1/M2 | Configure and Install 2023

Поделиться
HTML-код
  • Опубликовано: 2 окт 2024
  • In this Video, We're going to see How We Can Download & install PostgreSQL 15 on MAC OS M1/M2 Machines.
    Postgresql Website - www.postgresql...
    To Download the PostgreSQL Installer URL - postgresapp.co...
    After Downloading and Copying the PostgreSQL.app in Applications Folder.
    MySQL Commands -
    First We Need to Open the Terminal and Write PostgreSQL Config Command - sudo mkdir -p /etc/paths.d &&
    echo /Applications/Postgres.app/Contents/Versions/latest/bin | sudo tee /etc/paths.d/postgresapp
    Now Close the Terminal. And Open Again
    Command to Check Databases - \list
    PostgreSQL Command to Create Database - create database database_name;
    Use Specific Database - \c database_name;
    #postgresql #pgadmin #sql

Комментарии • 57

  • @AnaJulia-hv5yw
    @AnaJulia-hv5yw Год назад +3

    This was very helpfel! I was struggling a lot before following your tutorial. Very clear instructions, thank you very much!

  • @din_ian
    @din_ian Год назад +3

    After 6 hours of agony, I found your video. Thank you!

  • @abhinavmahajan6519
    @abhinavmahajan6519 2 месяца назад

    Thanks a lot man. Was stuck for hours. After having used EDB installer and brew and what not.

  • @SuryanshThakur-y1s
    @SuryanshThakur-y1s Год назад +1

    Much Help Thanks a ton

  • @mtbmtbmtbcycle8797
    @mtbmtbmtbcycle8797 11 месяцев назад

    thank you for making this video, very helpful

  • @SaraikornS.
    @SaraikornS. Год назад

    Your video is very helpful! thank you so much.

  • @abdulmagomedov
    @abdulmagomedov 6 месяцев назад

    Thank you very much!

  • @Apopjak
    @Apopjak Год назад +5

    I was having hard dificulties to install postgres, I tried milion videos, all were bs. you have the best one thanks man

  • @andersontiban5356
    @andersontiban5356 Год назад

    Amazing

  • @a62401
    @a62401 11 месяцев назад

    Thank you !

  • @sandeepgoswami7891
    @sandeepgoswami7891 7 месяцев назад

    While installation it did not create my user database as i can see only 2 database as postgres and template1 and while connecting its giving me error role " " doesn’t exist. can anyone help with this?

  • @TheCodeWhisperer0o0
    @TheCodeWhisperer0o0 4 месяца назад

    what is the difference of this postgres app vs the other downloading method installer??!

  • @peshutanpavri1599
    @peshutanpavri1599 Год назад +1

    Hey I am new to PostGRESQL, Is this better than installing with Homebrew ?

    • @prashantrana546
      @prashantrana546  Год назад +1

      You can also go ahead with Homebrew Installation

    • @peshutanpavri1599
      @peshutanpavri1599 Год назад

      @@prashantrana546 I ended up using the app, there are some issues with version 15 as it’s keg only, I thought it might be easier, I just hope it’s easier to administer because if using the app is more limited then I can do brew
      Thank you so much though 🙏

  • @techie_teko8923
    @techie_teko8923 11 месяцев назад +1

    how do you connect it with pgAdmin 4 ?

    • @prashantrana546
      @prashantrana546  11 месяцев назад

      I've directly ran it though mac terminal, pgAdmin I'll create 1 separate video, Stay tuned!

  • @gandhamhemanth5083
    @gandhamhemanth5083 Месяц назад

    terminal isn't opening for me

  • @TerenceKearns
    @TerenceKearns 7 месяцев назад

    This is great. Couldn't be easier. I had no idea this project existed. I was able to get up and running to us PG for Davinci Resolve (my main reason for installing it). I'm gonna try PgAdmin now. Thanks.

  • @erickarias7619
    @erickarias7619 Год назад +1

    What is the default password when first installing Postgres on MacOS Ventura?
    And if it has a default password, how do you change it?
    In order to use it in the Backend

    • @prashantrana546
      @prashantrana546  Год назад

      For most systems, the default Postgres user is postgres and a password is not required for authentication.

  • @TheMaxKids
    @TheMaxKids Год назад

    unfortunately, PyCharm Pro on my M1 can't talk to Postgres!

  • @jamband64
    @jamband64 Год назад +1

    Thank you very much for such a straightforward explanation. Very much appreciated!

  • @AliyProgrammer
    @AliyProgrammer 5 месяцев назад

    I did your guide but after running psql it gives me path denied error how to fix that

    • @prashantrana546
      @prashantrana546  5 месяцев назад

      Can you check is your postman running on port 5432. Using Command -> netstat -an | grep 5432 will tell you if it is listening.

  • @inglescombrunofernandes
    @inglescombrunofernandes Год назад +1

    LIFE SAVER. You are brilliant, sir! Thank you.

  • @WestYT
    @WestYT Год назад +1

    Thank you so much!!!

  • @SravaniNamburu
    @SravaniNamburu Год назад

    Hi, when I select 'Initialize' I am receiving this popup and I am not able to do anything. "Port 5432 is already in use. Usually this means that there is already a PostgreSQL server running on your Mac. If you want to run multiple servers simultaneously, use different ports." Could you please respond to this?

    • @SravaniNamburu
      @SravaniNamburu Год назад

      I got this error because of the previously installed postgres using homebrew. In my case, I previously installed version 15 of postgresql. so use this to resolve the error, "brew services stop postgresql@15". It worked!

  • @chaitanyamc
    @chaitanyamc Год назад

    They changed the command or what !!! 🤣🤣🤣

  • @s.bamahfoodh
    @s.bamahfoodh Год назад

    man, I love you.. seriously I do

  • @iamankitpuri
    @iamankitpuri Год назад +1

    Was waiting for your video.

  • @mofee6245
    @mofee6245 Год назад

    thank you very much, but I have a problem. I copied the code in step 3 and paste it into the terminal, then I closed the terminal just like you showed in your video, but when I want to type "psql" to open the databank , the response is command not found. Can you may help me please .

    • @prashantrana546
      @prashantrana546  Год назад

      Can you try using psql -U postures, and make sure your postgresql has been started

  • @saeedrila
    @saeedrila Год назад

    Hi Prashant Rana,
    I am getting a 'your profile can not be used because it is from a newer version of nw.js' and not able to see the databases as you mentioned in the video. Could you please help me on this?

    • @prashantrana546
      @prashantrana546  Год назад +1

      After Installing and Starting the SQL, rather than doing with existing databases, Could you try creating with a new DB

    • @saeedrila
      @saeedrila Год назад +1

      Hey @@prashantrana546 , Thanks for your reply.
      I am only able to create or register servers. I am working with the Databases for the first time, not sure how to make this work.

    • @prashantrana546
      @prashantrana546  Год назад +2

      I have provided commands in the video desc, where you can see commands to create database and further tables in postrgresql

  • @rauldearia334
    @rauldearia334 5 месяцев назад

    thank you!

  • @youssefelassaoui9111
    @youssefelassaoui9111 10 месяцев назад

    very helpful , thank u sir

  • @Razumist
    @Razumist Год назад

    spasibo

  • @expectations2188
    @expectations2188 Год назад

    What is the password for my user? I tried with macbook login password. It doesnot work

    • @prashantrana546
      @prashantrana546  Год назад

      Bydefault no password is required in postgres while logging into system. If it's prompting can you check, have you earlier installed any versions of postgres. If not then this could be due to the reason that you installed postgres previously from other sources and then tried uninstalling. It did leave postgres user account on your system. Go to user & accounts from system preferences. From there, remove the postgres user account. Now restart and then try installing with brew. This should work.

  • @basilihuoma5300
    @basilihuoma5300 Год назад

    Thanks for this, Appreciate it

  • @tobiasm161
    @tobiasm161 9 месяцев назад

    perfect thx!

  • @users705
    @users705 Год назад

    Thank you, it turned out pretty simple.

  • @me_a_65_anuragkumar33
    @me_a_65_anuragkumar33 Год назад

    SIR WHERE TO WRITE THE SQL COMMAND

  • @GabrielaMaureira
    @GabrielaMaureira 10 месяцев назад

    So simple. Thanks.

  • @2010aristoteles
    @2010aristoteles Год назад

    Thanks

  • @simone-tp3fy
    @simone-tp3fy Год назад

    thanks mate

  • @yt-zi1pb
    @yt-zi1pb Год назад

    I can't connect sql until now