发布时间:2016-07-14 10:46:10
若要在i ≤ R ≤ j 这个范围得到一个随机整数R ,需要用到表达式FLOOR(i + RAND() *(j – i +1))。例如, 若要在7 到 12的范围(包括7和12)内得到一个随机整数, 可使用以下语句:SELECTFLOOR(7 + (RAND() * 6));.........【阅读全文】
发布时间:2016-06-06 19:32:42
点击(此处)折叠或打开<?php$host = '10.9.8.173'; //where is the websocket server$port = 8575;$local = "http://mypc"; //url where this script run$data = "first message"; //data to be send$head = .........【阅读全文】
发布时间:2016-04-11 10:32:50
用 PHP 实现的 Daemon 类。可以在服务器上实现队列或者脱离 crontab 的计划任务。 使用的时候,继承于这个类,并重写 _doTask 方法,通过 main 初始化执行。点击(此处)折叠或打开......【阅读全文】
发布时间:2015-11-05 15:13:46
静态文件server{ server_name ********; index index.html index.htm; root /data/wwwroot/static/; error_log /data/wwwlogs/static_error_log.log; #location / { location ~* \.(jpg|jpeg|gif|png|swf|htm|html)$ { if (-f $request_filename) { .........【阅读全文】
发布时间:2015-09-16 21:00:50
<div class="container"><div class="line number1 index0 alt2"><code class="sql comments">-- ----------------------------</code> </div><div class="line number2 index1 alt1"><code class="sql comments">-- Table structure for `TabName`</code> </div><div class="line number3 index2 alt2">.........【阅读全文】
发布时间:2015-09-01 16:29:33
1.查询待恢复数据的位置或者时间<br /><div>mysqlbinlog --start-datetime='2013-09-10 00:00:00' --stop-datetime='2013-09-10 01:01:01' -d 库名 二进制文件<br /><br /></div>2.导出sql position或者datetime都可以<br />mysqlbinlog --start-position='226587381' --stop-po.........【阅读全文】