forked from openedx-unsupported/devstack
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add SQL for creating users and databases
The included script is idempotent, executed when the mysql container is initialized. This approach is borrowed from docker-library/mysql#18. ECOM-6563
- Loading branch information
Renzo Lucioni
committed
Dec 9, 2016
1 parent
f259227
commit aefdd9f
Showing
2 changed files
with
12 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
CREATE DATABASE IF NOT EXISTS credentials; | ||
GRANT ALL ON credentials.* TO 'credentials001'@'%' IDENTIFIED BY 'password'; | ||
|
||
CREATE DATABASE IF NOT EXISTS discovery; | ||
GRANT ALL ON discovery.* TO 'discov001'@'%' IDENTIFIED BY 'password'; | ||
|
||
CREATE DATABASE IF NOT EXISTS ecommerce; | ||
GRANT ALL ON ecommerce.* TO 'ecomm001'@'%' IDENTIFIED BY 'password'; | ||
|
||
CREATE DATABASE IF NOT EXISTS programs; | ||
GRANT ALL ON programs.* TO 'programs001'@'%' IDENTIFIED BY 'password'; |
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