Skip to content

Instantly share code, notes, and snippets.

@pauloremoli
Last active February 26, 2025 16:18
Show Gist options
  • Save pauloremoli/df63304274477b74d3cd to your computer and use it in GitHub Desktop.
Save pauloremoli/df63304274477b74d3cd to your computer and use it in GitHub Desktop.
Create postgresql user Mac OS X

Create postgresql user Mac OS X

After installing the postgres app: http://postgresapp.com/

It will create a database user with the current username, to create another user for example 'postgres':

$ createuser postgres -s

Open psql with the created user using -U

$ psql postgres -U postgres

Change the password

$ ALTER USER postgres WITH PASSWORD 'my_password';

@0xjorgev
Copy link

Very helpful! thanks

@maxfarseer
Copy link

Thank you, Paulo!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment