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 :: mysql select case insensitive 
Sql :: An error occurred while installing mysql (2.9.1), and Bundler cannot continue 
Sql :: restore backup "text" postgresql command line 
Sql :: change schema of all tables postgres 
Sql :: Create the connection pool mysql2 
Sql :: sql server datetime 
Sql :: postgresql port 5432 not open 
Sql :: google cloud sql postgres url example 
Sql :: Oracle filter date column by year 
Sql :: mysql create pool 
Sql :: change database postgres 
Sql :: Split JSON data in SQL Server column 
Sql :: date less than in sql 
Sql :: like query 
Sql :: mysql select inside sum 
Sql :: how to select multiple columns from different tables in mysql 
Sql :: sql server delete records with specific date 
Sql :: select count distinct multiple columns sql server 
Sql :: frename oracle 
Sql :: mysql default -temp password 
Sql :: fetlife 
Sql :: Write a PL/SQL to print even numbers upto 100. 
Sql :: postgres add prefix to primary key 
Sql :: select multiple tables mysql 
Sql :: check if user defined table type exists in sql server 
Sql :: mysql inner join 
Sql :: postgresql like 
Sql :: sql asc 
Sql :: copy data from one database to another 
Sql :: list all functions and procedures in postgres query 
ADD CONTENT
Topic
Content
Source link
Name
5+9 =