2020年4月30日
摘要:
<?php $str = file_get_contents('/Users/chenbingbing/Downloads/product-slow-report.txt'); $str = preg_replace('#\#\s+(?!Query\s*\d+)[^\n]+#', '', $str)
阅读全文
posted @ 2020-04-30 15:11
bandbandme
阅读(413)
推荐(0)
2020年4月23日
摘要:
导出某个数据库, 并压缩 mysqldump -uroot -p -h127.0.0.1 --triggers --routines --events --hex-blob --single-transaction test_db | gzip > /tmp/20200423-test_db.gz
阅读全文
posted @ 2020-04-23 19:13
bandbandme
阅读(140)
推荐(0)
2020年3月30日
摘要:
【参考: https://blog.csdn.net/youshaoduo/article/details/89228454】 cd $(brew --prefix)/Homebrew/Library/Taps/homebrew/homebrew-core/Formula git log --fol
阅读全文
posted @ 2020-03-30 18:21
bandbandme
阅读(909)
推荐(0)
2020年3月27日
摘要:
$str = $_GET['a'];$client = new swoole_client(SWOOLE_SOCK_TCP);if (!$client->connect("127.0.0.1", 9501, -1)){ exit("connect failed. Error: {$client->e
阅读全文
posted @ 2020-03-27 14:29
bandbandme
阅读(287)
推荐(0)
2020年1月20日
posted @ 2020-01-20 19:06
bandbandme
阅读(462)
推荐(0)
2019年12月23日
posted @ 2019-12-23 12:29
bandbandme
阅读(373)
推荐(0)
2019年12月12日
摘要:
smarty模板中拼接字符串的方法
阅读全文
posted @ 2019-12-12 19:01
bandbandme
阅读(166)
推荐(0)
2019年12月9日
摘要:
/** * 获取搜索条件 * @param $request 搜索条件 * @param $condition 已有条件 */ public function getSearchCondStr($request, $condition = array()) { $validRequest = array(); $objMActivity = new MActivity(); $mark_type
阅读全文
posted @ 2019-12-09 17:27
bandbandme
阅读(195)
推荐(0)
2019年10月31日
posted @ 2019-10-31 10:42
bandbandme
阅读(207)
推荐(0)
2019年10月18日
摘要:
多进程 连接数据库时, 需要重置连接 MySQLi
阅读全文
posted @ 2019-10-18 10:45
bandbandme
阅读(354)
推荐(0)