vim /usr/bin/yum
#!/usr/bin/python2vim /usr/libexec/urlgrabber-ext-down
#!/usr/bin/python2
使用mysqldiff
对比数据库
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
[root@dev127 ~]# mysqldiff --server1=root:123456@localhost --server2=root:123456@localhost paoshangdb:paoshangdb_zp# WARNING: Using a password on the command line interface can be insecure.# server1 on localhost: ... connected.# server2 on localhost: ... connected.# WARNING: Objects in server1.paoshangdb but not in server1.paoshangdb_zp:# TABLE: t_formationitem_change_reocrd# PROCEDURE: p_gm_init_hero_test# PROCEDURE: p_gm_init_hero_test_formation_todel# PROCEDURE: p_test# PROCEDURE: p_gm_init_hero_test_todel# PROCEDURE: p_gm_init_hero_test_formation_old# WARNING: Objects in server1.paoshangdb_zp but not in server1.paoshangdb:# TABLE: t_zong_task_guan_config# PROCEDURE: p_zongtask_guan_eventgroup_config# Compare failed. One or more differences found.
对比表
1
2
3
4
5
6
[root@dev127 ~]# mysqldiff --server1=myb:123456@localhost --server2=myb:123456@localhost paoshangdb.t_account:paoshangdb_zp.t_account# WARNING: Using a password on the command line interface can be insecure.# server1 on localhost: ... connected.# server2 on localhost: ... connected.# Comparing paoshangdb.t_account to paoshangdb_zp.t_account [PASS]# Success. All objects are the same.