def connectDB(i_host,i_user,i_password,i_database):
try:
i_connection_string = mysql.connector.connect(host=i_host,user=i_user,passwd=i_password,database=i_database)
return i_connection_string
except Exception as e:
raise Exception("status:'Failed","Exception:{}".format(e))
質問する
28 次