- Navigate to RDS in the AWS console
- Select a mysql compatible database - choose your size according to your needs. For simplicity start with a db.m1.small, v. 5.6.x.
- Select
no
for creating a replica in a different zone. - Enter your database name and root credentials.
- Enter your preferences in terms of backup schedule, etc.
- Do not put the database in a VPC at this time.
- Create the instance
- Navigate to the instance security groups, select the RDS group and add a rule with a CIDR/IP of 0.0.0.0/0
- Determine if you would prefer to interact with MySQL via the command line or via a locally installed GUI client. All of the tasks listed in the following sections can be accomplished via the GUI client or the command line. They are shown here as command line calls for simplicity.
- If you prefer command line interaction, download the MySQL community server which matches your deployed MySQL version. You will not need to run the server itself, but you will need the client tools which are included in the server download.
- After download, extract the files in the download package
- Add the /bin directory under the extracted mysql directory to your system PATH
- Verify that you have access to the MySQL tooling on the command line:
mysql --version
- If you prefer UI-based interaction, download the MySQL Workbench which is a GUI-based MySQL administration tool. You may also need to download prerequisite packages, depending on your platform. After download, install the Workbench.
- If you prefer command line interaction, download the MySQL community server which matches your deployed MySQL version. You will not need to run the server itself, but you will need the client tools which are included in the server download.
- Clone the duracloud management console repository:
git clone https://github.com/duracloud/management-console.git
- Checkout the latest tag via git.
- Connect to MySQL
mysql -u <root-username> -h <your mysql host>
- Create database
create database duracloud_accounts; exit;
- Create database schema
mysql -u root -h your.mysql.host duracloud_accounts < management-console/resources/sql/schema-6.0.0.sql
- Clone the duracloud mill repository:
git clone https://github.com/duracloud/mill.git
- Checkout the latest tag via git
- Connect to MYSQL
mysql -u root -h <your mysql host>
- create database
create database duracloud_mill; exit;
- Create database schema
mysql -u root -h your.mysql.host duracloud_mill < mill/resources/mill-schema-2.5.2.sql
Create 4 users in your database and grant them the necessary access (be sure to change the passwords):
- accountsadmin - this user will have administrative rights to the accounts database
- accountsreader - this user will have read-only access to the accounts database
- milladmin - this user will have administrative rights to the mill database
- millreader - this user will have read-only access to the mill database
create user 'accountsadmin'@'%' identified by 'accountsadminpassword';
create user 'accountsreader'@'%' identified by 'accountsreaderpassword';
create user 'milladmin'@'%' identified by 'milladminpassword';
create user 'millreader'@'%' identified by 'millreaderpassword';
grant all privileges on duracloud_accounts.* to 'accountsadmin'@'%' ;
grant select on duracloud_accounts.* to 'accountsreader'@'%';
grant all privileges on duracloud_mill.* to 'milladmin'@'%';
grant select on duracloud_mill.* to 'millreader'@'%';
flush privileges;