title: createdb: could not connect to database template1: FATAL: password authentication failed for user
body: <p>Installed Postgresql via Homebrew. I wanted to create a new database after unzipping a ".tar". But I have this problem. </p>
  
  <blockquote>
    <p>Michael-Adelekes-MacBook:wikiful madeleke13$ sudo su postgres -c
    'createuser-P--superuser madeleke13'</p>
    
    <p>bash: createuser-P--superuser: command not found</p>
    
    <p>Michael-Adelekes-MacBook:wikiful madeleke13$ sudo su postgres -c
    'createuser-P-superuser madeleke13'</p>
    
    <p>bash: createuser-P-superuser: command not found</p>
    
    <p>Michael-Adelekes-MacBook:wikiful madeleke13$ sudo su postgres -c
    'createuser -P --superuser madelek13'</p>
    
    <p>Password: Enter password for new role:  Enter it again: </p>
    
    <p>Michael-Adelekes-MacBook:wikiful madeleke13$ createdb -T template0</p>
    
    <p>newdbPassword:<br>
    Password: </p>
    
    <p>createdb: could not connect to database template1: FATAL:  password
    authentication failed for user "madeleke13"</p>
    
    <p>Michael-Adelekes-MacBook:wikiful madeleke13$</p>
  </blockquote>
  
  <p>I am not understanding why I'm unable to authenticate my username when I have had no problems before. </p>