1、什么事索引(本质:数据结构) 索引是帮助MySQL高效获取数据的数据结构。 2、优势: 1、提高数据检索的效率,降低数据库IO成本 2、通过索引对数据进行排序,降低数据排序的成本,降低了CPU的消耗 3、劣势: 降低更新表的速度,如对表进行update 、delete、insert等操作时,My ...
分类:
数据库 时间:
2020-06-26 16:22:25
阅读次数:
81
1、查看sql_mode SELECT @@sql_mode; 查出来的值包含ONLY_FULL_GROUP_BY 即为受此限制 2、修改mySQL配置 sudo chmod 755 /etc/my.cnf sudo vi /etc/my.cnf 3、配置中添加以下语句 sql_mode=STRIC ...
分类:
数据库 时间:
2020-06-25 21:36:25
阅读次数:
68
问题: A few years ago I installed Apache 2.2x and PHP 5.3.1 on a Linux server I maintain. 几年前,我在维护的Linux服务器上安装了Apache 2.2x和PHP 5.3.1。 I used .tar.gz's a ...
分类:
Web程序 时间:
2020-06-25 21:13:35
阅读次数:
78
1.反爬机制函数 下面是已定义好的反爬函数一个函数对应一个或N个知识点,相互调用构造调试反爬。 # 1.随机头部 def 随机头部(): from fake_useragent import UserAgent my_headers = { 'User-Agent': UserAgent().ran ...
分类:
其他好文 时间:
2020-06-25 15:55:52
阅读次数:
63
For the ideal that I hold near to my heart, I'd not regret a thousand times to die.亦余心之所善兮,虽九死其尤未悔。 高等数学(1) —— 连续 题目得刷过去才行。 目录 1. 函数的连续性与间断点1.1 函数的连续性 ...
分类:
其他好文 时间:
2020-06-25 15:53:09
阅读次数:
91
1、spring与mybatis整合配置文件版 spring与mybaits整合需要一个中间包mybatis-spring,将mybatis交给spring管理,中间包pom依赖如下 <dependency> <groupId>org.mybatis</groupId> <artifactId>my ...
分类:
编程语言 时间:
2020-06-25 13:56:56
阅读次数:
55
git init 创建工作区 git add . 添加到暂存区 提交到版本区 git commit -m 'init app' 记录远程仓库地址 git branch 查看分支 创建并切换分支 git push -u origin my 推送到远程仓库 git status 查看本地状态 git a ...
分类:
其他好文 时间:
2020-06-25 12:02:44
阅读次数:
76
Pod基本概念: 最小部署单元 一组容器的集合 一个Pod中的容器共享网络命名空间 Pod是短暂的 Pod实现机制与设计模式: 共享网络 共享存储 [root@centos7 demo]# cat b.yml apiVersion: v1 kind: Pod metadata: name: my-p ...
分类:
其他好文 时间:
2020-06-25 00:01:00
阅读次数:
96
注入获取 通过IConfiguration直接获取的方法官方文档里就有,可以直接看这里 如:appsettings.json { "Position": { "Title": "编辑器", "Name": "Joe Smith" }, "MyKey": "My appsettings.json Va ...
分类:
移动开发 时间:
2020-06-24 23:28:51
阅读次数:
278
# 导入验证器 from jsonschema import validate # 编写schema: my_schema = { "$schema": "http://json-schema.org/draft-04/schema#", "title": "TestInfo", "descript ...
分类:
编程语言 时间:
2020-06-24 21:23:43
阅读次数:
93