Skip to content
Advertisement

pgloader not importing data from MySQL to Postgres

I tried the following command and it returns no errors but the data is not imported in my postgres database.

Database is already created in Postgres.

This is the result:

When I login to psql to look for the data, its not there. For example, for the table users 2 records were supposed to be imported as mentioned above by pgloader, but this is the result:

What is going wrong?

Advertisement

Answer

I assume due to the difference in terminology (mysql schema is what postgres takes as database) you have your tables loaded to mydb schema, not public. the list with “prefix” in table name gave this idea. so in order to find your data loaded – specify schema name before table name , eg

should return 17 rows – imported with pgloader

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement