- 博客(4)
- 问答 (1)
- 收藏
- 关注
原创 mysql derived2、Using temporary 和 Using filesort 优化记录
-- 业务每周查询一份报表,每次执行sql磁盘直接由49%涨到%93,执行了几次发现是sql用到了磁盘临时表,对sql进行了改写 -- 原查询sql: SELECT CODE, NAME, num, GROUP_CONCAT(product_id) AS product_ids, GROUP_CONCAT(product_name) AS product_...
2019-12-07 15:46:11 3076 1
原创 MySQL5.7一键安装脚本可选8.0版本,可自己输入下载包路径(shell脚本)
#!/bin/bash #author zhangfanyuan #date: 2019-03-28 #this scripts is to install mysql #if you don't have a mysql package,it will automatically download the mysql-5.7.22 package #define a function ON...
2019-03-28 17:17:05 895
原创 Linux下安装MySQL5.7.22
以安装在/home目录下为例 1.下载安装包地址:https://dev.mysql.com/downloads/file/?id=476936,安装包保存到/home 2.添加用户组和用户 #添加用户组 groupadd mysql #添加用户mysql 到用户组mysql useradd -r -g mysql mysql 3.解压: cd /home tar xf mysql-5...
2019-03-12 16:56:15 274
原创 python3 学习 第一课作业 while
1、使用while循环输入: 1 2 3 4 5 6 8 9 10 #!/usr/bin/env python # _*_ coding:utf8 _*_ a = 1 while a <= 10: if a == 7: pass else: print(a) a = a + 1 2、求出1~100所有数的和: #!/us...
2018-08-23 10:24:08 221
空空如也
Redis操作大key为什么会导致CPU升高,原理是什么?
2021-05-28
TA创建的收藏夹 TA关注的收藏夹
TA关注的人