安装: 1 pip install ansible 添加配置文件: 1 2 3 4 5 6 配置文件查找顺序 * ANSIBLE_CONFIG (环境变量) * ansible.cfg (当前目录下) * .ansible.cfg (用户家目录下) * /etc/ansible/ansible.cfg * -i filename (手动传入配置文件)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70
创建视图 1 2 3 4 5 6 7 8 9 10 11 CREATEALGORITHM=UNDEFINEDDEFINER=`root`@`localhost`SQLSECURITYDEFINERVIEW`boc_vproduct_list`ASSELECT`boc_product`.*`,`boc_product_attr`.*FROM(`boc_product`LEFTJOIN`boc_product_attr`ON((`boc_product`.`id`=`boc_product_attr`.`pid`))) 创建过程 1 2 3 4 CREATEPROCEDURE`test_count_product`(OUTparam1serial)BEGINSELECTcount(*)INTOparam1FROMboc_dis_product;END 生成唯一随机数 1 2 3 4 5 6 7 8 9 10 11 # 非补 0 版本 SELECT FLOOR(100000 + RAND() * 899999) AS random_number FROM target_table WHERE "unique_field" NOT IN (SELECT unique_field FROM target_table) LIMIT 1 #
Q: 1 2 # table 损坏 Table 'table_name' is marked as crashed and should be repaired A: 1 恢复数据表的索引:myisamchk -c -r ../data/tablename/posts.MYI
attrs.where("( el, i, res, param ) => param.test( el.more[0].id )", new RegExp( “^con”, “i”)) attrs.where("( el, i, res, param ) => param( el.more[0].id )", function(el){ console.log(el) })
学习 Golang 有一段时间了,从毫无头绪到四处乱撞,再到如今静下心来安心学习 sdl2 也有小半年了。 今晚重构之前的学习代码,发现如果不写该文,可能会在以后回顾
准备中