MySQL pooling not required
This commit is contained in:
parent
70f25744c3
commit
bac08e5e08
@ -1,6 +1,6 @@
|
|||||||
import mysql.connector
|
import mysql.connector
|
||||||
from mysql.connector import errorcode
|
from mysql.connector import errorcode
|
||||||
import mysql.connector.pooling
|
#import mysql.connector.pooling
|
||||||
|
|
||||||
class useMYSQL:
|
class useMYSQL:
|
||||||
#Init new object
|
#Init new object
|
||||||
@ -20,8 +20,8 @@ class useMYSQL:
|
|||||||
user=self.user,
|
user=self.user,
|
||||||
password=self.password,
|
password=self.password,
|
||||||
database=self.database,
|
database=self.database,
|
||||||
pool_name = "hblink_master",
|
# pool_name = "hblink_master",
|
||||||
pool_size = 2
|
# pool_size = 2
|
||||||
)
|
)
|
||||||
except mysql.connector.Error as err:
|
except mysql.connector.Error as err:
|
||||||
if err.errno == errorcode.ER_ACCESS_DENIED_ERROR:
|
if err.errno == errorcode.ER_ACCESS_DENIED_ERROR:
|
||||||
|
Loading…
Reference in New Issue
Block a user