摘要: 解除正在死锁的状态有两种方法: 查询是否锁表 show OPEN TABLES where In_use > 0; 查询进程(如果您有SUPER权限,您可以看到所有线程。否则,您只能看到您自己的线程) show processlist 杀死进程id(就是上面命令的id列) kill id 第二种: 阅读全文
posted @ 2020-06-30 16:51 nephyzw 阅读(858) 评论(0) 推荐(0) 编辑
摘要: 解决部分字中文字解析不出,报错的问题 /** * php获取中文字符拼音首字母 * @param $str * @return null|string */ function getFirstCharter($str) { if (empty($str)) { return 0; } try { $ 阅读全文
posted @ 2020-04-30 18:05 nephyzw 阅读(630) 评论(0) 推荐(0) 编辑
摘要: 我们先查出偏移后的主键,再根据主键索引查询数据块的所有内容即可优化。 mysql> select a.* from member as a inner join (select id from member where gender=1 limit 300000,1) as b on a.id=b. 阅读全文
posted @ 2020-02-20 14:55 nephyzw 阅读(622) 评论(0) 推荐(0) 编辑
摘要: 一、VirtualBox要让Centos7和主机共享文件夹,要安装增强功能,虚拟机如果不是Centos7. 可以通过启动虚拟机->点击设备安装增强功能。 centos7 安装增加功能步骤如下 打开virtualbox安装目录找到VBoxGuestAdditionsISO文件 点击光驱,选中VBoxG 阅读全文
posted @ 2019-12-16 14:29 nephyzw 阅读(2844) 评论(0) 推荐(0) 编辑
摘要: vim /etc/hosts 192.30.253.112 github.com 151.101.185.194 github.global.ssl.fastly.net 阅读全文
posted @ 2019-12-13 15:07 nephyzw 阅读(837) 评论(0) 推荐(0) 编辑
摘要: cd %teamcity.build.checkoutDir%;source /etc/profile;cnpm install;npm run build --http://api接口地址;cd ./dist;rm -rf ./tar.tar.gztar -czf tar.tar.gz *; 阅读全文
posted @ 2019-09-10 15:31 nephyzw 阅读(286) 评论(0) 推荐(0) 编辑
摘要: # 修改 .env 文件 MYSQL_VERSION=5.7 # 默认为 latest #停止mysql容器 docker-compose stop mysql # 删除旧数据库数据 rm -rf ~/.laradock/data/mysql # !注意重启docker应用,然后再构建新 mysql 阅读全文
posted @ 2019-08-12 17:53 nephyzw 阅读(508) 评论(0) 推荐(0) 编辑
摘要: 今天在sentry报告了一个诡异的错误 具体就是ping++回调的金额与订单金额不一致. 查看数据时发现订单中金额为532.8而ping++中金额为53279,wtf,为什么会少一分钱呢 于是尝试 输出 532.8 * 100 (ps: 因为ping++支付金额单位为分) 结果 53280.0 bu 阅读全文
posted @ 2019-07-01 20:33 nephyzw 阅读(267) 评论(0) 推荐(0) 编辑