MCPcopy Create free account
hub / github.com/apecloud/myduckserver / connect

Method connect

compatibility/mysql/python/mysql_test.py:40–49  ·  view source on GitHub ↗
(self, ip, port, user, password)

Source from the content-addressed store, hash-verified

38 self.tests = []
39
40 def connect(self, ip, port, user, password):
41 try:
42 self.conn = mysql.connector.connect(
43 host=ip,
44 port=port,
45 user=user,
46 password=password
47 )
48 except Exception as e:
49 raise RuntimeError(e)
50
51 def disconnect(self):
52 self.conn.close()

Callers 1

mysql_test.pyFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected