摘要: grant 作用在存储过程、函数上: grant execute on procedure testdb.pr_add to 'dba'@'localhost' grant execute on function testdb.fn_add to 'dba'@'localhost' 查看当前用户(自 阅读全文
posted @ 2016-05-18 20:40 雨落知音 阅读(451) 评论(0) 推荐(0) 编辑
摘要: ab使用范例: 要执行 1000 次的 connection, 20 次的 concurrent (并行, 同时): ab 参数: Options are: 阅读全文
posted @ 2016-05-17 20:38 雨落知音 阅读(358) 评论(0) 推荐(0) 编辑
摘要: 上一篇写了linux下定时任务,这一篇转发一个windows下定时备份数据库。 第一种:新建批处理文件 backup.dat,里面输入以下 注意:批处理命令中路径里有空格的话,必须在路径上加上双引号! 关于时间参数的参考: %date:~0,10% //提取年月日信息 %date:~-3% //提取 阅读全文
posted @ 2016-05-17 20:36 雨落知音 阅读(252) 评论(0) 推荐(0) 编辑
摘要: 最近由于工作原因接触的linux的定时拉取远程数据库任务,故在此写下一些尚未测试的写法。 为当前用户创建cron服务 1. 键入 crontab -e 编辑crontab服务文件 例如 文件内容如下: */2 * * * * /bin/sh /home/admin/jiaoben/buy/delet 阅读全文
posted @ 2016-05-17 20:26 雨落知音 阅读(376) 评论(0) 推荐(0) 编辑
摘要: controller\hello renderPartial("index"); } } ?> view\hello\about.php hello about! view\hello\index.php hello index! render("about",array("v_hello_str"=>"hello... 阅读全文
posted @ 2016-05-17 18:18 雨落知音 阅读(292) 评论(0) 推荐(0) 编辑
摘要: controller\helloController.php<?php namespace app\controllers; use yii\web\Controller; class helloController extends Controller { public $layout = "co 阅读全文
posted @ 2016-05-17 18:09 雨落知音 阅读(245) 评论(0) 推荐(0) 编辑
摘要: 禁用布局 阅读全文
posted @ 2016-05-17 17:30 雨落知音 阅读(201) 评论(0) 推荐(0) 编辑
摘要: cookie操作 阅读全文
posted @ 2016-05-17 17:19 雨落知音 阅读(191) 评论(0) 推荐(0) 编辑
摘要: session操作 阅读全文
posted @ 2016-05-17 17:09 雨落知音 阅读(215) 评论(0) 推荐(0) 编辑
摘要: YII基础准备1.命名空间<?php /****假设有三个同名的类,输出的值为A,B,C****/ use a\b\c\apple; use d\e\f\apple as bApple; use g\h\i\apple; $app = new apple();//A $app = new bAppl 阅读全文
posted @ 2016-05-17 16:57 雨落知音 阅读(328) 评论(0) 推荐(0) 编辑