dbForge Schema Compare for MySQL allows ignoring user differences and object permissions when synchronizing two databases.
The configured schema comparison settings can be saved as a .scomp file for future use, allowing for the automation of schema comparison and synchronization tasks from the command line.
To save the project settings:
1. On the Options page of the New Schema Comparison wizard, select the Ignore permissions checkbox. Note that selecting this option will automatically activate the Ignore users’ permissions option.
2. Click Compare to run the comparison.
3. On the toolbar, click Save to save the project as a .scomp file.
To use the settings of the .scomp file in the command line, provide a path to it after the /compfile
argument.
"C:\Program Files\Devart\dbForge Compare Bundle for MySQL\dbForge Schema Compare for MySQL\schemacompare.com" /schemacompare /compfile:"D:\comparison-file.scomp" /sync
where D:\comparison-file.scomp is the path to the .scomp file.