diff --git a/postgres.md b/postgres.md index c61b2552..a6df214e 100644 --- a/postgres.md +++ b/postgres.md @@ -2,14 +2,14 @@ title: Postgres description: published: true -date: 2019-10-09T09:05:14.198Z +date: 2019-10-09T09:23:50.157Z tags: --- # Postgres -[Create new user](https://www.a2hosting.com/kb/developer-corner/postgresql/managing-postgresql-databases-and-users-from-the-command-line) +## [Create new user](https://www.a2hosting.com/kb/developer-corner/postgresql/managing-postgresql-databases-and-users-from-the-command-line) * At the command line, type the following command as the server's root user: `su - postgres` @@ -23,4 +23,8 @@ tags: * At the Shall the new role be a superuser? prompt, type y if you want to grant superuser access. Otherwise, type n. * At the Shall the new role be allowed to create databases? prompt, type y if you want to allow the user to create new databases. Otherwise, type n. * At the Shall the new role be allowed to create more new roles? prompt, type y if you want to allow the user to create new users. Otherwise, type n. -* PostgreSQL creates the user with the settings you specified. \ No newline at end of file +* PostgreSQL creates the user with the settings you specified. + +## Create Db + +`createdb -O $User $Db` \ No newline at end of file