0
点赞
收藏
分享

微信扫一扫

linux回炉第二十三天

GG_lyf 2023-01-13 阅读 67

二叉树

红黑树

B-Tree

B+Tree

select * from students where name like 'Wang%';
explain select * from students where name like 'Wang%';

select @@profiling;
set profiling=on;

select * from students;
show profiles;
show profile for query 2;

begin;
instert students (name,age) values ('wangwangwang',20);
select * from students;
rollback;

commit;

select * from information_schema.innodb_trx;

隔离级别

脏读

不可重复读

幻读

加读锁

读位提交

可以出现

可以出现

可以出现


读已提交

不允许出现

可以出现

可以出现


可重复读

不允许出现

不允许出现

可以出现


序列号

不允许出现

不允许出现

不允许出现


事务日志
错误日志
二进制日志
慢查询日志
中继日志
通用日志

show variables like '%innodb_log%';

select @@sql_log_bin;

show master logs;
show binary logs;
show master status\G

mysqladmin flush-logs

举报

相关推荐

0 条评论