Q:

Issues while Installing bugzilla in windows server

I'm trying to install bugzilla 5 in windows server. (Why do people still use windows during development? :( ). I'm with linux most of the time and I'm unable to understand official instructions for installing bugzilla in windows. I'm following this official page for installing bugzilla. I'm configuring postgresql for bugzilla by using this link.
I'm able to log into postgresql from terminal as shown here:

Then I ran this command:  
createuser -U postgres -dRSP bugs  

Then I got this error:  
ERROR: syntax error at or near "createuser"  
LINE1: createuser -U postgres -dRSP bugs  

How can I create a new user bugs and assign him/her certain permissions? New user (bugs) will not be a superuser (-S) and will not be able to create new users (-R). He/She will only have the ability to create databases (-d).

A:

I assume, you have already connected to postgres database and need to run smth like this CREATE ROLE roleName LOGIN SUPERUSER PASSWORD 'passwd'; for createuser use the documentation

