|
|
@ -2,8 +2,9 @@ import os |
|
|
|
import subprocess |
|
|
|
import subprocess |
|
|
|
import pymysql |
|
|
|
import pymysql |
|
|
|
from update.utils.git_util import GitUtil |
|
|
|
from update.utils.git_util import GitUtil |
|
|
|
from dingxin_toolbox_drf.settings import BASE_DIR |
|
|
|
from dingxin_toolbox_drf.settings import BASE_DIR, CONFIG |
|
|
|
from update.utils.git_util import GitUtil |
|
|
|
from update.utils.git_util import GitUtil |
|
|
|
|
|
|
|
from env import ENV |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class DbCompare: |
|
|
|
class DbCompare: |
|
|
@ -33,10 +34,10 @@ class DbCompare: |
|
|
|
# serv_pwd = 'cine123456' |
|
|
|
# serv_pwd = 'cine123456' |
|
|
|
# serv_port = '3306' |
|
|
|
# serv_port = '3306' |
|
|
|
|
|
|
|
|
|
|
|
serv_host = '172.16.3.112' |
|
|
|
serv_host = CONFIG[ENV]['DB']['HOST'] |
|
|
|
serv_user = 'test' |
|
|
|
serv_user = CONFIG[ENV]['DB']['USER'] |
|
|
|
serv_pwd = 'cine123456' |
|
|
|
serv_pwd = CONFIG[ENV]['DB']['PASSWORD'] |
|
|
|
serv_port = '3306' |
|
|
|
serv_port = CONFIG[ENV]['DB']['PORT'] |
|
|
|
|
|
|
|
|
|
|
|
server_1 = f'--server1={serv_user}:{serv_pwd}@{serv_host}:{serv_port}' |
|
|
|
server_1 = f'--server1={serv_user}:{serv_pwd}@{serv_host}:{serv_port}' |
|
|
|
server_2 = f'--server2={self.target_user}:{self.target_pwd}@{self.target_server}:{self.target_port}' |
|
|
|
server_2 = f'--server2={self.target_user}:{self.target_pwd}@{self.target_server}:{self.target_port}' |
|
|
|