Skip to content

翻了车的老司机

其实我一直在你身边

Search for:

zzs10086

347RSS Feed

zzs10086 's Posts

mysql 命令导入导出sql

导出(不进入mysql)
mysqldump -h10.168.193.2 -uwanyouxicom -p52wyxg7P3v5N7 wanyouxicom wyx_phome_ecms_advert>advert.sql

导入(进入mysql)
source /dir_for_sql_file/sql.sql

  • Posted on: 2018年1月5日 2019年11月29日
  • Author: zzs10086
  • Categories: mysql

mysql linux 命令创建数据库

mysql -uroot -p1234
create database wiki default charset utf8;
use wiki;
source /your_wiki_sql_file_path/wiki.sql

  • Posted on: 2018年1月5日 2019年11月29日
  • Author: zzs10086
  • Categories: mysql

mysql 数据不存在插入,存在则更新

insert into car_media_article_click(media_id,article_id,click_num) values(3,1770351,1) on duplicate key update click_num = click_num + 1

  • Posted on: 2018年1月5日 2018年1月5日
  • Author: zzs10086
  • Categories: php

mysql 字符串替换

update by_article set pic_url = replace(pic_url,’oyskpbhvb.bkt.clouddn.com’,’wximg.checheng.cn’)

  • Posted on: 2018年1月5日 2019年11月29日
  • Author: zzs10086
  • Categories: mysql

mysql 按周分组查询

select date,DATE_FORMAT(date,’%Y%m’) weeks,sum(`install`) install_count,sum(`launches`) launches_count,sum(`active`) active_count from tj_app_day_data where date >=’2017-10-25′ and date<='2017-12-17' group by weeks;

  • Posted on: 2018年1月5日 2019年11月29日
  • Author: zzs10086
  • Categories: mysql

mysql 按月分组查询

select `date`,DATE_FORMAT(date,’%Y%m’) months,sum(`install`) install_count,sum(`launches`) launches_count,sum(`active`) active_count from tj_app_day_data where appid=’$appid’ and date >=’$start_date’ and date<='$end_date' group by months

  • Posted on: 2018年1月5日 2019年11月29日
  • Author: zzs10086
  • Categories: mysql

elasticsearch linux 常用命令

新建索引
curl -XPUT ‘http://localhost:9200/dept/employee/1’ -d ‘{ “empname”: “emp1”}’
删除数据
curl -XDELETE ‘http://localhost:9200/dept/employee/3’

  • Posted on: 2018年1月5日 2021年4月15日
  • Author: zzs10086
  • Categories: elasticsearch
  • elasticsearch linux 常用命令有1条评论

es ik分词版本下载地址

IK Analysis for ElasticSearch
The IK Analysis plugin integrates Lucene IK analyzer (http://code.google.com/p/ik-analyzer/) into elasticsearch, support customized dictionary.
Analyzer: ik_smart , ik_max_word , Tokenizer: ik_smart , ik_max_word

  • Posted on: 2018年1月5日 2018年1月5日
  • Author: zzs10086
  • Categories: elasticsearch

es php 创建带分词analyzer的索引

$client = Elasticsearch\ClientBuilder::create()
# ->setHosts([“localhost:9200”])
->setHosts([“101.37.85.163:9200”])
->setRetries(1)
->build();

  • Posted on: 2018年1月5日 2018年1月5日
  • Author: zzs10086
  • Categories: elasticsearch

es 搜索searchapi yii2 php代码

namespace searchapi\controllers;

use Yii;
use yii\web\Controller;
use searchapi\models\CarBrandInfo;
use searchapi\models\CarBrandType;
use searchapi\models\CarBrandTypeInfo;
use searchapi\models\CarBrandSonTypeInfo;
use searchapi\models\CarFactory;
use yii\data\Pagination;
use yii\helpers\BaseJson;
use Elasticsearch;

  • Posted on: 2018年1月5日 2019年12月10日
  • Author: zzs10086
  • Categories: elasticsearch

Pagination

Previous page Page: 1 … Page: 29 Page: 30 Page: 31 Page: 32 Page: 33 Page: 34 Page: 35 Next page

分类目录

  • docker
  • elasticsearch
  • git
  • go
  • java
  • javascript
  • laravel
  • Linux
  • mysql
  • nginx
  • node.js
  • php
  • redis
  • shell
  • vue
  • webpack
  • 小程序
Search for:
2025年五月
一 二 三 四 五 六 日
« 7月    
 1234
567891011
12131415161718
19202122232425
262728293031  

近期文章

  • wordpress如何开启全站https
  • CentOS上安装Redis
  • ECMAScript 数组遍历
  • ECMAScript 数组
  • Ecmascript Push 和 Pop 方法

近期评论

    © 2025 翻了车的老司机. 我在你身边绕了一个圈,回到原点你却已在远方。

    苏ICP备16035736号-3

    友情链接:一览网  江苏景威控股集团有限公司