window mysql開啟遠程訪問
1. 設置賬戶權限mysql -u root -p 輸入進去后切換到mysql數據庫use mysql 查詢user表...
npm安裝時報錯,出現 certificate has expired
最近使用npm安裝工具屢屢報錯,大致顯示為:npm ERR! request to https://registry.npm.taobao.org/cnpm failed, reason: certificate has expired....
mysql查詢名稱重復的數據
查詢所有重復數據:SELECT * FROM your_table_name WHERE your_name IN ( SELECT your_name  ...
nodejs 文件操作類的封裝
最近做node項目,操作文件特別不方便,于是封裝了工具類挺好用的,分享給大家 const fs = require('fs') const path = require('path') /** &nb...
php es 報錯 No alive nodes. All the 1 nodes seem to be down
php連接es時報錯No alive nodes. All the 1 nodes seem to be down,原因是Elasticsearch開啟了安全認證,查看服務器端響應信息為:received plaintext http traffic on&n...
php字符串壓縮工具
判斷字符串是否需要壓縮,然后再進行壓縮,需要優化的地方很多,比如把壓縮結果保存起來,避免執行2次,判斷是依賴于壓縮的結果大小和原始字符串的大小來判斷的,懶得處理了。代碼如下/** * 字符串壓縮工具 */ class CompressStrUtil...