mysql
保护我方胖虎
书山有路勤为径,学海无涯乐作舟
展开
-
Mysql 多列IN操作
语法:SELECT * FROM 表 WHERE (列1,列2) in((列1值,列2值))SELECT * FROM 表 WHERE (列1,列2,列n) in((列1值1,列2值1,列n值1),(列1值2,列2值2,列n值2))示例:SELECT * from base_vehicle WHERE (plate,color) in (("云BQ6541","蓝"))SELECT * from base_vehicle WHERE (plate,color) in (("云BQ6541",原创 2021-12-20 10:38:09 · 8622 阅读 · 0 评论 -
Mysql大数据量分页优化
mysql分页还在用传统的 limit offset分页么?是否发现了大数据下分页卡顿?来看看分页到底该怎么做原创 2021-11-29 21:25:23 · 12403 阅读 · 1 评论 -
MySql报错:unblock with mysqladmin flush-hosts
信息排查# 查看最大错误连接数限制show global variables like 'max_connect_errors';# 查看连接IPselect * from performance_schema.host_cache # 刷新数据库IP缓存 flush hosts # 查看连接SELECT substring_index(host, ':',1) AS host_name, state, count(*) FROM information_schema.process原创 2021-11-29 21:18:02 · 15483 阅读 · 0 评论 -
SpringBoot 项目中 对Mysql ,MongoDB 数据库进行备份恢复操作
SpringBoot 项目中 对Mysql ,MongoDB 数据库进行数据备份与数据恢复原创 2020-04-24 18:29:55 · 6516 阅读 · 4 评论 -
centos7 yum安装mysql 5.7版本
centos7 yum安装mysql 5.7版本1.mysql 下载[root@localhost ~]# cd /usr/local/[root@alibyleilei local]# wget https://dev.mysql.com/get/mysql57-community-release-el7-11.noarch.rpm如果提示wget不存在则先安装 wget命令yum...原创 2020-01-17 16:19:59 · 4435 阅读 · 0 评论