CREATE DATABASE IF NOT EXISTS credentials;


CREATE DATABASE IF NOT EXISTS discovery;


CREATE DATABASE IF NOT EXISTS ecommerce;


CREATE DATABASE IF NOT EXISTS notes;


CREATE DATABASE IF NOT EXISTS registrar;


CREATE DATABASE IF NOT EXISTS xqueue;


CREATE DATABASE IF NOT EXISTS edxapp;
CREATE DATABASE IF NOT EXISTS edxapp_csmh;

GRANT ALL ON edxapp_csmh.* TO 'edxapp001'@'%';

FLUSH PRIVILEGES;
