Skip to content

Commit

Permalink
Update initialize.sql
Browse files Browse the repository at this point in the history
  • Loading branch information
nimmolo committed Dec 28, 2024
1 parent 16dccbd commit 754fe72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion db/initialize.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 754fe72

Please sign in to comment.