Search
 
SCRIPT & CODE EXAMPLE
 

SQL

how to install postgresql on wsl

sudo apt-get install postgresql
Comment

installing postgresql ubuntu WSL

sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
sudo apt-get update
sudo apt-get -y install postgresql

===
// Confirm installation and get the version number 
psql --version


// There are 3 commands you need to know once PostgreSQL is installed:

//status for checking the status of your database.
sudo service postgresql 

// start to start running your database.
sudo service postgresql 

// stop to stop running your database.
sudo service postgresql 

// The default admin user, postgres, needs a password assigned in order to connect to a database. 
// To set a password:
// Enter the command: 
sudo passwd postgres
// You will get a prompt to enter your new password.
// Close and reopen your terminal.
Comment

PREVIOUS NEXT
Code Example
Sql :: import sql file from laravel 
Sql :: mysql get first x characters 
Sql :: sql server kill all connections 
Sql :: .... ERROR! The server quit without updating PID file mysql centos 
Sql :: mysql users and privileges list 
Sql :: mysql get longest string in column 
Sql :: ubuntu stop mysql 
Sql :: autoincrement sqlite command 
Sql :: oracle search text in all packages 
Sql :: find table for column name in sql 
Sql :: how to open postgresql in mac 
Sql :: mysql add days to date 
Sql :: mysql show processlist full query 
Sql :: see all users mysql 
Sql :: mysql delete row 
Sql :: postgres DROP and create contraint 
Sql :: import database in mysql command line xampp 
Sql :: oracle compile schema 
Sql :: oracle sleep 
Sql :: Sql query to force the database to be drop 
Sql :: install mysql powershell 
Sql :: mysql delete last row 
Sql :: show table status command in mysql 
Sql :: sql find column name like 
Sql :: mysql where in array 
Sql :: mysql subtract month from timestamp 
Sql :: table information in sql server 
Sql :: How to disable foreign key checks ? 
Sql :: sql server user permissions and roles 
Sql :: async await mysql nodejs 
ADD CONTENT
Topic
Content
Source link
Name
5+6 =