-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Christopher Bisom
committed
Apr 16, 2024
1 parent
657c982
commit 7b39945
Showing
1 changed file
with
3 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |