Search
 
SCRIPT & CODE EXAMPLE
 

SQL

run postgres with docker

docker run -d --name postgres13 
    -v postgres_data:/var/lib/postgresql/data 
    -e POSTGRES_USER=postgres 
    -e POSTGRES_PASSWORD=postgres 
    -p 5432:5432 
    postgres:latest
Comment

docker run postgres locally

$ docker run -d --name my_postgres -v my_dbdata:/var/lib/postgresql/data -p 54320:5432 postgres:11
Comment

run postgres docker

$ docker run -d --name my_postgres -v my_dbdata:/var/lib/postgresql/data -p 54320:5432 -e POSTGRES_PASSWORD=my_password postgres:13
Comment

run psql postgres docker

docker exec -it <database_name> psql -U <username> -W <username>
Comment

PREVIOUS NEXT
Code Example
Sql :: postgresql set auto increment value 
Sql :: check if database exists sql 
Sql :: store select query result in variable sql server 
Sql :: get record which is available in one table but not in another mysql 
Sql :: clear screen command on mysql 
Sql :: mysql query single row 
Sql :: mysql count with if 
Sql :: mysql get last insert id 
Sql :: create a sqlite database c# 
Sql :: how to make a select in sql 
Sql :: how to insert ip address in mysql using php 
Sql :: mysql date range 
Sql :: postgresql resolv duplicate value violates unique constraint 
Sql :: mysql select into new table 
Sql :: how to copy data in sql 
Sql :: add primary key with auto increment to existing table column mysql 
Sql :: mysql get latest duplicate rows 
Sql :: copy value from one column to another postgres 
Sql :: oracle percentage 
Sql :: insensitive case match sqlalchemy 
Sql :: how to query date in sql server 
Sql :: output table plsql 
Sql :: mysql get all tables from a specific database 
Sql :: mysql permissions 
Sql :: convert multiple columns to rows in sql server 
Sql :: date in oracle 
Sql :: mysql to uppercase 
Sql :: how to change column name in mysql 
Sql :: add comma after 3 digits select sql 
Sql :: sql server remove primary key without dropping table 
ADD CONTENT
Topic
Content
Source link
Name
7+2 =