Skip to content

Commit b11b666

Browse files
authored
Merge pull request #84 from ISISComputingGroup/Ticket8534
Use caching_sha2_password
2 parents b2dbaca + f38fe46 commit b11b666

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/common_upgrades/sql_utilities.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def add_new_user(logger, user, password):
115115
try:
116116
run_sql(
117117
logger,
118-
"CREATE USER {} IDENTIFIED WITH mysql_native_password BY '{}';".format(user, password),
118+
"CREATE USER {} IDENTIFIED WITH caching_sha2_password BY '{}';".format(user, password),
119119
)
120120
run_sql(logger, "GRANT INSERT, SELECT, UPDATE, DELETE ON exp_data.* TO {};".format(user))
121121
return 0

0 commit comments

Comments
 (0)