上一页 1 ··· 24 25 26 27 28 29 30 31 32 ··· 45 下一页
摘要: 这两天发现原来的查询效率慢了,使用explain 查看,居然没有使用索引,我的索引是日期类型的,首先想到的是mysql对日期类型的索引的处理机制是不是不同,在where条件里试了几种,发现效果都差不多, where dayid >= ‘20161121’where dayid >= ‘2016-11 阅读全文
posted @ 2022-08-26 19:23 ingemar,fang 阅读(81) 评论(0) 推荐(0)
摘要: MySQL查看最大连接数和修改最大连接数 1、查看最大连接数show variables like '%max_connections%';2、修改最大连接数set GLOBAL max_connections = 200; 以下的文章主要是向大家介绍的是MySQL最大连接数的修改,我们大家都知道M 阅读全文
posted @ 2022-08-26 19:22 ingemar,fang 阅读(1078) 评论(0) 推荐(0)
摘要: InnoDB 引擎独立表空间 innodb_file_per_table_isoftman的博客-CSDN博客 https://blog.csdn.net/gaoxuefeng/article/details/7699400 InnoDB 引擎独立表空间 innodb_file_per_table 阅读全文
posted @ 2022-08-26 19:21 ingemar,fang 阅读(111) 评论(0) 推荐(0)
摘要: Table does not support optimize, doing recreate + analyze instead 提要:1.MySQL官方建议不要经常(每小时或每天)进行碎片整理,一般根据实际情况,只需要每周或者每月整理一次即可。2.OPTIMIZE TABLE只对MyISAM,B 阅读全文
posted @ 2022-08-26 19:20 ingemar,fang 阅读(461) 评论(0) 推荐(0)
摘要: Max_connect_errors – MySQL性能参数详解_wulantian的博客-CSDN博客_max_connect_errors https://blog.csdn.net/wulantian/article/details/9670957 max_connect_errors是一个M 阅读全文
posted @ 2022-08-26 19:19 ingemar,fang 阅读(602) 评论(0) 推荐(0)
摘要: 问题: mysql> GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'root' WITH GRANT OPTION;ERROR 1819 (HY000): Your password does not satisfy the cur 阅读全文
posted @ 2022-08-26 19:17 ingemar,fang 阅读(365) 评论(0) 推荐(0)
摘要: MySQL版本:5.6 Windows版本:Win7 64 MySQL的错误日志记录了MySQL服务器启动、关闭和运行时出错等信息。默认名称为host_name.err,保存在MySQL实例指定的data目录下。但在MySQL的安装目录下的data目录并没有此文件。 查看错误日志的路径: 发现是相对 阅读全文
posted @ 2022-08-26 19:17 ingemar,fang 阅读(170) 评论(0) 推荐(0)
摘要: MySQL加快批量更新 UPDATE优化 - 小昌君 - 博客园 https://www.cnblogs.com/liaokaichang/p/7099564.html 如果是更新为同样的内容,没啥难度,直接在where里面下功夫就好了,大家都懂,我要说的是针对更新内容不一样的情况 首先,先看看网上 阅读全文
posted @ 2022-08-26 19:13 ingemar,fang 阅读(2448) 评论(0) 推荐(0)
摘要: 批量更新 mysql更新语句很简单,更新一条数据的某个字段,一般这样写: UPDATE mytable SET myfield = 'value' WHERE other_field = 'other_value'; 如果更新同一字段为同一个值,mysql也很简单,修改下where即可: UPDAT 阅读全文
posted @ 2022-08-26 19:12 ingemar,fang 阅读(5387) 评论(0) 推荐(0)
摘要: 大批量更新数据mysql批量更新的四种方法 - 风在山路吹 - 博客园 https://www.cnblogs.com/mslagee/p/6509682.html mysql 批量更新如果一条条去更新效率是相当的慢, 循环一条一条的更新记录,一条记录update一次,这样性能很差,也很容易造成阻塞 阅读全文
posted @ 2022-08-26 19:09 ingemar,fang 阅读(4467) 评论(0) 推荐(0)
上一页 1 ··· 24 25 26 27 28 29 30 31 32 ··· 45 下一页