From da6703e5d1bfd09121bb857c22335c73b6d9474a Mon Sep 17 00:00:00 2001 From: Justin Date: Thu, 23 May 2024 15:07:21 -0700 Subject: [PATCH] Modify init.sql to use legacy authentication --- server/db/init.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/db/init.sql b/server/db/init.sql index be7e978..c1ef91f 100644 --- a/server/db/init.sql +++ b/server/db/init.sql @@ -1,9 +1,9 @@ CREATE DATABASE IF NOT EXISTS myclassroom_development; -CREATE USER IF NOT EXISTS 'dev_admin'@'%' IDENTIFIED BY 'password'; +CREATE USER IF NOT EXISTS 'dev_admin'@'%' IDENTIFIED WITH mysql_native_password BY 'password'; GRANT ALL PRIVILEGES ON myclassroom_development.* TO 'dev_admin'@'%'; FLUSH PRIVILEGES; CREATE DATABASE IF NOT EXISTS myclassroom_test; -CREATE USER IF NOT EXISTS 'test_admin'@'%' IDENTIFIED BY 'password'; +CREATE USER IF NOT EXISTS 'test_admin'@'%' IDENTIFIED WITH mysql_native_password BY 'password'; GRANT ALL PRIVILEGES ON myclassroom_test.* TO 'test_admin'@'%'; FLUSH PRIVILEGES;