Commit d6e46f5f authored by j38560's avatar j38560

Added basic diff script

parent 56be8de1
#!/bin/bash
ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
source $ROOT/set_env.sh
source $ROOT/functions.sh
mysqldbcompare --skip-data-check --server1=[email protected]$SOURCE_IP --server2=[email protected]$TARGET_IP db1:db2 --changes-for=server2 -a --difftype=sql > $ROOT/../changes.sql
echo "Differences:
echo "##########################"
echo `cat $ROOT/../changes.sql`
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment