forked from udacity/nd063-c2-design-for-availability-resilience-reliability-replacement-project-starter-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlog_rr_before_promotion.txt
34 lines (28 loc) · 1.19 KB
/
log_rr_before_promotion.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
[ec2-user@ip-10-0-1-91 ~]$ mysql -h udacity-replica-db.cyhfc1nhu0lr.us-east-2.rds.amazonaws.com -D udacity -u admin -p
Enter password:
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MySQL connection id is 16
Server version: 8.0.20 Source distribution
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MySQL [udacity]> show tables;
+-------------------+
| Tables_in_udacity |
+-------------------+
| books |
+-------------------+
1 row in set (0.00 sec)
MySQL [udacity]> INSERT INTO books (id,name,author) VALUES(1,"Third Book","HQ");
ERROR 1290 (HY000): The MySQL server is running with the --read-only option so it cannot execute this statement
MySQL [udacity]> select * from books;
+------+--------------+--------+
+------+--------------+--------+
| id | name | author |
+------+--------------+--------+
| 1 | Some Book | HQ |
| 1 | Another Book | HQ |
+------+--------------+--------+
2 rows in set (0.00 sec)
MySQL [udacity]>