Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

create mysql pool connection python flask

from mysql.connector import pooling

try:
    connection_pool = pooling.MySQLConnectionPool(pool_name="pynative_pool",
                                                  pool_size=1,
                                                  pool_reset_session=True,
                                                  host='localhost',
                                                  database='python_db',
                                                  user='pynative',
                                                  password='pynative@#29')
Source by pynative.com #
 
PREVIOUS NEXT
Tagged: #create #mysql #pool #connection #python #flask
ADD COMMENT
Topic
Name
9+4 =