1. check from destination (sever teguhth-lab02 database teguhth02_source )
mysql -uroot -p select @@hostname,@@version; show databases like '%teguhth02%'; select * from teguhth02_source.barang; select * from teguhth02_destination.barang;
CREATE USER 'backupuser'@'%' IDENTIFIED BY 'password'; GRANT SELECT, SHOW VIEW, LOCK TABLES ON *.* TO 'backupuser'@'%'; GRANT RELOAD ON *.* TO 'backupuser'@'%'; FLUSH PRIVILEGES;
CREATE USER 'backupuser'@'localhost' IDENTIFIED BY 'password'; GRANT SELECT, SHOW VIEW, LOCK TABLES ON *.* TO 'backupuser'@'localhost'; GRANT RELOAD ON *.* TO 'backupuser'@'localhost'; FLUSH PRIVILEGES;
1. uptime 1 SHOW GLOBAL STATUS LIKE 'Uptime'; MariaDB [teguhth]> SHOW GLOBAL STATUS LIKE 'Uptime'; +---------------+-------+ | Variable_name | Value | +---------------+-------+ | Uptime | 165 | +---------------+-------+ 1 row in set (0.001 sec)
ERROR 1118 (42000) at line 52172: Row size too large (> 8126). Changing some columns to TEXT or BLOB or using ROW_FORMAT=DYNAMIC or ROW_FORMAT=COMPRESSED may help. In current row format, BLOB prefix of 768 bytes is stored inline.
A. B. Setting di Master Node 1. Create user replication su - enterprisedb
CREATE USER replicate REPLICATION LOGIN CONNECTION LIMIT 1 ENCRYPTED PASSWORD 'admin'; ALTER ROLE replicate CONNECTION LIMIT 5;
[root@teguhth ~]# su - enterprisedb Last login: Thu Jul 20 14:21:33 WIB 2023 on pts/0 -bash-4.2$ psql edb psql (15.3.0, server 15.3.0) Type "help" for help.
edb=# CREATE USER replicate REPLICATION LOGIN CONNECTION LIMIT 1 ENCRYPTED PASSWORD 'admin'; CREATE ROLE edb=# edb=# ALTER ROLE replicate CONNECTION LIMIT 5; ALTER ROLE edb=#
1. get repo access from web login using new account only one month https://www.enterprisedb.com/accounts/login
https://www.enterprisedb.com/repos
2. curl & install setup.rpm.sh [root@teguhth data]# curl -1sLf 'https://downloads.enterprisedb.com/f9xxxxxxx/enterprise/setup.rpm.sh' | sudo -E bash Executing the setup script for the 'enterprisedb/enterprise' repository ...
OK: Checking for required executable 'curl' ... OK: Checking for required executable 'rpm' ... OK: Detecting your OS distribution and release using system methods ... ^^^^: ... Detected/provided for your OS/distribution, version and architecture: >>>>: >>>>: ... distro=centos version=7 codename=Core arch=x86_64 >>>>:
[root@teguhth data]# wget https://repo.mysql.com//mysql80-community-release-el7-7.noarch.rpm --2023-07-03 14:27:10-- https://repo.mysql.com//mysql80-community-release-el7-7.noarch.rpm Resolving repo.mysql.com (repo.mysql.com)... 23.201.152.213 Connecting to repo.mysql.com (repo.mysql.com)|23.201.152.213|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 11196 (11K) [application/x-redhat-package-manager] Saving to: ‘mysql80-community-release-el7-7.noarch.rpm’
100%[========================================================================================================================>] 11,196 --.-K/s in 0.005s