
数据库
清秋め
高效办公
展开
-
mysql 升级至 5.7.44 遇到的问题
安全漏洞 CVE-2023-0464Oracle MySQL Server 5.7.42及之前版本和8.0.33及之前版本存在安全漏洞,该漏洞源于允许低权限攻击者通过多种协议进行网络访问来危害 MySQL 服务器。从 5.7.42 升级到 5.7.44。原创 2024-03-13 20:30:00 · 3448 阅读 · 1 评论 -
Oracle/Mysql 所有表占用空间大小,按照大小倒序
按照自己节奏和预想来,相信自己。原创 2023-07-04 20:15:00 · 735 阅读 · 0 评论 -
update 单引号转义
【代码】update 单引号转义。原创 2022-10-12 18:13:58 · 763 阅读 · 0 评论 -
mysql数据库对比工具、mysqldiff、数据库表结构变动对比
mysql数据库对比工具、mysqldiff、数据库表结构变动对比1.首先你要有 Navicat Premium 15,然后找到工具-结构同步2.找到需要对比的数据库3.点击比对4.点击部署end~原创 2022-02-28 18:20:21 · 1929 阅读 · 0 评论 -
阿里云centos安装的mysql远程连接报错10060解决办法
阿里云centos安装的mysql远程连接报错10060解决办法:1.开启ssh隧道,地址可在阿里云服务器查看2.ssh连接后 ifconfig3.设置常规连接,地址是服务器的ip如果不行试试这个:https://blog.youkuaiyun.com/u010955892/article/details/72774920...原创 2021-12-10 20:45:00 · 1673 阅读 · 0 评论 -
spring 连接 Redis 切换db
LettuceConnectionFactory lettuceConnectionFactory = (LettuceConnectionFactory) redisTemplate.getConnectionFactory(); lettuceConnectionFactory.setDatabase(xcallRedisDb); redisTemplate.setConnectionFactory(lettuceConnectionFactory); .原创 2021-10-15 14:22:24 · 337 阅读 · 0 评论 -
Lock wait timeout exceeded; try restarting transaction问题解决和复现
1.检查以下问题1.字段没有建索引,用它进行where查询(for update ) 或者 update,没有对应的索引树(B+树),就会进行全表扫描,就要锁表。2.字段建立索引,但是索引失效(比如%号放左边),这时候也会全表扫描,锁表。2.复现1.创建测试数据SET NAMES utf8mb4;SET FOREIGN_KEY_CHECKS = 0;-- ------------------------------ Table structure for student-- ------原创 2021-09-13 11:41:15 · 1390 阅读 · 0 评论 -
MyBatis实体非数据库字段的属性注解
@Transient @TableField(exist = false) private String settings;原创 2021-03-12 21:26:13 · 3990 阅读 · 1 评论 -
1055 Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated
1055 Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column ‘cdr.mst.etime’ which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by解决办法:set sql_mode=‘NO_DI原创 2020-10-29 18:02:43 · 392 阅读 · 0 评论 -
A关联B怎么查出A表里面的数据在B表没有的数据
A关联B怎么查出A表里面的数据在B表没有的数据mysql写法oracle写法mysql写法select * from content a where a.contentID not in (select b.contentID from contentsku b )oracle写法select * from content a where a.contentID not in (select b.contentID from contentsku b where b.contentID is not原创 2020-07-01 13:32:08 · 2579 阅读 · 0 评论