Skip to content

Commit

Permalink
Modify init.sql to use legacy authentication
Browse files Browse the repository at this point in the history
  • Loading branch information
Justin-Fernbaugh committed May 23, 2024
1 parent 829e687 commit da6703e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/db/init.sql
Original file line number Diff line number Diff line change
@@ -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;

0 comments on commit da6703e

Please # to comment.