Skip to content
This repository was archived by the owner on Aug 1, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,8 @@ dev.reset: dev.remove-containers dev.reset-repos dev.prune dev.pull.large-and-sl
dev.destroy.coursegraph: dev.remove-containers.coursegraph ## Remove all coursegraph data.
docker volume rm ${COMPOSE_PROJECT_NAME}_coursegraph_data

dev.destroy: ## Irreversibly remove all devstack-related containers, networks, and volumes.
# See https://github.com/openedx/devstack/issues/1113 for lack of ability to destroy data volumes
dev.destroy: ## Irreversibly remove all devstack-related containers and networks (though not data volumes)
$(WINPTY) bash ./destroy.sh

########################################################################################
Expand Down
11 changes: 0 additions & 11 deletions drop-mysql-user.sql

This file was deleted.

20 changes: 12 additions & 8 deletions provision-mysql80.sql
Original file line number Diff line number Diff line change
@@ -1,29 +1,33 @@
-- The use of `CREATE USER IF NOT EXISTS` is necessary since the
-- mysql80_data volume may already contain these users due to previous
-- provisioning https://github.com/openedx/devstack/issues/1113

CREATE DATABASE IF NOT EXISTS credentials;
CREATE USER 'credentials001'@'%' IDENTIFIED BY 'password';
CREATE USER IF NOT EXISTS 'credentials001'@'%' IDENTIFIED BY 'password';
GRANT ALL ON credentials.* TO 'credentials001'@'%';

CREATE DATABASE IF NOT EXISTS discovery;
CREATE USER 'discov001'@'%' IDENTIFIED BY 'password';
CREATE USER IF NOT EXISTS 'discov001'@'%' IDENTIFIED BY 'password';
GRANT ALL ON discovery.* TO 'discov001'@'%';

CREATE DATABASE IF NOT EXISTS ecommerce;
CREATE USER 'ecomm001'@'%' IDENTIFIED BY 'password';
CREATE USER IF NOT EXISTS 'ecomm001'@'%' IDENTIFIED BY 'password';
GRANT ALL ON ecommerce.* TO 'ecomm001'@'%';

CREATE DATABASE IF NOT EXISTS notes;
CREATE USER 'notes001'@'%' IDENTIFIED BY 'password';
CREATE USER IF NOT EXISTS 'notes001'@'%' IDENTIFIED BY 'password';
GRANT ALL ON notes.* TO 'notes001'@'%';

CREATE DATABASE IF NOT EXISTS registrar;
CREATE USER 'registrar001'@'%' IDENTIFIED BY 'password';
CREATE USER IF NOT EXISTS 'registrar001'@'%' IDENTIFIED BY 'password';
GRANT ALL ON registrar.* TO 'registrar001'@'%';

CREATE DATABASE IF NOT EXISTS xqueue;
CREATE USER 'xqueue001'@'%' IDENTIFIED BY 'password';
CREATE USER IF NOT EXISTS 'xqueue001'@'%' IDENTIFIED BY 'password';
GRANT ALL ON xqueue.* TO 'xqueue001'@'%';

CREATE DATABASE IF NOT EXISTS `dashboard`;
CREATE USER 'analytics001'@'%' IDENTIFIED BY 'password';
CREATE USER IF NOT EXISTS 'analytics001'@'%' IDENTIFIED BY 'password';
GRANT ALL ON `dashboard`.* TO 'analytics001'@'%';

CREATE DATABASE IF NOT EXISTS `analytics-api`;
Expand All @@ -37,7 +41,7 @@ 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';
CREATE USER IF NOT EXISTS 'edxapp001'@'%' IDENTIFIED BY 'password';
GRANT ALL ON edxapp.* TO 'edxapp001'@'%';
GRANT ALL ON edxapp_csmh.* TO 'edxapp001'@'%';

Expand Down