Skip to content
This repository was archived by the owner on Oct 30, 2018. It is now read-only.

Commit 30fb384

Browse files
wouteroostervldjimi-c
authored andcommitted
mysql_user: fix user_mod on MySQL(-like) 5.7+ (Fixes #3003) (#5388)
1 parent 0cb32a7 commit 30fb384

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

database/mysql/mysql_user.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ def user_mod(cursor, user, host, host_all, password, encrypted, new_priv, append
339339
if old_user_mgmt:
340340
cursor.execute("SET PASSWORD FOR %s@%s = PASSWORD(%s)", (user, host, password))
341341
else:
342-
cursor.execute("ALTER USER %s@%s IDENTIFIED BY %s", (user, host, password))
342+
cursor.execute("ALTER USER %s@%s IDENTIFIED WITH mysql_native_password BY %s", (user, host, password))
343343
changed = True
344344

345345
# Handle privileges

0 commit comments

Comments
 (0)