#mongo shell ./mongo show dbs use bus opid – 操作的opid,有需要的话,可以通过 db.killOp(opid) 杀死操作 #查看数据库当前正在执行的操作 db.currentOp() #查看该数据下的慢请求日志 use bus db.system.pr ...
分类:
其他好文 时间:
2020-07-04 15:06:27
阅读次数:
59
This guide walks you through the process of creating a Spring application connected to a MySQL Database (as opposed to an in-memory, embedded database ...
分类:
数据库 时间:
2020-07-04 01:46:34
阅读次数:
78
Mongodb开启慢查询 , 查找慢查询 , 日志记录相关 ...
分类:
数据库 时间:
2020-07-03 17:46:21
阅读次数:
76
1官网下载: https://www.mongodb.com/download-center/community 2上传至目录 /opt/mongoDb 下 3解压 tar zxvf mongodb-linux-x86_64-4.0.5.tgz 4添加配置文件 vim /opt/mongoDB/mo ...
分类:
数据库 时间:
2020-07-03 15:45:40
阅读次数:
56
一、图形API的简单介绍 1、OpenGL(Open Graphics Library) ,一门跨平台、跨编程语言的程序接口。一个标准,用来调度GPU处理事情的。 OpenGL主要是针对PC端(Mac、Windows)的。 2、OpenGL ES(OpenGL for Embedded System ...
项目里使用了Mongodb作为数据库,不同于Mysql,这是一个非关系型数据库,因此不能使用SQL 下面是我对NoSQL的学习 条件查询 第一个花括号 查找全部 db.users.find() 复制代码 精准查找 db.users.find({"name":"zhangsan"}) 复制代码 精准查 ...
分类:
数据库 时间:
2020-07-02 13:38:47
阅读次数:
72
单条件查询: db.getCollection('task').find({"id": "dc717654-dc45-4bf9-8e8a-1f1b146d6524"}) 单条件查询(属性为叶子节点) db.getCollection('archive_result').find({"results. ...
分类:
数据库 时间:
2020-07-01 16:06:36
阅读次数:
84
php mongodb拓展 安装 下载地址:https://pecl.php.net/get/mongodb-1.7.4.tgz ,下载解压: cd /wget -c https://pecl.php.net/get/mongodb-1.7.4.tgz#解压tar -xzvf mongodb-1.7 ...
分类:
数据库 时间:
2020-07-01 14:08:09
阅读次数:
50
mongodb集群概念介绍 mongodb支持架构有单机(stand-alone)、主从(master-slave)、副本集(replica set)以及分片(sharding), 而最常用的架构莫过于副本集 + 分片。而分片有三大组件,分别为mongos、configsvr、sharding se ...
分类:
数据库 时间:
2020-07-01 12:36:50
阅读次数:
60
(一)查看副本集状态要查看副本集状态及每个成员的状态,可以连接到主节点,使用 rs.status() 命令查看: rstest:PRIMARY> rs.status() { "set" : "rstest", "date" : ISODate("2020-06-30T15:06:44.586Z"), ...
分类:
数据库 时间:
2020-06-30 21:00:28
阅读次数:
79