Change mysql auth
This commit is contained in:
parent
e469b6fce0
commit
a4b1c79cde
1
main.py
1
main.py
@ -32,7 +32,6 @@ def query(query:str):
|
||||
async def get_reference(questions):
|
||||
res = query(questions)
|
||||
new = []
|
||||
print(res)
|
||||
for i in res:
|
||||
if not mysql_connector.is_loaded(i['id']):
|
||||
new.append(i)
|
||||
|
@ -9,7 +9,8 @@ mysql_config = {
|
||||
'password': __CONFIG__['mysql_password'],
|
||||
'host': __CONFIG__['mysql_host'], # Typically 'localhost' if the database is on the same machine
|
||||
'database': 'fastdoi',
|
||||
'raise_on_warnings': True
|
||||
'raise_on_warnings': True,
|
||||
'auth_plugin':'mysql_native_password'
|
||||
}
|
||||
|
||||
# Establish a connection to the MySQL database
|
||||
|
Loading…
Reference in New Issue
Block a user