My Board
Fix Unable to Create PostgreSQL User or Database - Printable Version

+- My Board (https://ellohost.com/forum)
+-- Forum: Tutoriel EN (https://ellohost.com/forum/forumdisplay.php?fid=8)
+--- Forum: Others (https://ellohost.com/forum/forumdisplay.php?fid=20)
+--- Thread: Fix Unable to Create PostgreSQL User or Database (/showthread.php?tid=781)



Fix Unable to Create PostgreSQL User or Database - aaron - 09-10-2023



    Fix Unable to Create PostgreSQL User or Database

   

An incorrect command syntax often triggers PostgreSQL user and database creation errors. To fix it, ensure your command ends with a semicolon (;).


   

Also, you must run the command using the postgres user and the psql command line. To do so, run this command:


   
sudo -u postgres psql

   

If your Terminal shows the following, you should be able to create a user and database.


   
postgres=#