how to start postgresql in windows code example

Example 1: stpop start psql server

sudo service postgresql start
sudo service postgresql stop
sudo service postgresql restart

Example 2: how to open postgresql in windows

pg_ctl.exe restart -D  "C:\Program Files\PostgreSQL\9.6\data"

Example 3: how to open postgresql in windows

net start postgresql-9.5

Example 4: how to open postgresql in windows

pg_ctl.exe restart -D "<path upto data>"

Example 5: how to start postgresql laravel

;extension=pdo_pgsql;extension=pgsql

Example 6: how to start postgresql laravel

DB_CONNECTION=pgsqlDB_HOST=127.0.0.1DB_PORT=5432DB_DATABASE=database_nameDB_USERNAME=postgresDB_PASSWORD=your_choosen_password

Tags:

Sql Example