diff options
Diffstat (limited to 'database/mysql/mysql_user.py')
-rw-r--r-- | database/mysql/mysql_user.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/database/mysql/mysql_user.py b/database/mysql/mysql_user.py index 87e8318a..f3231c2f 100644 --- a/database/mysql/mysql_user.py +++ b/database/mysql/mysql_user.py @@ -339,7 +339,7 @@ def user_mod(cursor, user, host, host_all, password, encrypted, new_priv, append if old_user_mgmt: cursor.execute("SET PASSWORD FOR %s@%s = PASSWORD(%s)", (user, host, password)) else: - cursor.execute("ALTER USER %s@%s IDENTIFIED BY %s", (user, host, password)) + cursor.execute("ALTER USER %s@%s IDENTIFIED WITH mysql_native_password BY %s", (user, host, password)) changed = True # Handle privileges |