08 2019 档案
摘要:-- 1. 进入information_schema 数据库(存放了其他的数据库的信息) use information_schema; -- 2. 查询所有数据的大小: select concat(round(sum(data_length/1024/1024),2),'MB') as data
阅读全文
摘要:实测过第一种写法,可正常删除 ref: https://blog.csdn.net/u010022051/article/details/51916279/
阅读全文
摘要:select TABLE_NAME from ( select TABLE_NAME ,count(1) as cnt from information_schema.tables where TABLE_SCHEMA in ('db_a','db_b') and (table_name not like '%2018%' and table_name not like '%2019%') gro
阅读全文
摘要:#!/bin/sh bin=$(cd `dirname $0`;pwd) cd ${bin} ### 定义检查函数 chk(){ programName=$1 correctNum=$2 programSubName=$3 # 判断是否带子程序名 if [ -n "${programSubName}" ] then programNum=$(ps -ef|grep -Ewv "grep|less|
阅读全文
摘要:# 注意awk的文件不能单独一行 awk打印单双引号 设置超时结束 ref: https://blog.csdn.net/kouryoushine/article/details/92838138ref: https://www.cnblogs.com/emanlee/p/3620785.html
阅读全文
摘要:-- Jira数据库中,用户信息都存放在表 cwd_user中 -- 切换到jiar数据库 use jiradb; -- 更改密码为sphere update cwd_user set credential='uQieO/1CGMUIXXftw3ynrsaYLShI+GTcPS4LdUGWbIusFvHPfUzD7CZvms6yMMvA8I7FViHVEqr6Mj4pCLKAFQ==' where
阅读全文
摘要:curl -fsSL https://get.docker.com -o get-docker.sh sh get-docker.sh
阅读全文
摘要:-- 查看正在被锁定的的表 show OPEN TABLES where In_use > 0; -- 查看进程号 show processlist; -- 杀掉进程 kill 123456; -- 表级锁次数 show status like 'Table%'; +----------------------------+---------+ | Variable_name ...
阅读全文
摘要:最近RDS FOR MYSQL5.6的统计信息有问题,一些表明明的数据,但统计信息里去显示为空表,导致执行计划出错,查询效率很低,所以查看下相关的信息。 ref: https://www.cnblogs.com/zengkefu/p/5634858.htmlref: https://www.cnbl
阅读全文
摘要:https://gitbook.cn/books/5d2d822f175a450263e945f9/index.html
阅读全文
摘要:在MySQL JDBC连接字符串中还可以加入参数, rewriteBatchedStatements=true,mysql默认关闭了batch处理,通过此参数进行打开,这个参数可以重写向数据库提交的SQL语句,具体参见:http://www.cnblogs.com/chenjianjx/archiv
阅读全文