https://github.com/cloudacademy/aurora-multimaster
AWS Aurora Multi Master Demonstration
https://github.com/cloudacademy/aurora-multimaster
aurora aws cloudacademy devops multi-master mysql python
Last synced: 2 months ago
JSON representation
AWS Aurora Multi Master Demonstration
- Host: GitHub
- URL: https://github.com/cloudacademy/aurora-multimaster
- Owner: cloudacademy
- Created: 2020-03-11T03:23:34.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-04-06T21:21:36.000Z (about 5 years ago)
- Last Synced: 2025-04-09T12:21:24.248Z (3 months ago)
- Topics: aurora, aws, cloudacademy, devops, multi-master, mysql, python
- Language: Python
- Size: 6.84 KB
- Stars: 16
- Watchers: 3
- Forks: 9
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Amazon Aurora Multi-Master
```
sudo apt-get install mysql-client
sudo apt install python3-pip
pip3 install mysql-connector-python
``````
HOST=
MYSQL_PWD=cloudacademy mysql -h $HOST -u admin demo
``````
select @@hostname;
``````
CREATE DATABASE demo;
``````
CREATE TABLE course (
title VARCHAR(40),
instructor VARCHAR(40),
duration INT,
created DATE,
url VARCHAR(256)
);
``````
INSERT INTO course (title, instructor, duration, created, url) VALUES ('Course1', 'Jeremy Cook', 100, '1999-03-30', 'http://here.com');
``````
AURORA_NODE1=
AURORA_NODE2=watch -n1 "MYSQL_PWD=cloudacademy mysql -h $AURORA_NODE1 -u admin demo -e 'select count(*) from course'"
``````
AURORA_NODE1=
AURORA_NODE2=MYSQL_PWD=cloudacademy mysql -h $AURORA_NODE1 -u admin -e 'ALTER SYSTEM CRASH'
```