1.求每个部门最高薪水的人员名称 解决思路:1 先求每个部门最高的薪水 SELECT e.deptno,MAX(e.sal) as maxsal from emp e GROUP BY e.deptno; 2. 将第一步得出来的结果,当成临时表 SELECT e.deptno,ename,t.max ...
分类:
数据库 时间:
2021-04-27 14:59:14
阅读次数:
0
已经有数据库,做主从复制 服务器 备注 数据库 192.168.137.6 Master 有2个数据库,不同步mysql数据库 192.168.137.3 Slave 没有数据库 Master操作 [mysqld] #############better########### log-bin = / ...
分类:
数据库 时间:
2021-04-27 14:50:54
阅读次数:
0
本地邮箱告警配置 配置本地邮箱告警前,我们要用到mail命令 所以先安装mail命令 [root@mf ~]# yum -y install mailx 使用mail命令发送邮箱 [root@mf ~]# echo "test" | mail -s "20210426" 18808843007@16 ...
分类:
其他好文 时间:
2021-04-27 14:43:11
阅读次数:
0
1.在root权限下登录mysql 2.进入mysql库 mysql>use mysql 3.查看root用户权限 mysql>select User,Host,plugin from user; 4.将root用户的auth_sock改为mysql_native_password mysql>up ...
分类:
数据库 时间:
2021-04-27 14:42:37
阅读次数:
0
MySQL spring.datasource.url=jdbc:mysql://localhost:3306/twitter_test?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=GMT%2B8spring. ...
分类:
移动开发 时间:
2021-04-27 14:38:30
阅读次数:
0
ON DUPLICATE KEY UPDATE作用 先声明一点,ON DUPLICATE KEY UPDATE为Mysql特有语法,这是个坑语句的作用,当insert已经存在的记录时,执行Update 用法 什么意思?举个例子:user_admin_t表中有一条数据如下 表中的主键为id,现要插入一 ...
分类:
其他好文 时间:
2021-04-27 14:30:19
阅读次数:
0
1 Could not execute Write_rows event on table cs3.test01; Duplicate entry ‘7‘ for key ‘test01.PRIMARY‘ 1.1 主库操作 SHOW BINARY LOGS; PURGE BINARY LOGS TO ...
分类:
数据库 时间:
2021-04-27 14:28:23
阅读次数:
0
linux上安装Docker,并解决速度太慢 使用国内阿里云镜像加速安装 1.卸载旧版本 sudo yum remove docker \ docker-client \ docker-client-latest \ docker-common \ docker-latest \ docker-la ...
分类:
其他好文 时间:
2021-04-27 14:25:42
阅读次数:
0
mysql由5.0升级至8.0 1:jar包的变换 <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> <version>8.0.1</version> </dependency> 2 ...
分类:
数据库 时间:
2021-04-27 14:19:35
阅读次数:
0
# CentOS7 rm -f /etc/yum.repos.d/*.repo curl -L "http://mirrors.163.com/.help/CentOS7-Base-163.repo" -o /etc/yum.repos.d/CentOS7-Base-163.repo curl -L ...
分类:
其他好文 时间:
2021-04-27 14:17:29
阅读次数:
0