10 PostgreSQL Commands for Developers

10 PostgreSQL Commands for Developers

Windows

Start Postgres SQL Server

"pg_ctl" -D "<datafolderpath>" -l logfile start

PostgreSQL Initialize Database

Navigate to ...\pgsql\bin\ and type the following command

initdb.exe <datafolderpath>


PostgreSQL Create Database

Navigate to ...\pgsql\bin\ and type the following command

createdb databasename<enter>

PostgreSQL Create User

Navigate to ...\pgsql\bin\ and type the following command

createuser username<enter>

PostgreSQL Create Role

Navigate to ...\pgsql\bin\ and type the following command

createuser username<enter>

Share this

Related Posts

Previous
Next Post »