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 :: get only structure database mysql 
Sql :: sql calculate percentage 
Sql :: disable trigger sql oracle 
Sql :: sql server set variable if exists 
Sql :: mysql order 
Sql :: how to use lower case in mysql 
Sql :: restore postgres database from dump 
Sql :: select top 10 rows in sql 
Sql :: join update query in sql 
Sql :: convert date to dd/mm/yyyy sql 
Sql :: install postgresql centos 5 
Sql :: oracle replace 
Sql :: change default schema sql server 
Sql :: sql limit results returned 
Sql :: postgresql create user 
Sql :: query less than datetime sql 
Sql :: SQL Auto Increment Primary Key - SQL Server 
Sql :: Query the list of CITY names from STATION that either do not start with vowels or do not end with vowels. Your result cannot contain duplicates. 
Sql :: sql drop default 
Sql :: get sql instance name 
Sql :: concatenate two strings in sql 
Sql :: mysql cdn link 
Sql :: postgresql set auto increment value 
Sql :: mysql export and import 
Sql :: oracle list datafiles 
Sql :: group_concat in mysql 
Sql :: space not removing from column in sql 
Sql :: mysql union 
Sql :: create table split string function in sql server 
Sql :: oracle apex view logs 
ADD CONTENT
Topic
Content
Source link
Name
7+4 =