I also have development and production servers with the same database structure.
I changed the indexes to both of them, so I wanted to combine everything together. So I needed to compare the data with Notepad +.
Here's how you export indexes for all tables, all databases, and how to filter and compare them:
--- Single table: SHOW INDEX FROM mydb.mytable; SHOW INDEX FROM mytable; --- Multi tables, databases: USE information_schema; SELECT * FROM `statistics` ORDER BY TABLE_SCHEMA ASC, TABLE_NAME ASC, INDEX_NAME ASC;
Now phpMyAdmin -> Export to CSV-Excel:
add a title bar β delete all columns, but leave "database_name_table_name_table_value of the index column"
Then filter by database.
Copy everything from database1 to notepad + screen 1, excel database2 filter, copy everything to notepad + screen 2 β COMPARE!
Tarik
source share