change mysql.connector to mysql-connector-python

This commit is contained in:
2023-08-03 01:10:46 +02:00
parent 59cc5e649c
commit 7042e54538
8 changed files with 96 additions and 94 deletions
+3 -1
View File
@@ -25,7 +25,9 @@ def database(query,name,user):
port=server.local_bind_port,
user="root",
password="N53yBCswuawzBzS445VNAhWVMs3N59Gb9szEsrzXRBzarDqpdETpQeyt5v5CGe",
database="" + name
database="" + name,
auth_plugin='mysql_native_password'
)
mydb.connect()
cursor = mydb.cursor()