开发者

Local postgresql server and creating new user on linux

开发者 https://www.devze.com 2023-01-22 08:06 出处:网络
I installed postgresql via synaptic on ubuntu. 开发者_JS百科Now I dont know how to create new user, run server andcreate it in pgAdmin3.Use this to create a postgres user called $USER:

I installed postgresql via synaptic on ubuntu.

开发者_JS百科

Now I dont know how to create new user, run server and create it in pgAdmin3.


Use this to create a postgres user called $USER:

sudo -u postgres createuser --superuser $USER

Creating a DB with the same name as your user name makes things easier. It becomes your default DB.

createdb $USER

Use this to set a password for USER. This must be done for pgadmin3 to work.

sudo -u postgres psql
postgres=# \password USER
0

精彩评论

暂无评论...
验证码 换一张
取 消