默认mongoDB 并没有用户限制,任何人都可以连接数据库 默认有 admin 、 config 、local、 test 四个数据库,show dbs 命令开始会显示前三个数据库,因为test 没有数据。 1、内置角色 ####1.1 当前数据库的角色 |角色| 能够执行的操作| | | | | ...
分类:
数据库 时间:
2021-04-02 13:14:47
阅读次数:
0
##spring boot中连接数据库报错500(mybatis) pom.xml中的依赖 <!-- 集成mybatis--> <dependency> <groupId>org.mybatis.spring.boot</groupId> <artifactId>mybatis-spring-boo ...
分类:
数据库 时间:
2021-04-02 13:13:58
阅读次数:
0
1.下载安装包 wget https://dev.mysql.com/get/Downloads/MySQL-8.0/mysql-8.0.11-linux-glibc2.12-x86_64.tar.gz 2.解压文件 tar -zxvf mysql-8.0.11-linux-glibc2.12-x8 ...
分类:
数据库 时间:
2021-04-02 13:11:05
阅读次数:
0
下载 wget http://nginx.org/download/nginx-1.10.3.tar.gz wget http://zlib.net/zlib-1.2.11.tar.gz wget https://ftp.pcre.org/pub/pcre/pcre-8.40.tar.gz wget ...
分类:
系统相关 时间:
2021-04-02 13:08:30
阅读次数:
0
首先安装MySQL服务: wget -i -c http://dev.mysql.com/get/mysql57-community-release-el7-10.noarch.rpm yum -y install mysql57-community-release-el7-10.noarch.rp ...
分类:
数据库 时间:
2021-04-02 12:58:53
阅读次数:
0
1.centos部署go环境 vim /etc/profile export PATH=$PATH:/usr/local/go/bin export GOROOT=/usr/local/go #go包的解压目录 export GOPATH=/opt/GOPATH #表示实际的工作目录 export ...
分类:
Web程序 时间:
2021-04-02 12:53:57
阅读次数:
0
如果现在要开发一个功能: 要为一款交友App实现查找附近的人,并按距离进行排序。 让你来开发这个功能,你会如何实现? MySQL 不合适 你可能想到,把用户用户的经纬度坐标使用MySQL等关系数据库(用户id,经度x,纬度y)存储,但是该如何计算距离和排序呢? 不可能通过遍历来计算所有的用户和目标用 ...
分类:
其他好文 时间:
2021-04-01 13:40:49
阅读次数:
0
1 MySQL 1.1 安装 在root用户权限下 # 创建mysql用户和用户组,同时禁止登陆 shell> groupadd mysql shell> useradd -r -g mysql -s /bin/false mysql # tar解压mysql压缩包,同时把他移到你向安装的位置 sh ...
分类:
数据库 时间:
2021-04-01 13:30:26
阅读次数:
0
1、现象 在 /etc/profile里加了环境变量,但是重启这个环境变量未加入成功 2、原因 可能是被其他加载环境变量的脚本刷掉了 参考:https://blog.csdn.net/my_wings/article/details/102617631 3、解决 在.bashrc里添加 vim ~/ ...
分类:
系统相关 时间:
2021-04-01 13:12:59
阅读次数:
0
一、下载安装包(本文使用1.4版本) 下载地址:https://github.com/alibaba/nacos/releases/tag/1.4.1 二、数据库创建 创建脚本:解压后 nacos \ conf \ nacos-mysql.sql 新建数据库,执行该脚本即可,创建后数据库如下: 三、 ...
分类:
其他好文 时间:
2021-04-01 13:08:13
阅读次数:
0