摘要: tidb集群没有打labels标签,后来打上了,只是host不一样,dc、zone一样。 [tidb@tidb-host1 v4.0.9]$ ./pd-ctl config set location-labels dc,zone,host Success! tiup ctl pd -u http:/ 阅读全文
posted @ 2022-08-03 19:10 捧花大王 阅读(49) 评论(0) 推荐(0)
摘要: 将fio的包上传到服务器上,默认我已经放在了tidb的家目录上,/home/tidb/ fio工具使用方法: [root@tidb01 ~]# unzip fio_test.zip [root@tidb01 ~]# cd fio_test/ [root@tidb01 ~/fio_test]# chm 阅读全文
posted @ 2022-08-03 19:04 捧花大王 阅读(86) 评论(0) 推荐(0)
摘要: 假如有下面这样一段文本内容: $ grep Lock_time: slow.log | head # Query_time: 1.097620 Lock_time: 0.000000 Rows_sent: 0 Rows_examined: 0 # Query_time: 0.000111 Lock_ 阅读全文
posted @ 2022-08-03 19:00 捧花大王 阅读(195) 评论(0) 推荐(0)
摘要: [root@mysql-host1 ~]# vim /usr/local/script/his.sh #!/bin/bash #history export HISTTIMEFORMAT="[%Y.%m.%d %H:%M:%S] " export HISTFILESIZE=10000000 expo 阅读全文
posted @ 2022-08-03 01:50 捧花大王 阅读(74) 评论(0) 推荐(0)
摘要: #!/bin/bash DIR="$( cd "$( dirname "$0" )" && pwd )" cd ${DIR} #配置Archery数据库的连接地址 archery_db_host="10.0.0.11" archery_db_port=3306 archery_db_user="zh 阅读全文
posted @ 2022-08-03 01:47 捧花大王 阅读(68) 评论(0) 推荐(0)
摘要: #!/bin/bash for i in `ls -larth --time-style=long-iso mysql-bin.* |grep 2021-11-19 | awk '{print $8}'`; do scp $i 10.0.0.12:/backup/mysql3306/binlog/; 阅读全文
posted @ 2022-08-03 01:45 捧花大王 阅读(23) 评论(0) 推荐(0)