Menu

Copying a MySQL Database into PostgreSQL, and Four Checks That Prove It Arrived
πŸ“°

Copying a MySQL Database into PostgreSQL, and Four Checks That Prove It Arrived

DEV Community: mysqlΒ·Evgenii TimofeevΒ·4 days ago
#xGGYKLvj
#devtomysql#devto#dev#mysql#table
Long article (1051 words) β€” no AI summary yet.
Reading 0:00
15s threshold

We walked our MySQL setup guide end to end against a small online-store database: 50 sellers, 500 goods, 2,000 orders and 4,632 order items. The destination was PostgreSQL. One run later, the run page reported Rows 7182 .

That number is the pipeline's report about itself. It is the right place to start and the wrong place to stop, because a load can finish, report a plausible total and still not have moved what you meant. Here are the four checks we ran against the two databases themselves, and what each one can catch that the others cannot.

The setup, in three decisions

A read-only user, granted on the whole database.

CREATE USER 'datanika_readonly' @ '%' IDENTIFIED BY '<strong-password>' ; GRANT SELECT ON online_store . * TO 'datanika_readonly' @ '%' ; FLUSH PRIVILEGES ;

Enter fullscreen mode

Exit fullscreen mode

A grant on online_store.* is a database-level privilege, so it also covers tables created after you run it.…

Continue reading β€” create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.