
Databases
How to Move Data Between SQLite MySQL and PostgreSQL
Move data between SQLite, MySQL and PostgreSQL from the shell: dumps and their dialect problems, CSV as the neutral format, type mapping, pgloader and checks.
6 min read
Tag
3 posts

Move data between SQLite, MySQL and PostgreSQL from the shell: dumps and their dialect problems, CSV as the neutral format, type mapping, pgloader and checks.

Fix PostgreSQL role does not exist: createuser, psql defaults to your OS user, the missing database error, quoting case-sensitive names and idempotent setup.

Fix PostgreSQL peer authentication failed for user: pg_hba.conf rules, Unix socket versus TCP, matching OS and database user names, and a safe change.