From 754fe72238d594a0220ff977a557b322a520f488 Mon Sep 17 00:00:00 2001 From: andrew nimmo Date: Fri, 27 Dec 2024 22:22:52 -0500 Subject: [PATCH] Update initialize.sql --- db/initialize.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/initialize.sql b/db/initialize.sql index 036891c207..52d0cee911 100644 --- a/db/initialize.sql +++ b/db/initialize.sql @@ -20,7 +20,7 @@ create procedure createUser(username varchar(50), pw varchar(50)) begin IF (SELECT EXISTS(SELECT 1 FROM `mysql`.`user` WHERE `user` = username)) = 0 THEN begin - set @sql = CONCAT('CREATE USER ', username, '@\'localhost\' IDENTIFIED WITH mysql_native_password BY \'', pw, '\''); + set @sql = CONCAT('CREATE USER ', username, '@\'localhost\' IDENTIFIED WITH caching_sha2_password BY \'', pw, '\''); prepare stmt from @sql; execute stmt; deallocate prepare stmt;