Hello All.
I got a doubt.
In general, for updating remote database, we use ip address for the remote system.
Here, i would like to update two remote systems at a time.
I wrote the code like the below one.
Could anyone please give the correct advice and suggestions.
try:
import MySQLdb
import _mysql_exceptions as DB_EXC
ip = 8
while(ip <= 9):
cxn1 = MySQLdb.connect(host='10.0.2.9',host='192.168.1.2', db='navicat')
cur1 = cxn1.cursor()
cxn = MySQLdb.connect(user='root',db='navicat')
cur = cxn.cursor()
Regards
BHANU