Skip to content

Commit

Permalink
fix mysql comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher Bisom committed Apr 16, 2024
1 parent 657c982 commit 7b39945
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions backend/src/init_db/init_db.sql
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
--We allow "user" to connect to commonplace_dev_db for whatever IP docker assigns
-- We allow "user" to connect to commonplace_dev_db for whatever IP docker assigns
CREATE DATABASE IF NOT EXISTS commonplace_dev_db;
CREATE USER IF NOT EXISTS 'user'@'%' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON commonplace_dev_db.* TO 'user'@'%';

--We allow "user" to connect to commonplace_test_db for whatever IP docker assigns
-- We allow "user" to connect to commonplace_test_db for whatever IP docker assigns
CREATE DATABASE IF NOT EXISTS commonplace_test_db;
CREATE USER IF NOT EXISTS 'user'@'%' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON commonplace_test_db.* TO 'user'@'%';

--We haven't configured local SSL, so we'll use mysql_native_password instead of caching_sha2_password
-- We haven't configured local SSL, so we'll use mysql_native_password instead of caching_sha2_password
ALTER USER 'user'@'%' IDENTIFIED WITH mysql_native_password BY 'password';

FLUSH PRIVILEGES;

0 comments on commit 7b39945

Please sign in to comment.