[ Part 5 ] Channel creation and Replication

Steps to be implemented:

  • Deploy the Channel

  • Check Channel's status

  • Perform replication

[ 1 ] Deploy the Channel

[ 1.1 ] Go back to Cloud Shell:

root@mysqlshellinstance:/home# exit
logout
ubuntu@mysqlshellinstance:~$ exit
logout
Connection to 129.159.241.250 closed.
florentina@cloudshell:MdsReplication (eu-frankfurt-1)$ 

[ 1.2 ] Create the Channel, by applying resource targetting:

zack@cloudshell:MdsReplication (eu-frankfurt-1)$ cp channel/create_channel.tf .
zack@cloudshell:MdsReplication (eu-frankfurt-1)$ terraform apply -target oci_mysql_channel.MySqlOciChannel    

[ 2 ] Check the status of the Channel

After applying the resource targetting, go to Menu > MySQL > Channels

The status of the Channel should be active:

[ 3 ] Perform replication

[ 3.1 ] Log in back to mysqlshellinstance:

[ 3.2 ] Download test2.sql script,

[ 3.3 ] From same location where you saved the test2.sql, log in to MySQL client:

[ 3.4 ] Create another database & populated tablespace with source command:

[ 3.5 ] Log in to MDS by using mysql-shell, switch to SQL mode and check if new database appears:

Last updated