- 博客(5)
- 论坛 (3)
- 问答 (1)
- 收藏
- 关注
转载 mysql磁盘满时操作
当磁盘空间写满了之后,MySQL是无法再写入任何数据的,包括对表数据的写入,以及binlog、binlog-index等文件。 当然了,因为InnoDB是可以把脏数据先放在内存里,所以不会立刻表现出来无法写入,除非开启了binlog,写入请求才会被阻塞。 当MySQL检测到磁盘空间满了,它会: 每分钟:检查空间是否得到释放,以便写入新数据。当发现有剩余空间了,就会继续写入数据,一切照
2015-09-23 22:45:43
2966
翻译 que0que.cc:: Short introduction to query graphs
A query graphconsists of nodes linked to each other in various ways. The execution starts atque_run_threads() which takes a que_thr_t parameter. que_thr_t contains twofields that control query graph e
2015-09-19 22:39:49
653
原创 select ... for update& lock in share mode加锁情况
今天测试了下两种情况下加锁情况,怎么加锁个数不一样。for update的话,二级索引对应聚集索引会加锁,lock in share mode的话,不会加。 for update对应聚集索引加了锁,但是lock in share mode没加 1、表结构: CREATE TABLE `c` ( `id1` int(11) NOT NULL DEFAULT '0', `id2`
2015-09-18 23:15:29
501
原创 innodb_flush_method&innodb_flush_log_at_trx_commit
1、innodb_flush_log_at_trx_commit Innodb_flush_log_at_trx_commit控制何时刷磁盘,而innodb_flush_method控制如何刷。 innodb_flush_log_at_trx_commit 参数解释: 0(延迟写): log_buff --每隔1秒-->log_file —实时—> disk 1(实时写,实时刷):lo
2015-09-16 21:16:24
670
原创 ERROR 1820 (HY000): You must SET PASSWORD before executing this statement
刚安装好mysql5.7后,默认带有密码,但是不知道是什么。 添加skip-grant-tables启动,进去改好密码后,重启。 再次执行语句时报错:ERROR 1820 (HY000): You must SET PASSWORD before executing this statement 需要使用下面语句重新设置一次密码: SET PASSWORD = PASSWORD('123
2015-09-05 19:53:39
769
空空如也
yzs87的留言板
发表于 2020-01-02 最后回复 2020-01-02
写博客能不能添加个撤销键
发表于 2018-01-04 最后回复 2018-01-06
innodb插入意向锁如何使用
发表于 2015-06-07 最后回复 2015-06-07
innodb插入意向锁如何使用
2015-06-07
TA创建的收藏夹 TA关注的收藏夹
TA关注的人 TA的粉丝