摘要: # 在主从复制的基础,可进行设置 # 主节点,安装模块rpm :06: (root@localhost) [(none)]> install plugin rpl_semi_sync_master soname 'semisync_master.so'; Query OK, 0 rows affec 阅读全文
posted @ 2021-06-25 23:36 每天都在学习的自己 阅读(56) 评论(0) 推荐(0)
摘要: # 三台主机: # 主节点:10.0.0.21 # 从节点1:10.0.0.22,从节点2:10.0.0.23 # 主节点配置 [21:46:32 root@centos7 ~]#cat /etc/my.cnf [mysqld] server-id=21 log-bin datadir=/data/ 阅读全文
posted @ 2021-06-23 21:52 每天都在学习的自己 阅读(117) 评论(0) 推荐(0)
摘要: # 这里是整个项目所需要的文件,包括离线下载mysql 8.0的包[11:26:19 root@centos7 mysql]#tree . ├── Dockerfile ├── my.cnf ├── mysql-8.0.23-linux-glibc2.12-x86_64.tar.xz └── mys 阅读全文
posted @ 2021-06-21 22:42 每天都在学习的自己 阅读(119) 评论(0) 推荐(0)
摘要: #!/bin/bash # #************************************************************************************** #Author: Noise Lys #QQ: 578110218 #Date: 2021-06 阅读全文
posted @ 2021-06-21 22:32 每天都在学习的自己 阅读(60) 评论(0) 推荐(0)
摘要: # 实验准备三台机器,(centos8不支持 Percona XtraDB Cluster 5.7) # pxc1: 10.0.0.21 # pxc2: 10.0.0.22 # pxc3: 10.0.0.23 # 首先配置 Percona XtraDB Cluster 5.7需要用的yum 源 [p 阅读全文
posted @ 2021-06-19 21:28 每天都在学习的自己 阅读(70) 评论(0) 推荐(0)
摘要: [21:13:54 root@centos7 ansible]#tree . ├── files │ ├── my.cnf │ └── mysql-8.0.23-linux-glibc2.12-x86_64.tar.xz ├── hosts └── install_mysql8.0-v2.yaml 阅读全文
posted @ 2021-06-14 21:27 每天都在学习的自己 阅读(76) 评论(0) 推荐(0)
摘要: [19:15:23 root@centos7 ansible]#tree . ├── files │ ├── my.cnf │ └── mysql-8.0.23-linux-glibc2.12-x86_64.tar.xz ├── hosts └── install_mysql8.0-v1.yaml 阅读全文
posted @ 2021-06-14 19:22 每天都在学习的自己 阅读(106) 评论(0) 推荐(0)
摘要: when you set the bin log , you may cause below problems; 1> PID not found; for this problem , you could edit my.cnf file to add a new line server-id=1 阅读全文
posted @ 2021-06-13 01:19 每天都在学习的自己 阅读(61) 评论(0) 推荐(0)
摘要: 09:15:24(root@localhost) [(none)]> show variables like "%innodb%"; #1> 事务日志性能优化 09:17:44(root@localhost) [(none)]> set global innodb_flush_log_at_trx_ 阅读全文
posted @ 2021-06-13 00:34 每天都在学习的自己 阅读(80) 评论(0) 推荐(0)
摘要: 04:54:52(root@localhost) [hellodb]> select * from students; + + + + + + + | StuID | Name | Age | Gender | ClassID | TeacherID | + + + + + + + | 1 | Sh 阅读全文
posted @ 2021-06-12 18:36 每天都在学习的自己 阅读(205) 评论(0) 推荐(0)