摘要:
python2 import pipprint(pip.pep425tags.get_supported()) python3 import pip._internal.pep425tagsprint(pip._internal.pep425tags.get_supported()) 阅读全文
摘要:
date=`date -d "+0 day $1" +%Y%m%d`enddate=`date -d "+1 day $2" +%Y%m%d`echo " "echo "date=$date"echo "enddate=$enddate"echo " "while [[ $date < $endda 阅读全文
摘要:
#!/usr/bin/env bash>ip.txt rpm -q expect &>/dev/nullif [ $? -ne 0 ];then yum -y install expectfi if [ ! -f /root/.ssh/id_rsa.pub ];then ssh-kengen -P 阅读全文
摘要:
(root@localhost)[zhihuishu_statistics]>show full processlist; 出现了很多show slave status查询hang住的情况 主库地址:10.172.202.15 从库地址:10.81.177.39 [root@hz-kaoqindb- 阅读全文
摘要:
程序执行一个语句 update user_detail set nickname='🌸花花&果果👣' WHERE user_id=3959285 ; 由于数据库字符集是utf-8的执行结果如下 [SQL]update zhs_user_detail set nickname='🌸花花&果果👣 阅读全文
摘要:
背景:线上的一个3000W的表需要增加一个,表有20G大小。 晚上11点开始用pt-online-schema-change增加字段 pt-online-schema-change -h $IP -u $user -p $password -P $PORT --alter="$STATEMENT" 阅读全文