SELECT * FROM information_schema.INNODB_TRX
月度归档:2017年09月
【转】PHP strtotime BUG
$t = 1504145678;
print_r(
array(
date('Y-m-d', $t),
date('Y-m-d', strtotime('- 1 month', $t)),
date('Y-m-d', strtotime('- 2 month', $t))
));



nginx location
| Syntax: | location [ = | ~ | ~* | ^~ ] uri { ... }location @name { ... } |
|---|---|
| Default: | — |
| Context: | server, location |
location匹配命令
~ #波浪线表示执行一个正则匹配,区分大小写
~* #表示执行一个正则匹配,不区分大小写
^~ #^~表示普通字符匹配,如果该选项匹配,只匹配该选项,不匹配别的选项,一般用来匹配目录
= #进行普通字符精确匹配
@ #”@” 定义一个命名的 location,使用在内部定向时,例如 error_page, try_files
location 匹配的优先级(与location在配置文件中的顺序无关)
org.apache.solr.common.SolrException: Exception writing document id 663b167f2d661568 to the index; possible analysis error: cannot change DocValues type from SORTED_SET to NUMERIC for field “is_original”
org.apache.solr.common.SolrException: Exception writing document id 663b167f2d661568 to the index; possible analysis error: cannot change DocValues type from SORTED_SET to NUMERIC for field "is_original"
我这里修改tints类型为tint类型,导致新数据无法写入,字段删除完毕了,也reload了没有,只要清理的数据才行
<delete><query>*:*</query></delete> <commit/>
nginx 413 request entity too large
http://nginx.org/en/docs/http/ngx_http_core_module.html#client_max_body_size
| Syntax: | client_max_body_size size; |
|---|---|
| Default: |
client_max_body_size 1m;
|
| Context: | http, server, location |
这次不能忘记了啊
[link]MySQL · BUG分析 · Rename table 死锁分析
PHP openssl 用密码快速加密解密数据
$pass = 'wo shi mi ma';
$method = 'aes128';
# 加密
$enc_data = openssl_encrypt('wo shi shu ju', $method, $pass);
# 解密
$data = openssl_decrypt($enc_data, $method, $pass);
又一个MySQL坑
SELECT * FROM novel where title='一间客栈(连载)' ; SELECT * FROM novel where title='一间客栈(连载) ' ;
SELECT * FROM novel where title=binary(‘一间客栈(连载)’ );
不加binary,MySQL会忽略大小写和首尾空格;
com.zend.verifier_13.6.1.v20170623-1730.jar
如何向BAT大佬提问?
【管理员】互联网劝退师
首先敲定范围
其次不要问简单问题侮辱大佬
再者不要问大问题