create mysql pool connection python flask

Solutions on MaxInterview for create mysql pool connection python flask by the best coders in the world

showing results for - "create mysql pool connection python flask"
Salvatore
14 Aug 2020
1from mysql.connector import pooling
2
3try:
4    connection_pool = pooling.MySQLConnectionPool(pool_name="pynative_pool",
5                                                  pool_size=1,
6                                                  pool_reset_session=True,
7                                                  host='localhost',
8                                                  database='python_db',
9                                                  user='pynative',
10                                                  password='pynative@#29')