pgloader not copying data from mysql 8 to postgresql

 Database is already created in Postgres.

pgloader mysql://user:password@localhost/mydb postgresql://user:password@localhost/mydb

You can also use a load file to make the tables public after import.

Add this to a file (e.g load_file.load):

LOAD DATABASE
   FROM mysql://root:mysql@localhost/from_db_name 
   INTO postgresql://localhost/to_db_name
ALTER schema 'to_db_name' rename to 'public';

And run:

$ pgloader load_file.load

Comments

Post a Comment

Popular Posts

How to pass hash in Postman

nginx: unrecognized service

Bootstrap Select Picker append add new item if search not exist

Reading Excel Sheets using "Roo" gem in ruby on rails

Add CORS to Nginx on AWS Elastic Beanstalk

Enable gzip compression on Elastic Beanstalk with nginx

Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock'

Get video duration by URL in Ruby on Rails

site-enables nginx setting in ruby in rails