上一页 1 ··· 4 5 6 7 8 9 10 11 12 13 下一页
摘要: 花了将近半个月的时间终于完成了Django的初步学习,从安装到实践MVTC架构,再到写简易的model和view,踩过不少坑,因此这里分享出来,也算一个阶段性的总结。 1.安装Django pip install Django==1.8 2.为方便起见安装ipython pip install ip 阅读全文
posted @ 2018-05-23 17:29 realcp1018 阅读(1253) 评论(0) 推荐(0)
摘要: 一、字典定义 二、字典元素添加 三、字典元素删除 四、字典查询 五、其他常见的字典操作函数 按从左往右从上往下的顺序,其作用依次为: 阅读全文
posted @ 2018-05-18 17:30 realcp1018 阅读(450) 评论(0) 推荐(0)
摘要: 官网地址:https://dev.mysql.com/downloads/mysql/ 我这里是RHEL6.5的系统,因此选择RedHat 6 x86,64bit操作系统 下载第一个RPM Bundle即可--mysql-8.0.11-1.el6.x86_64.rpm-bundle.tar。 目前M 阅读全文
posted @ 2018-05-16 11:07 realcp1018 阅读(7658) 评论(0) 推荐(1)
摘要: How MySQL Opens and Closes Tables:https://dev.mysql.com/doc/refman/5.7/en/table-cache.html 其他可供参考的文章有: 关于表限制参数的使用:https://dba.stackexchange.com/questi 阅读全文
posted @ 2018-04-23 18:42 realcp1018 阅读(12361) 评论(0) 推荐(0)
摘要: 目前主要的MongoDB高可用架构包含: 主从架构 Replica set副本集方式 sharding分片 主从架构 Replica set副本集方式 sharding分片 本文不讨论sharding,在另一篇博客中单独描述了sharding的架构和搭建方式,参考:MongoDB Sharding分 阅读全文
posted @ 2018-04-17 13:49 realcp1018 阅读(1749) 评论(0) 推荐(0)
摘要: 官网参考:https://dev.mysql.com/doc/refman/5.6/en/innodb-locks-set.html MySQL把读操作分为两大类:锁定读和非锁定读(即locking read和nonlocking read),所谓非锁定读就是不对表添加事务锁的读操作,如Repeat 阅读全文
posted @ 2018-04-17 12:47 realcp1018 阅读(5730) 评论(0) 推荐(0)
摘要: 本文参考自MySQL官网5.6版本参考手册的14.5.1,此小节说明MySQL的锁分类,此外还有14.5.2小节和14.5.3小节详述事务隔离级别和各SQL语句的加锁模式,后两节将单独写2篇笔记。 https://dev.mysql.com/doc/refman/5.6/en/innodb-lock 阅读全文
posted @ 2018-04-17 10:14 realcp1018 阅读(5203) 评论(0) 推荐(1)
摘要: 参考自:https://dev.mysql.com/doc/refman/5.6/en/innodb-transaction-isolation-levels.html 第一部分:概述 InnoDB遵循SQL:1992标准,提供READ UNCOMMITTED, READ COMMITTED, RE 阅读全文
posted @ 2018-04-16 17:23 realcp1018 阅读(1269) 评论(1) 推荐(0)
摘要: 最近在部署Zabbix时需要用脚本取得一些MySQL的返回参数,需要是numberic格式的,但是调用脚本时总是输出这一句: Warning: Using a password on the command line interface can be insecure. grep -v也是处理不掉的 阅读全文
posted @ 2018-04-12 16:51 realcp1018 阅读(6469) 评论(0) 推荐(0)
摘要: MySQL主从复制报错如下: 2018-04-11 09:11:16 2400 [Note] Slave SQL thread initialized, starting replication in log 'binlog.000042' at position 1934531, relay lo 阅读全文
posted @ 2018-04-11 12:39 realcp1018 阅读(2261) 评论(0) 推荐(0)
上一页 1 ··· 4 5 6 7 8 9 10 11 12 13 下一页