how to migrate data from old postgres db to new postgres db with new design in a docker container using pgadmin4 - data-migration

I want to migrate data from an a postgres db to a new postgres db using docker
Expecting steps to migrate data to a new postgres db with new design

Related

How can a java application running within a Fargate container connect to Aurora Postgresql db?

We have a java application running in a Fargate container and this application needs to connect and have limited access to the Aurora Postgesql DB.
How can this java application connect to Aurora Postgres DB?
I thought of creating a user account within the db and assigning policies but I need this to be done using Terraform.
Is my approach right? if yes how do we create a user account in Aurora Postgresql db using Terraform.

multiple database pools to different databases in actix-web

How do I support multiple database pools to different databases in actix-web? I am currently using this:
// database pool for postgres db1
cfg.add_data(web::Data::new(pool.clone));
and I am able to connect to database db1. How do I add another database pool to a different database (db2 - postgres)?
I am using actix-web 4.x and deadpool-postgres.

How do you deploy a Mongodb database with Nodejs

I have a working web app with MongoDB database. My app is making fetching/posting info onto the database running on a localhost
const db = monk('localhost/datbaseName') //create/connect to database 'databaseName'
const posts = db.get('posts') //created a collection named 'posts' in 'databaseName'
I recently setup a database Cluster on mongoDB Atlas. Is there a way to now connect my code to the Atlas cluster database, instead of using localhost/datbaseName ?
replace
'localhost/datbaseName' with
mongodb+srv://username:password#cluster0-1eyxe.mongodb.net/datbasename?retryWrites=true&w=majority
it will connect you with atlas cluster.
I don't know much about using MongoDB Atlas but a very simple way of deploying your mongo database is to use mlab. You can check them out at https://mlab.com
after logging in to your mlab account click on "create new"
select amazon web services as your cloud provider and also select a free sandbox then hit continue
pick us virginia east and hit continue
give the database a name and then submit your order
once you have completed all that click on the database you just created
click on the users tab and add a database user. over here provide a username and password for the database. you will need this in setting up your mongo connection.
after that is complete you can then copy the mongouri shown and replace the relevant fields with your username and password
You are directed to mongodb atlas because mlab has been acquired by mongodb only. I would suggest you to create a cluster on mongodb atlas. You can signup for a free M0 cluster from https://www.mongodb.com/cloud/atlas/
Sign up and then click on create cluster.
You can refer to documentation for creating a new cluster here : https://docs.atlas.mongodb.com/tutorial/create-new-cluster/index.html
and let me know in case you need more help in setting up the cluster

Sync data from couch DB to MongoDB

In my application i am using couch db for the temporary storage for offline feature. For permanent storage i am using Mongodb in my application. Is it possible to sync data from couch db to Mongodb ?
Please suggest

Running Docker Oracle Container with different databases

i want to realize the following scenario:
create a basic Oracle XE Docker container(no database inside)
connect this container with a database file backup container
remove the database file container and connect to another file container
Its not very useful when i create a oracle xe container with a not exexchangeable database, because then i had 20 container, each has a size of 2,5gb.
Is there a way to do this ? In my understanding, you can link container.
So i had to create container for each database version i have and link the oracle container with the container of the database backup file. But how i can tell docker, that i want to install the backup file from one container in the oracle container, and how can i easily exchange this?

Resources