You must assume the role of the postgres user from the superuser root.Īfter you have set the environment, you can start the PostgreSQL server with the following command as the postgres user: pg_ctl -D /Library/PostgreSQL/11/data -l logfile start bashrc file manually because the postgres user can’t connect directly to the server. bashrc file, which you’ll need to manually source. You can also add the previous line to the postgres user’s. You can use the following syntax to add the default directory to the existing $PATH environment: export PATH=$PATH:/Library/PostgreSQL/11/bin The commands are: sudo shĪs the postgres user, you need to set your $PATH environment variable to include the installation of PostgreSQL. You do that by opening a Terminal, assume the role of superuser root, and then connect as the postgres user. Then, I had to connect as the postgres user and start the server. I downloaded and installed the PostgreSQL Version 11. I navigated to the PostreSQL page to download the program. Started playing around with a native installation of PostgreSQL on my Mac OS X.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |