[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

psql command

The postgres commands doesn’t work to an user account


I already created the user on postgres

desktop:~# su - postgres

postgres@desktop:~$ createuser -a -d oacsbr


and set on .bashrc





But somehow I can’t run any commands such as

oacsbr@desktop:~$ createdb -E UNICODE mytestdb

-su: createdb: command not found

oacsbr@desktop:~$ psql -l

-su: psql: command not found

oacsbr@desktop:~$ psql -l mytestdb.dmp mytestdb

-su: psql: command not found



Does anyone knows what I’ve missed?



Reply to: