The postgres in the line 1 is the user and in line 2 is the database name. Now, as your database is up and running, you can now start playing with the actual database queries. $ launchctl load -w ~/Library/LaunchAgents/ $ cp /usr/local/Cellar/postgresql/9.2.1/ ~/Library/LaunchAgents/ In mac it’s a combination of few commands. You just need to start that and you are good to go. The installation command using apt-get already created a service named postgresql. Start in ubuntu/linux $ service postgresql start As we’ve installed postgres in two different ways in linux and mac, similarly to start the server also we need to run different kind of commands in two different OSs. Running / Starting the database serverīefore anyone uses the database, it’s necessary to start the server. The installation of postgresql is done now. #the above command to install xcode will throw you graphical UI to operate.Īfter having homebrew in your mac, you can go ahead to install postgresql by running the following commands. If you don’t have homebrew already installed, you can run the following commands to install that. in MacĪs mac doesn’t have apt-get, we can go with other package managers like homebrew and mackports. It may ask for admin rights and you may have to run these with sudo. in ubuntu/linux $ apt-get install postgresql I am showing you steps to install from terminal. You can download the appropriate setup from official site and clicking is enough. Graphical installation in any OS is relatively easier. This will also show you how to write the first query, so that after finishing the article you get all set to start using postgresql. This article describes the installing and starting the postgresql in simple steps.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |