Desc | Host | Port | User | Pwd | DB |
---|---|---|---|---|---|
test | test_host | 3306 | test_user | test_pwd | test_db |
prod | prod_host | 3306 | marketplace_uat | prod_pwd | test_db |
for row in tab:
desc, host, port, user, pwd, db = tuple(row)
print(f'[{desc}]')
print(f'mycli -h {host} -P {port} -u {user} -p {pwd} -D {db} # mysql')
print(f'jdbc:mysql://{host}:{port}/{db}?autoReconnect=true&timeout=60s&collation=utf8mb4_unicode_ci&readTimeout=60s&writeTimeout=60s&timeout=60s')