I need compare the structure of two MySQL databases and something show me what is the difference between they.
Anyone knows any way for this?
Thank you in advance.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you are looking to confirm the structures are identical, then one rudimentary way to do this is to run a
mysqldump --no-dataon each database, and then compare the output files, using e.g.diff. That’s not necessarily the best way to do it, but if you are just checking to see if there are any differences, then it’s workable.I use a third-party tool (DB Solo) to perform schema compares, this produces output in a much more robust format/interface, and is useful when there are lots of differences and I want to visualize/investigate.
(I have the community edition of SQLyog; I believe the Enterrprise edition has a Schema Synchronization tool.)