摘要: 转:https://wuguiyunwei.com/index.php/2016/09/21/319.html [client] port = 3306 socket = /tmp/mysql.sock default-character-set = utf8mb4# 支持utf8mb4编码 [my 阅读全文
posted @ 2018-12-13 16:33 Carry00 阅读(454) 评论(0) 推荐(0) 编辑
摘要: drop、truncate和delete的区别与选择 日志与事务 truncate table则一次性地从表中删除所有的数据并不把单独的删除操作记录记入日志保存,删除行是不能恢复的。并且在删除的过程中不会激活与表有关的删除触发器。执行速度快。 表和索引所占空间。 当表被truncate 后,这个表和 阅读全文
posted @ 2018-12-13 15:48 Carry00 阅读(1736) 评论(0) 推荐(0) 编辑
摘要: redis 常规查询 redis-cli命令的使用 /usr/local/redis/bin/redis-cli -c -a xxpasswdxxx -p 6379 -h 10.10.10.5 --raw 查看key是否存在 exists key 查看key的类型 type key 字符串 stri 阅读全文
posted @ 2018-12-13 10:02 Carry00 阅读(23311) 评论(0) 推荐(0) 编辑
摘要: Consul 和Mysql MGR实现高可用 nameserver 10.10.10.121 nameserver 10.10.10.122 nameserver 10.10.10.123 下载链接 wget https://releases.hashicorp.com/consul/1.7.1/c 阅读全文
posted @ 2018-12-13 09:58 Carry00 阅读(317) 评论(0) 推荐(0) 编辑