E
E
evilelf2015-12-14 21:53:32
MySQL
evilelf, 2015-12-14 21:53:32

How to migrate database structure?

There are 2 MySQL databases.
Tables have an innodb engine.
How to automatically or quickly migrate the structure of one database to the structure of another database?
If you don't know what has been changed.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Stalker_RED, 2015-12-14
@evilelf

There is already a lot of software out there.
The simplest option is to dump the structure from both bases and compare at least with a diff.
Here are different options, from a simple hundred-line script to more serious solutions.
Some tools can generate migrations right away. In my opinion, DbVisualizer can.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question