
数据库
大虫吃小虫虫虫
这个作者很懒,什么都没留下…
展开
-
利用python获取es索引中的所有数据
利用Python的elasticsearch模块获取指定索引下的所有数据。代码如下:from elasticsearch import Elasticsearches = Elasticsearch(['http://192.168.193.61:9200'],sniff_on_start=True,sniff_on_connection_fail=True,sniff_timeo...原创 2019-10-22 10:24:41 · 6910 阅读 · 0 评论 -
Mysql统计一个库中所有表的记录数
话不多说,如题,上代码:执行如下sql:select concat('select "',TABLE_name,'", count(*) from ',TABLE_SCHEMA,'.',TABLE_name,' union all') from information_schema.tableswhere TABLE_SCHEMA='test';执行完后会批量生成SQ...原创 2019-10-22 10:07:50 · 1518 阅读 · 0 评论 -
centos linux 7 安装mysql 中的坑
1. 安装mysql yum包 mysql yum 包官网地址:https://dev.mysql.com/downloads/repo/yum/ 这里我下载的是第一个, 使用linux shell 的 wget 进行下载: wgethttps://repo.mysql.com//mysql80-community-release-el7-2.noarch.rpm2. 安...原创 2019-04-14 11:20:50 · 231 阅读 · 0 评论