随笔分类 -  mysql

mysql 隔离级别与间隙锁等
摘要:数据库隔离级 SQL标准中DB隔离级别有: read uncommitted:可以读到其它transaction 未提交数据 read committed:可以读到其它transaction 已提交数据 repeatable read:一个transaction中相同的查询,每次获取的结果是一样的 阅读全文

posted @ 2019-06-03 18:20 kramer 阅读(3650) 评论(0) 推荐(0)

一次mysql 优化 (Using temporary ; Using filesort)
摘要:遇到一个SQL执行很慢 SQL 如下: SELECT ... FROM tableA WHERE time = 1492044535 and time 阅读全文

posted @ 2017-04-13 14:25 kramer 阅读(20852) 评论(0) 推荐(0)

mysql bin-log 设置
摘要:mysql 的事物日至为[root@localhost mysql]# ls -ldtr mysql-bin.*-rw-rw---- 1 mysql mysql 2222211 4月 9 08:35 mysql-bin.000001-rw-rw---- 1 mysql mysql 2... 阅读全文

posted @ 2015-04-09 08:53 kramer 阅读(2829) 评论(0) 推荐(0)

ERROR 1045 (28000)
摘要:mysql登陆出现这个错误时,解决方法如下:1. 修改mysql配置文件,增加 skip-grant-tables如我的机器是linux 所以要修改/etc/mysql/my.cnf 在mysqld下增加skip-grant-tables。 这是为了让root可以不用密码登陆2. 重启mysql/e... 阅读全文

posted @ 2014-10-08 22:04 kramer 阅读(195) 评论(0) 推荐(0)

导航