DEV Community

Discussion on: MySQL to Postgres Migration using Docker with pgloader for Hasura

Collapse
 
prajapatisantu profile image
prajapatisantu

docker-entrypoint-initdb.d what mysql dump file name or something else?

Collapse
 
abhijeet_vhotkar profile image
Abhijeet Vhotkar

@prajapatisantu You do not need to do anything extra.
If you are in windows, then run the following command after both the containers of databases are up (Make sure run Powershell as administrator)

docker-compose exec postgres pgloader mysql://user:password@mysql:3306/database postgresql://postgres:root@localhost:5432/postgres
Enter fullscreen mode Exit fullscreen mode