清除mysql 查询缓存
对一条sql进行优化时,发现原本很慢的一条sql(将近1分钟) 在第二次运行时, 瞬间就完成了(0.00sec) 这是因为mysql对同一条sql进行了缓存,服务器直接从上次的查询结果缓存中读取数据,而不是重新分析、执行sql。 可通过如下方法清空查询缓存 reset query cache;
https://www.cnblogs.com/tnsay/p/10678999.html
对一条sql进行优化时,发现原本很慢的一条sql(将近1分钟) 在第二次运行时, 瞬间就完成了(0.00sec) 这是因为mysql对同一条sql进行了缓存,服务器直接从上次的查询结果缓存中读取数据,而不是重新分析、执行sql。 可通过如下方法清空查询缓存 reset query cache;
https://www.cnblogs.com/tnsay/p/10678999.html
pg_dump -h localhost -U postgres -t tablename databasename >./test.sql导出 -t 表名 psql -d test1 -U...
安装centos系统 9.6版本# Install the repository RPMsudo yum install -y https://download.postgresql.org/pub/repos/yum/repor...
下载rpm包wget -i -c http://dev.mysql.com/get/mysql57-community-release-el7-10.noarch.rpm 安裝包仓库yum -y install * 或者yum -...
https://blog.csdn.net/qq_36582604/article/details/80526287...
truncate table 表名...
将mysql数据取出放到elasticsearch中from datetime import datetime from elasticsearch import Elastic...