import mysql.connector
from mysql.connector.constants import ClientFlag

print ("MySQL connector module import succeed")

config = {
	'user':'root',
	'password':'root',
	'host':'35.229.99.14',
	'client_flags':[ClientFlag.SSL],
	'database':'room1',
	'ssl_ca':'/home/pi/server-ca.pem',
	'ssl_cert':'/home/pi/client-cert.pem',
	'ssl_key':'/home/pi/client-key.pem',
}

conn = mysql.connector.connect(**config)

conn.close()


d141bb4118adbe017f54e9013e07ab5218d2fa55
<mask token>

<mask token>
print('MySQL connector module import succeed')
<mask token>
conn.close()

<mask token>
print('MySQL connector module import succeed')
config = {'user': 'root', 'password': 'root', 'host': '35.229.99.14',
    'client_flags': [ClientFlag.SSL], 'database': 'room1', 'ssl_ca':
    '/home/pi/server-ca.pem', 'ssl_cert': '/home/pi/client-cert.pem',
    'ssl_key': '/home/pi/client-key.pem'}
conn = mysql.connector.connect(**config)
conn.close()

import mysql.connector
from mysql.connector.constants import ClientFlag
print('MySQL connector module import succeed')
config = {'user': 'root', 'password': 'root', 'host': '35.229.99.14',
    'client_flags': [ClientFlag.SSL], 'database': 'room1', 'ssl_ca':
    '/home/pi/server-ca.pem', 'ssl_cert': '/home/pi/client-cert.pem',
    'ssl_key': '/home/pi/client-key.pem'}
conn = mysql.connector.connect(**config)
conn.close()

import mysql.connector
from mysql.connector.constants import ClientFlag

print ("MySQL connector module import succeed")

config = {
	'user':'root',
	'password':'root',
	'host':'35.229.99.14',
	'client_flags':[ClientFlag.SSL],
	'database':'room1',
	'ssl_ca':'/home/pi/server-ca.pem',
	'ssl_cert':'/home/pi/client-cert.pem',
	'ssl_key':'/home/pi/client-key.pem',
}

conn = mysql.connector.connect(**config)

conn.close()

