This repository has been archived by the owner on Aug 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 423
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1097 from openedx/farhanumar/psre-2485-1
feat: Added mysql 8 container in docker-compose
- Loading branch information
Showing
4 changed files
with
94 additions
and
2 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
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#docker-compose exec -T mysql80 bash -e -c "mysql -uroot mysql" < drop-mysql-user.sql | ||
#docker exec -it edx.devstack.mysql80 mysql | ||
|
||
drop user 'credentials001'@'%'; | ||
drop user 'discov001'@'%'; | ||
drop user 'ecomm001'@'%'; | ||
drop user 'notes001'@'%'; | ||
drop user 'registrar001'@'%'; | ||
drop user 'xqueue001'@'%'; | ||
drop user 'analytics001'@'%'; | ||
drop user 'edxapp001'@'%'; |
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 |
---|---|---|
@@ -0,0 +1,44 @@ | ||
CREATE DATABASE IF NOT EXISTS credentials; | ||
CREATE USER 'credentials001'@'%' IDENTIFIED BY 'password'; | ||
GRANT ALL ON credentials.* TO 'credentials001'@'%'; | ||
|
||
CREATE DATABASE IF NOT EXISTS discovery; | ||
CREATE USER 'discov001'@'%' IDENTIFIED BY 'password'; | ||
GRANT ALL ON discovery.* TO 'discov001'@'%'; | ||
|
||
CREATE DATABASE IF NOT EXISTS ecommerce; | ||
CREATE USER 'ecomm001'@'%' IDENTIFIED BY 'password'; | ||
GRANT ALL ON ecommerce.* TO 'ecomm001'@'%'; | ||
|
||
CREATE DATABASE IF NOT EXISTS notes; | ||
CREATE USER 'notes001'@'%' IDENTIFIED BY 'password'; | ||
GRANT ALL ON notes.* TO 'notes001'@'%'; | ||
|
||
CREATE DATABASE IF NOT EXISTS registrar; | ||
CREATE USER 'registrar001'@'%' IDENTIFIED BY 'password'; | ||
GRANT ALL ON registrar.* TO 'registrar001'@'%'; | ||
|
||
CREATE DATABASE IF NOT EXISTS xqueue; | ||
CREATE USER 'xqueue001'@'%' IDENTIFIED BY 'password'; | ||
GRANT ALL ON xqueue.* TO 'xqueue001'@'%'; | ||
|
||
CREATE DATABASE IF NOT EXISTS `dashboard`; | ||
CREATE USER 'analytics001'@'%' IDENTIFIED BY 'password'; | ||
GRANT ALL ON `dashboard`.* TO 'analytics001'@'%'; | ||
|
||
CREATE DATABASE IF NOT EXISTS `analytics-api`; | ||
GRANT ALL ON `analytics-api`.* TO 'analytics001'@'%'; | ||
|
||
CREATE DATABASE IF NOT EXISTS `reports`; | ||
GRANT ALL ON `reports`.* TO 'analytics001'@'%'; | ||
|
||
CREATE DATABASE IF NOT EXISTS `reports_v1`; | ||
GRANT ALL ON `reports_v1`.* TO 'analytics001'@'%'; | ||
|
||
CREATE DATABASE IF NOT EXISTS edxapp; | ||
CREATE DATABASE IF NOT EXISTS edxapp_csmh; | ||
CREATE USER 'edxapp001'@'%' IDENTIFIED BY 'password'; | ||
GRANT ALL ON edxapp.* TO 'edxapp001'@'%'; | ||
GRANT ALL ON edxapp_csmh.* TO 'edxapp001'@'%'; | ||
|
||
FLUSH PRIVILEGES; |
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