2014年12月16日
摘要: 看书,在书上看到一句话,防止io饥饿,google了一下,也没有找到相关的解释,究竟什么是io饥饿。 阅读全文
posted @ 2014-12-16 13:42 语辰 阅读(276) 评论(0) 推荐(0) 编辑
  2014年2月27日
摘要: [root@localhost ~]# tar xf mysql-5.6.10.tar.gz [root@localhost ~]# cd mysql-5.6.10[root@localhost mysql-5.6.10]# cmake . -DCMAKE_INSTALL_PREFIX=/usr/local/mysql -DDWITH_EXTRA_CHARSETS:STRING=all-bash: cmake: command not found[root@localhost mysql-5.6.10]#yum -y install cmake[root@localhost mysql-5.6 阅读全文
posted @ 2014-02-27 10:24 语辰 阅读(1655) 评论(0) 推荐(0) 编辑
  2014年1月20日
摘要: >>> import bsddb3>>> bsddb3.__file__'/usr/local/lib/python2.6/site-packages/bsddb3/__init__.pyc' 阅读全文
posted @ 2014-01-20 16:48 语辰 阅读(240) 评论(0) 推荐(0) 编辑
  2014年1月15日
摘要: IP:192.168.21.173子网掩码:255.255.255.0网关:192.168.21.2DNS:8.8.8.88.8.4.41、设置IP地址、网关ee /etc/rc.conf #编辑ifconfig_em0="inet 192.168.21.173 netmask 255.255.255.0" #设置IP地址,子网掩码defaultrouter="192.168.21.2" #设置网关hostname="FreeBSD" #设置主机名字esc 回车,再按a保存系统运维 温馨提醒:qihang01原创内容版权所有,转载请注 阅读全文
posted @ 2014-01-15 15:39 语辰 阅读(3299) 评论(0) 推荐(0) 编辑
  2014年1月8日
摘要: bit_count函数的含义用来计算二进制数中包含1的个数。selectBIT_COUNT(10);因为10转成二进制是1010,所以该结果就是2。bit_or函数的含义就是对两个二进制数进行或运算。如: 1100或 0101-------------- 1101摘自:http://www.01happy.com/mysql-bit_count-bit_or/ 阅读全文
posted @ 2014-01-08 14:08 语辰 阅读(207) 评论(0) 推荐(0) 编辑
摘要: SELECT s.* FROM person p INNER JOIN shirt sON s.owner = p.idWHERE p.name LIKE 'Lilliana%'AND s.color 'white'; 阅读全文
posted @ 2014-01-08 13:45 语辰 阅读(252) 评论(0) 推荐(0) 编辑
摘要: To find names containing exactly five characters, use “^”and “$”to match the beginning and end of thename, and five instances of “.”in between:mysql> SELECT * FROM pet WHERE name REGEXP '^.....$';或者SELECT * FROM pet WHERE name REGEXP '^.{5}$'; 阅读全文
posted @ 2014-01-08 11:52 语辰 阅读(211) 评论(0) 推荐(0) 编辑
摘要: alter table fx.pet modify column `species` varchar(20) binary; 阅读全文
posted @ 2014-01-08 11:51 语辰 阅读(144) 评论(0) 推荐(0) 编辑
摘要: To find names containing a “w”, use this query:SELECT * FROM pet WHERE name REGEXP 'w'; 阅读全文
posted @ 2014-01-08 11:46 语辰 阅读(402) 评论(0) 推荐(0) 编辑
摘要: select * from pet where species regexp '^c'; 阅读全文
posted @ 2014-01-08 11:31 语辰 阅读(120) 评论(0) 推荐(0) 编辑