{"id":30154,"date":"2025-04-20T16:56:09","date_gmt":"2025-04-20T08:56:09","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/30154.html"},"modified":"2025-04-20T16:56:09","modified_gmt":"2025-04-20T08:56:09","slug":"%e6%9c%8d%e5%8a%a1%e5%99%a8%e5%8f%8amysql%e5%ae%89%e5%85%a8%e8%ae%be%e7%bd%ae%e6%8c%87%e5%8d%97","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/30154.html","title":{"rendered":"\u670d\u52a1\u5668\u53caMySQL\u5b89\u5168\u8bbe\u7f6e\u6307\u5357"},"content":{"rendered":"<\/p>\n<h4>\u6587\u7ae0\u76ee\u5f55<\/h4>\n<ul>\n<li>\n<ul>\n<li>Linux\u5b89\u5168\u914d\u7f6e<\/li>\n<li>\n<ul>\n<li>1\u3001\u5bc6\u7801\u590d\u6742\u5ea6\u7b56\u7565<\/li>\n<li>2\u3001\u767b\u9646\u5931\u8d25\u7b56\u7565<\/li>\n<li>3\u3001\u767b\u5f55\u8d85\u65f6\u7b56\u7565<\/li>\n<li>4\u3001\u5b89\u5168\u65e5\u5fd7\u8bb0\u5f55<\/li>\n<li>5\u3001\u8d26\u6237\u7b56\u7565<\/li>\n<li>\n<ul>\n<li>5.1 \u521b\u5efa\u7cfb\u7edf\u7ba1\u7406\u5458&#xff08;\u5e94\u8be5\u5bf9\/var\u8fdb\u884c\u6388\u6743&#xff0c;\u4fee\u6539\u53ef\u80fd\u4f1a\u5f71\u54cd\u5230ssh\u767b\u5f55&#xff09;<\/li>\n<li>5.2 \u521b\u5efa\u5b89\u5168\u7ba1\u7406\u5458&#xff08;\u5e94\u8be5\u5bf9\/etc\u8fdb\u884c\u6388\u6743&#xff09;<\/li>\n<li>5.3 \u521b\u5efa\u5ba1\u8ba1\u7ba1\u7406\u5458&#xff08;\u5e94\u8be5\u5bf9\/var\/log\u8fdb\u884c\u6388\u6743&#xff09;<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li>MySQL\u5b89\u5168\u914d\u7f6e<\/li>\n<li>\n<ul>\n<li>1\u3001\u5b89\u88c5validata_password\u63d2\u4ef6<\/li>\n<li>2\u3001\u521b\u5efa\u7cfb\u7edf\u7ba1\u7406\u5458\u7528\u6237<\/li>\n<li>3\u3001\u521b\u5efa\u5b89\u5168\u7ba1\u7406\u5458\u7528\u6237<\/li>\n<li>4\u3001\u521b\u5efa\u5ba1\u8ba1\u7ba1\u7406\u5458\u7528\u6237<\/li>\n<li>5\u3001\u8bbe\u7f6e\u9519\u8bef\u767b\u5f55\u9650\u5236<\/li>\n<li>6\u3001\u767b\u9646\u8d85\u65f6\u65f6\u95f4<\/li>\n<\/ul>\n<\/li>\n<li>\u603b\u7ed3<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p> \u5728\u5b89\u5168\u8bbe\u7f6e\u4e2d&#xff0c;\u5bc6\u7801\u590d\u6742\u5ea6\u3001\u767b\u5f55\u5931\u8d25\u548c\u767b\u5f55\u8d85\u65f6\u7b49\u7b56\u7565\u662f\u5173\u952e\u7684\u5b89\u5168\u63aa\u65bd\u3002\u8fd9\u4e9b\u63aa\u65bd\u53ef\u4ee5\u6709\u6548\u9632\u6b62\u672a\u6388\u6743\u8bbf\u95ee&#xff0c;\u5e76\u589e\u5f3a\u7cfb\u7edf\u7684\u6574\u4f53\u5b89\u5168\u6027\u3002\u63a5\u4e0b\u6765\u6211\u4eec\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u914d\u7f6e\u8fd9\u4e9b\u5b89\u5168\u7b56\u7565\u3002 <\/p>\n<h3>Linux\u5b89\u5168\u914d\u7f6e<\/h3>\n<h4>1\u3001\u5bc6\u7801\u590d\u6742\u5ea6\u7b56\u7565<\/h4>\n<p>\u5bc6\u7801\u590d\u6742\u5ea6\u89c4\u5219\u786e\u4fdd\u7528\u6237\u521b\u5efa\u7684\u5bc6\u7801\u8db3\u591f\u5f3a\u58ee&#xff0c;\u96be\u4ee5\u88ab\u731c\u6d4b\u6216\u66b4\u529b\u7834\u89e3\u3002\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u51e0\u79cd\u65b9\u5f0f\u6765\u5b9e\u73b0&#xff1a;<\/p>\n<ul>\n<li>\u957f\u5ea6\u8981\u6c42&#xff1a;\u8bbe\u5b9a\u6700\u5c0f\u5bc6\u7801\u957f\u5ea6&#xff08;\u4f8b\u5982\u81f3\u5c118\u4e2a\u5b57\u7b26&#xff09;\u3002<\/li>\n<li>\u5b57\u7b26\u79cd\u7c7b&#xff1a;\u8981\u6c42\u5bc6\u7801\u5305\u542b\u5927\u5199\u5b57\u6bcd\u3001\u5c0f\u5199\u5b57\u6bcd\u3001\u6570\u5b57\u4ee5\u53ca\u7279\u6b8a\u5b57\u7b26\u3002<\/li>\n<li>\u5386\u53f2\u8bb0\u5f55&#xff1a;\u4e0d\u5141\u8bb8\u4f7f\u7528\u6700\u8fd1\u51e0\u6b21\u4f7f\u7528\u7684\u65e7\u5bc6\u7801\u3002<\/li>\n<\/ul>\n<p>\u793a\u4f8b&#xff1a;\u914d\u7f6e\u6709\u6548\u671f90\u5929\u3001\u957f\u5ea6\u4e0d\u5c11\u4e8e8\u4f4d\u3001\u81f3\u5c113\u79cd\u5b57\u7b26\u7684\u5bc6\u7801\u7b56\u7565\u3002<\/p>\n<p>#vim \/etc\/login.defs<br \/>\nPASS_MAX_DAYS   90 (\u5bc6\u7801\u6709\u6548\u671f)<br \/>\nPASS_MIN_DAYS   0  &#xff08;\u5bc6\u7801\u4fee\u6539\u95f4\u9694&#xff09;<br \/>\nPASS_MIN_LEN    8 &#xff08;\u5bc6\u7801\u6700\u5c0f\u957f\u5ea6&#xff09;<br \/>\nPASS_WARN_AGE   7 &#xff08;\u5bc6\u7801\u5230\u671f\u524d\u8b66\u544a&#xff09;<\/p>\n<p>\u8bbe\u7f6e\u5305\u542b\u5b57\u7b26\u3001\u5927\u5199\u5b57\u6bcd\u3001\u5c0f\u5199\u5b57\u6bcd<\/p>\n<p># cp \/etc\/pam.d\/system-auth \/etc\/pam.d\/system-auth.bak<br \/>\n# vim \/etc\/pam.d\/system-auth<br \/>\n\u627e\u5230\u5305\u542bpam_pwquality.so\u6a21\u5757\u7684\u884c&#xff0c;\u5c06\u539f\u6709\u884c\u6ce8\u91ca\u5e76\u4fee\u6539\u4e3a\u5982\u4e0b\u7684\u65b0\u914d\u7f6e&#xff1a;<br \/>\npassword requisite pam_pwquality.so try_first_pass local_users_only retry&#061;3 authtok_type&#061; minlen&#061;8 lcredit&#061;-1 ucredit&#061;-1 dcredit&#061;-1 ocredit&#061;-1 enforce_for_root<br \/>\n# minlen&#061;8 \u5bc6\u7801\u6700\u5c0f\u957f\u5ea6\u4e3a8\u4e2a\u5b57\u7b26\u3002<br \/>\n# lcredit&#061;-1 \u5bc6\u7801\u5e94\u5305\u542b\u7684\u5c0f\u5199\u5b57\u6bcd\u7684\u81f3\u5c11\u4e00\u4e2a<br \/>\n# ucredit&#061;-1 \u5bc6\u7801\u5e94\u5305\u542b\u7684\u5927\u5199\u5b57\u6bcd\u81f3\u5c11\u4e00\u4e2a<br \/>\n# dcredit&#061;-1 \u5c06\u5bc6\u7801\u5305\u542b\u7684\u6570\u5b57\u81f3\u5c11\u4e3a\u4e00\u4e2a<br \/>\n# ocredit&#061;-1 \u8bbe\u7f6e\u5176\u4ed6\u7b26\u53f7\u7684\u6700\u5c0f\u6570\u91cf&#xff0c;\u4f8b\u5982&#064;&#xff0c;&#xff03;\u3001! $&#xff05;\u7b49&#xff0c;\u81f3\u5c11\u8981\u6709\u4e00\u4e2a<br \/>\n# enforce_for_root \u786e\u4fdd\u5373\u4f7f\u662froot\u7528\u6237\u8bbe\u7f6e\u5bc6\u7801&#xff0c;\u4e5f\u5e94\u5f3a\u5236\u6267\u884c\u590d\u6742\u6027\u7b56\u7565<\/p>\n<p>\u6d4b\u8bd5&#xff1a;\u4f7f\u7528passwd\u6d4b\u8bd5\u662f\u5426\u914d\u7f6e\u6210\u529f <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250420085605-6804b6a535778.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h4>2\u3001\u767b\u9646\u5931\u8d25\u7b56\u7565<\/h4>\n<p>\u767b\u5f55\u5931\u8d25\u7b56\u7565\u7528\u4e8e\u9650\u5236\u975e\u6cd5\u5c1d\u8bd5\u767b\u5f55\u7684\u6b21\u6570&#xff0c;\u4ee5\u51cf\u5c11\u901a\u8fc7\u66b4\u529b\u7834\u89e3\u653b\u51fb\u6210\u529f\u7684\u673a\u4f1a\u3002\u901a\u5e38\u5305\u62ec\u9501\u5b9a\u8d26\u6237\u4e00\u6bb5\u65f6\u95f4\u6216\u6c38\u4e45\u9501\u5b9a\u76f4\u81f3\u7ba1\u7406\u5458\u89e3\u9501\u3002 \u793a\u4f8b&#xff1a;\u914d\u7f6e3\u6b21\u9501\u5b9a\u3001\u9501\u5b9a\u65f6\u957f60\u5206\u949f\u7684\u767b\u9646\u5931\u8d25\u7b56\u7565\u3002<\/p>\n<p># vim \/etc\/pam.d\/sshd<br \/>\n\u65b0\u589e\u4ee5\u4e0b\u914d\u7f6e&#xff1a;<br \/>\nauth required pam_tally2.so onerr&#061;fail deny&#061;3 unlock_time&#061;1800 even_deny_root root_unlock_time&#061;300<br \/>\n# root_unlock_time: \u8868\u793aroot\u7528\u6237\u9501\u5b9a\u65f6\u95f4<br \/>\n# unlock_time: \u8868\u793a\u666e\u901a\u7528\u6237\u9501\u5b9a\u65f6\u95f4<br \/>\n# onerr&#061;fail: \u8868\u793a\u8fde\u7eed\u5931\u8d25<br \/>\n# deny&#061;3: \u8868\u793a\u8d85\u8fc73\u6b21\u767b\u5f55\u5931\u8d25\u5373\u9501\u5b9a<br \/>\n# \u5982\u679c\u4e0d\u60f3\u9650\u5236root\u7528\u6237&#xff0c;\u53ef\u4ee5\u53bb\u6389:even_deny_root root_unlock_time&#061;300\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250420085605-6804b6a55b932.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> \u6ce8\u610f&#xff1a;auth\u8981\u653e\u5230\u7b2c\u4e8c\u884c&#xff0c;\u5426\u5219\u4e0d\u751f\u6548&#xff01;&#xff01; \u6d4b\u8bd5&#xff1a; <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250420085605-6804b6a597a49.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/>\u5982\u679c\u8981\u67e5\u770b\u67d0\u4e2a\u7528\u6237\u7684\u767b\u9646\u5931\u8d25\u6b21\u6570&#xff0c;\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u67e5\u770b&#xff1a;<\/p>\n<p>pam_tally2   &#8211;user luweihao<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250420085605-6804b6a5bd734.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> \u91cd\u7f6e\u67d0\u4e2a\u7528\u6237\u7684\u767b\u9646\u5931\u8d25\u6b21\u6570&#xff1a;<\/p>\n<p>pam_tally2   &#8211;user luweihao &#8211;reset<\/p>\n<h4>3\u3001\u767b\u5f55\u8d85\u65f6\u7b56\u7565<\/h4>\n<p>\u767b\u9646\u8d85\u65f6\u7b56\u7565\u4e3a\u4e86\u9632\u6b62\u4f1a\u8bdd\u88ab\u957f\u65f6\u95f4\u95f2\u7f6e\u800c\u88ab\u4ed6\u4eba\u5229\u7528&#xff0c;\u5e94\u8bbe\u7f6e\u5408\u7406\u7684\u4f1a\u8bdd\u8d85\u65f6\u65f6\u95f4&#xff0c;\u5373\u5f53\u7528\u6237\u65e0\u6d3b\u52a8\u72b6\u6001\u8fbe\u5230\u4e00\u5b9a\u65f6\u9650\u540e\u81ea\u52a8\u65ad\u5f00\u8fde\u63a5\u3002 \u793a\u4f8b&#xff1a;\u914d\u7f6e\u4f1a\u8bdd\u8d85\u65f6\u65f6\u95f4\u4e3a30\u5206\u949f\u3002<\/p>\n<p># vim \/etc\/profile<br \/>\n\u6ce8\u610f&#xff1a;\u5728\u672b\u5c3e\u589e\u52a0&#xff08;\u5355\u4f4d\u662fs&#xff09;<br \/>\nTMOUT&#061;1800<\/p>\n<h4>4\u3001\u5b89\u5168\u65e5\u5fd7\u8bb0\u5f55<\/h4>\n<p>\u6709\u6548\u7684\u65e5\u5fd7\u8bb0\u5f55\u4e0d\u4ec5\u53ef\u4ee5\u5e2e\u52a9\u7ba1\u7406\u5458\u76d1\u63a7\u7cfb\u7edf\u6d3b\u52a8&#xff0c;\u8fd8\u80fd\u5728\u53d1\u751f\u5b89\u5168\u4e8b\u4ef6\u65f6\u63d0\u4f9b\u5173\u952e\u4fe1\u606f\u7528\u4e8e\u8c03\u67e5\u548c\u54cd\u5e94\u3002 \u793a\u4f8b&#xff1a;\u542f\u7528auditd\/rsyslog<\/p>\n<p>service auditd status<br \/>\nservice rsyslog status<\/p>\n<h4>5\u3001\u8d26\u6237\u7b56\u7565<\/h4>\n<p>\u5408\u7406\u5730\u5206\u914d\u4e0d\u540c\u7684\u7ba1\u7406\u89d2\u8272\u5bf9\u4e8e\u786e\u4fdd\u7cfb\u7edf\u7684\u5b89\u5168\u6027\u81f3\u5173\u91cd\u8981\u3002\u901a\u8fc7\u521b\u5efa\u7cfb\u7edf\u7ba1\u7406\u5458\u3001\u5b89\u5168\u7ba1\u7406\u5458\u548c\u5ba1\u8ba1\u7ba1\u7406\u5458\u7b49\u89d2\u8272&#xff0c;\u5e76\u4e3a\u6bcf\u4e2a\u89d2\u8272\u8bbe\u5b9a\u76f8\u5e94\u7684\u6743\u9650&#xff0c;\u53ef\u4ee5\u6709\u6548\u5730\u5b9e\u73b0\u804c\u8d23\u5206\u79bb&#xff0c;\u51cf\u5c11\u5185\u90e8\u5a01\u80c1\u98ce\u9669\u3002<\/p>\n<h5>5.1 \u521b\u5efa\u7cfb\u7edf\u7ba1\u7406\u5458&#xff08;\u5e94\u8be5\u5bf9\/var\u8fdb\u884c\u6388\u6743&#xff0c;\u4fee\u6539\u53ef\u80fd\u4f1a\u5f71\u54cd\u5230ssh\u767b\u5f55&#xff09;<\/h5>\n<p>groupadd sysgroup<br \/>\nuseradd sys -g sysgroup<br \/>\npasswd sys<br \/>\nusermod -G sysgroup sys<br \/>\nmkdir \/vartest<br \/>\nchown -R sys:sysgroup \/vartest<br \/>\nchmod 741 \/vartest<\/p>\n<h5>5.2 \u521b\u5efa\u5b89\u5168\u7ba1\u7406\u5458&#xff08;\u5e94\u8be5\u5bf9\/etc\u8fdb\u884c\u6388\u6743&#xff09;<\/h5>\n<p>useradd -d \/security security<br \/>\npasswd security<br \/>\nchown -R security:security \/security<br \/>\nchmod 700 \/security<\/p>\n<h5>5.3 \u521b\u5efa\u5ba1\u8ba1\u7ba1\u7406\u5458&#xff08;\u5e94\u8be5\u5bf9\/var\/log\u8fdb\u884c\u6388\u6743&#xff09;<\/h5>\n<p>useradd audit<br \/>\npasswd audit<br \/>\nvim \/etc\/sudoers<br \/>\n\u6dfb\u52a0<br \/>\naudit     ALL &#061; (ALL) NOPASSWD: \/usr\/bin\/cat , \/usr\/bin\/less , \/usr\/bin\/more , \/usr\/bin\/tail , \/usr\/bin\/head<br \/>\nchown -R audit:audit \/var\/log<br \/>\nchmod 700 \/var\/log<\/p>\n<h3>MySQL\u5b89\u5168\u914d\u7f6e<\/h3>\n<p>MySQL\u65e0\u6cd5\u76f4\u63a5\u8fdb\u884c\u5bc6\u7801\u7b56\u7565\u914d\u7f6e&#xff0c;\u9700\u8981\u5b89\u88c5\u63d2\u4ef6\u3002MySQL5.7\u9ed8\u8ba4\u6709validata_password\u7684\u63d2\u4ef6&#xff0c;\u4f46\u662f\u6ca1\u6709\u5b89\u88c5&#xff0c;\u9700\u8981\u624b\u52a8\u5b89\u88c5\u3002 \u6ce8\u610f&#xff1a;\u5982\u679cMySQL\u8bbe\u7f6e\u4e86\u53ea\u8bfb\u8d26\u53f7&#xff0c;\u9700\u8981\u5148\u5173\u95ed\u53ea\u8bfb&#xff0c;\u5b89\u88c5\u5b8c\u63d2\u4ef6\u540e&#xff0c;\u91cd\u65b0\u5f00\u542f\u53ea\u8bfb\u3002<\/p>\n<p>#\u5173\u95ed\u53ea\u8bbe\u7f6e<br \/>\nset global read_only&#061;0;<br \/>\n#\u6700\u540e\u518d\u6253\u5f00\u53ea\u8bfb\u8bbe\u7f6e&#xff08;\u6839\u636e\u9700\u6c42&#xff09;<br \/>\nset global read_only&#061;1&#xff1b;<\/p>\n<h4>1\u3001\u5b89\u88c5validata_password\u63d2\u4ef6<\/h4>\n<p>INSTALL PLUGIN validate_password SONAME &#039;validate_password.so&#039;;<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250420085605-6804b6a5e0c29.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> \u67e5\u770b\u5f53\u524d\u8bbe\u7f6e<\/p>\n<p>SHOW VARIABLES LIKE &#039;validate_password%&#039;;<br \/>\nSHOW VARIABLES LIKE &#039;%password%&#039;;<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250420085606-6804b6a617ca1.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>#default_password_lifetime\u8fd9\u4e2a\u4e3a\u5168\u5c40\u8bbe\u7f6e&#xff0c;\u5f71\u54cd\u5230\u6240\u6709\u8d26\u53f7&#xff0c;\u751f\u4ea7\u73af\u5883\u8c28\u614e\u8bbe\u7f6e\u3002<br \/>\n#validate_password_check_user_name&#xff1a;\u7528\u4e8e\u662f\u5426\u68c0\u67e5\u5bc6\u7801\u662f\u5426\u4e0e\u7528\u6237\u540d\u76f8\u4f3c\u3002\u8bbe\u7f6e\u4e3a OFF \u8868\u793a\u4e0d\u68c0\u67e5\u3002<br \/>\n#validate_password_dictionary_file&#xff1a;\u7528\u4e8e\u6307\u5b9a\u7528\u4e8e\u5bc6\u7801\u9a8c\u8bc1\u7684\u5b57\u5178\u6587\u4ef6\u3002\u5982\u679c\u4e3a\u7a7a&#xff0c;\u8868\u793a\u6ca1\u6709\u914d\u7f6e\u7279\u5b9a\u7684\u5b57\u5178\u3002<br \/>\n#validate_password_length&#xff1a;\u5bc6\u7801\u7684\u6700\u5c0f\u957f\u5ea6&#xff0c;\u8fd9\u91cc\u8868\u793a\u5bc6\u7801\u81f3\u5c11\u9700\u8981 8 \u4e2a\u5b57\u7b26\u3002<br \/>\n#validate_password_mixed_case_count&#xff1a;\u5bc6\u7801\u4e2d\u5fc5\u987b\u5305\u542b\u7684\u5927\u5199\u548c\u5c0f\u5199\u5b57\u6bcd\u7684\u6700\u5c11\u6570\u91cf\u3002\u5728\u6b64\u8bbe\u7f6e\u4e3a 1&#xff0c;\u8868\u793a\u81f3\u5c11\u9700\u8981\u4e00\u4e2a\u5927\u5199\u6216\u5c0f\u5199\u5b57\u6bcd\u3002<br \/>\n#validate_password_number_count&#xff1a;\u5bc6\u7801\u4e2d\u5fc5\u987b\u5305\u542b\u7684\u6570\u5b57\u7684\u6700\u5c11\u6570\u91cf\u3002\u5728\u6b64\u8bbe\u7f6e\u4e3a 1&#xff0c;\u8868\u793a\u81f3\u5c11\u9700\u8981\u4e00\u4e2a\u6570\u5b57\u3002<br \/>\n#validate_password_policy&#xff1a;\u5b9a\u4e49\u5bc6\u7801\u7684\u590d\u6742\u6027\u7b56\u7565\u3002\u8bbe\u7f6e\u4e3a MEDIUM&#xff0c;\u8868\u793a\u5bc6\u7801\u9700\u6ee1\u8db3\u4e2d\u7b49\u590d\u6742\u6027\u8981\u6c42\u3002<br \/>\n#validate_password_special_char_count&#xff1a;\u5bc6\u7801\u4e2d\u5fc5\u987b\u5305\u542b\u7684\u7279\u6b8a\u5b57\u7b26\u7684\u6700\u5c11\u6570\u91cf\u3002\u672a\u8bbe\u7f6e&#xff0c;\u8868\u793a\u6ca1\u6709\u8981\u6c42\u3002<\/p>\n<p>\u53ef\u4ee5\u81ea\u5df1\u4fee\u6539\u914d\u7f6e&#xff0c;\u5982\u5bc6\u7801\u957f\u5ea6\u4fee\u6539\u621010\u4f4d<\/p>\n<p>SET GLOBAL validate_password_length &#061; 10;<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250420085606-6804b6a6460ae.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h4>2\u3001\u521b\u5efa\u7cfb\u7edf\u7ba1\u7406\u5458\u7528\u6237<\/h4>\n<p>#\u521b\u5efa\u7cfb\u7edf\u7ba1\u7406\u5458\u7528\u6237<br \/>\nCREATE USER &#039;sysdba&#039;&#064;&#039;localhost&#039; IDENTIFIED BY &#039;NBYl6vu9d5Bev&amp;S2&#039;;<br \/>\n#\u4fee\u6539\u7cfb\u7edf\u7ba1\u7406\u5458\u7528\u6237\u7684\u5bc6\u7801\u8fc7\u671f\u65f6\u95f4<br \/>\nalter user &#039;sysdba&#039;&#064;&#039;localhost&#039; PASSWORD EXPIRE INTERVAL 90 DAY;<br \/>\n#\u8d4b\u4e88\u7cfb\u7edf\u7ba1\u7406\u5458\u76f8\u5e94\u7684\u6743\u9650<br \/>\nGRANT ALL PRIVILEGES ON *.* TO &#039;sysdba&#039;&#064;&#039;localhost&#039; WITH GRANT OPTION;<br \/>\n#\u67e5\u770b\u6743\u9650<br \/>\nshow grants for &#039;sysdba&#039;&#064;&#039;localhost&#039;;<br \/>\n#\u67e5\u770b\u5bc6\u7801\u8fc7\u671f\u65f6\u95f4<br \/>\nshow create user &#039;sysdba&#039;&#064;&#039;localhost&#039;;<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250420085606-6804b6a67a912.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h4>3\u3001\u521b\u5efa\u5b89\u5168\u7ba1\u7406\u5458\u7528\u6237<\/h4>\n<p>#\u521b\u5efa\u5b89\u5168\u7ba1\u7406\u5458\u7528\u6237<br \/>\nCREATE USER &#039;safedba&#039;&#064;&#039;localhost&#039; IDENTIFIED BY &#039;CqLs&#064;rGKt3RG&#064;fMI&#039;;<br \/>\n#\u4fee\u6539\u5b89\u5168\u7ba1\u7406\u5458\u7528\u6237\u5bc6\u7801\u8fc7\u671f\u65f6\u95f4<br \/>\nalter user &#039;safedba&#039;&#064;&#039;localhost&#039; PASSWORD EXPIRE INTERVAL 90 DAY;<br \/>\n#\u8d4b\u4e88\u5b89\u5168\u7ba1\u7406\u5458\u76f8\u5e94\u7684\u6743\u9650<br \/>\nGRANT SELECT, SHOW VIEW ON *.* TO &#039;safedba&#039;&#064;&#039;localhost&#039;;<br \/>\n#\u67e5\u770b\u6743\u9650<br \/>\nshow grants for &#039;safedba&#039;&#064;&#039;localhost&#039;;<br \/>\n#\u67e5\u770b\u5bc6\u7801\u8fc7\u671f\u65f6\u95f4<br \/>\nshow create user &#039;safedba&#039;&#064;&#039;localhost&#039;;<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250420085606-6804b6a6d7a7f.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h4>4\u3001\u521b\u5efa\u5ba1\u8ba1\u7ba1\u7406\u5458\u7528\u6237<\/h4>\n<p>#\u521b\u5efa\u5ba1\u8ba1\u7ba1\u7406\u5458\u7528\u6237<br \/>\nCREATE USER &#039;auditdba&#039;&#064;&#039;localhost&#039; IDENTIFIED BY &#039;isn2ecX#ZVhjx#Eu&#039;;<br \/>\n#\u4fee\u6539\u5ba1\u8ba1\u7ba1\u7406\u5458\u7528\u6237\u5bc6\u7801\u8fc7\u671f\u65f6\u95f4<br \/>\nalter user &#039;auditdba&#039;&#064;&#039;localhost&#039; PASSWORD EXPIRE INTERVAL 90 DAY;<br \/>\n#\u8d4b\u4e88\u5ba1\u8ba1\u7ba1\u7406\u5458\u76f8\u5e94\u7684\u6743\u9650<br \/>\nGRANT RELOAD, PROCESS, SHOW DATABASES ON *.* TO &#039;auditdba&#039;&#064;&#039;localhost&#039;;<br \/>\n#\u67e5\u770b\u6743\u9650<br \/>\nshow grants for &#039;auditdba&#039;&#064;&#039;localhost&#039;;<br \/>\n#\u67e5\u770b\u5bc6\u7801\u8fc7\u671f\u65f6\u95f4<br \/>\nshow create user &#039;auditdba&#039;&#064;&#039;localhost&#039;;<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250420085607-6804b6a7360a2.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h4>5\u3001\u8bbe\u7f6e\u9519\u8bef\u767b\u5f55\u9650\u5236<\/h4>\n<p>#\u5b89\u88c5CONNECTION_CONTROL\u63d2\u4ef6<br \/>\nINSTALL PLUGIN CONNECTION_CONTROL SONAME &#039;connection_control.so&#039;;<br \/>\n#\u63d0\u4f9b\u4e86\u4e00\u4e2aINFORMATION_SCHEMA\u7c7b\u578b\u7684\u8868&#xff0c;\u7528\u6237\u5728\u6b64\u8868\u4e2d\u53ef\u4ee5\u67e5\u770b\u66f4\u8be6\u7ec6\u5173\u4e8e\u767b\u9646\u5931\u8d25\u8fde\u63a5\u7684\u4fe1\u606f\u3002<br \/>\nINSTALL PLUGIN CONNECTION_CONTROL_FAILED_LOGIN_ATTEMPTS SONAME &#039;connection_control.so&#039;;<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250420085607-6804b6a7879f5.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>#\u67e5\u770b\u5f53\u524d\u914d\u7f6e<br \/>\nshow variables like &#039;%connection%&#039;;<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250420085607-6804b6a7b3f97.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>#connection_control_failed_connections_threshold&#xff1a;\u8fde\u7eed\u5931\u8d25\u6700\u5927\u6b21\u65703\u6b21,0\u8868\u793a\u4e0d\u5f00\u542f<br \/>\n#connection_control_max_connection_delay&#xff1a;\u8d85\u8fc7\u6700\u5927\u5931\u8d25\u6b21\u6570\u4e4b\u540e\u963b\u585e\u767b\u5f55\u6700\u5927\u65f6\u95f4&#xff08;\u6beb\u79d2&#xff09;<br \/>\n#connection_control_min_connection_delay&#xff1a;\u8d85\u8fc7\u6700\u5927\u5931\u8d25\u6b21\u6570\u4e4b\u540e\u963b\u585e\u767b\u5f55\u6700\u5c0f\u65f6\u95f4&#xff08;\u6beb\u79d2&#xff09;<br \/>\n#\u4f8b\u5982&#xff1a;set global connection_control_failed_connections_threshold&#061;0&#xff1b;<br \/>\n#\u67e5\u8be2\u5404\u8d26\u53f7\u767b\u5f55\u5931\u8d25\u6b21\u6570<br \/>\nuse information_schema;<br \/>\nselect * from connection_control_failed_login_attempts;<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250420085607-6804b6a7dcdf8.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h4>6\u3001\u767b\u9646\u8d85\u65f6\u65f6\u95f4<\/h4>\n<p>show variables like &#034;%wait_timeout%&#034;;<br \/>\n#\u4fee\u6539\u8d85\u65f6\u65f6\u95f4\u4e3a600s<br \/>\nset global wait_timeout&#061;600;<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250420085608-6804b6a8176c3.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h3>\u603b\u7ed3<\/h3>\n<p>\u6b63\u786e\u5730\u914d\u7f6e\u4ee5\u4e0a\u7b56\u7565\u80fd\u591f\u663e\u8457\u63d0\u9ad8\u670d\u52a1\u5668\u7684\u5b89\u5168\u6027&#xff0c;\u4f46\u540c\u65f6\u4e5f\u9700\u8981\u6ce8\u610f\u4e0d\u8981\u7ed9\u5408\u6cd5\u7528\u6237\u63d0\u4f9b\u8fc7\u591a\u969c\u788d\u3002\u56e0\u6b64&#xff0c;\u5728\u5b9e\u65bd\u4e0a\u8ff0\u4efb\u4f55\u4e00\u79cd\u7b56\u7565\u4e4b\u524d&#xff0c;\u8bf7\u6839\u636e\u5b9e\u9645\u60c5\u51b5\u505a\u51fa\u9002\u5f53\u8c03\u6574&#xff0c;\u786e\u4fdd\u65e2\u4fdd\u8bc1\u4e86\u5b89\u5168\u6027\u53c8\u4e0d\u5f71\u54cd\u6b63\u5e38\u4f7f\u7528\u4f53\u9a8c\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1k\u6b21\uff0c\u70b9\u8d5e30\u6b21\uff0c\u6536\u85cf31\u6b21\u3002\u6b63\u786e\u5730\u914d\u7f6e\u4ee5\u4e0a\u7b56\u7565\u80fd\u591f\u663e\u8457\u63d0\u9ad8\u670d\u52a1\u5668\u7684\u5b89\u5168\u6027\uff0c\u4f46\u540c\u65f6\u4e5f\u9700\u8981\u6ce8\u610f\u4e0d\u8981\u7ed9\u5408\u6cd5\u7528\u6237\u63d0\u4f9b\u8fc7\u591a\u969c\u788d\u3002\u56e0\u6b64\uff0c\u5728\u5b9e\u65bd\u4e0a\u8ff0\u4efb\u4f55\u4e00\u79cd\u7b56\u7565\u4e4b\u524d\uff0c\u8bf7\u6839\u636e\u5b9e\u9645\u60c5\u51b5\u505a\u51fa\u9002\u5f53\u8c03\u6574\uff0c\u786e\u4fdd\u65e2\u4fdd\u8bc1\u4e86\u5b89\u5168\u6027\u53c8\u4e0d\u5f71\u54cd\u6b63\u5e38\u4f7f\u7528\u4f53\u9a8c\u3002_mysql \u8bbe\u7f6e\u7cfb\u7edf\u7ba1\u7406\u5458\u3001\u5b89\u5168\u7ba1\u7406\u5458\u548c\u5ba1\u8ba1\u7ba1\u7406\u5458,\u672a\u5b9e\u73b0\u7ba1\u7406\u7528\u6237\u7684\u6743\u9650.<\/p>\n","protected":false},"author":2,"featured_media":30140,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[114,61,43],"topic":[],"class_list":["post-30154","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-mysql","tag-61","tag-43"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u670d\u52a1\u5668\u53caMySQL\u5b89\u5168\u8bbe\u7f6e\u6307\u5357 - \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\/30154.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u670d\u52a1\u5668\u53caMySQL\u5b89\u5168\u8bbe\u7f6e\u6307\u5357 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1k\u6b21\uff0c\u70b9\u8d5e30\u6b21\uff0c\u6536\u85cf31\u6b21\u3002\u6b63\u786e\u5730\u914d\u7f6e\u4ee5\u4e0a\u7b56\u7565\u80fd\u591f\u663e\u8457\u63d0\u9ad8\u670d\u52a1\u5668\u7684\u5b89\u5168\u6027\uff0c\u4f46\u540c\u65f6\u4e5f\u9700\u8981\u6ce8\u610f\u4e0d\u8981\u7ed9\u5408\u6cd5\u7528\u6237\u63d0\u4f9b\u8fc7\u591a\u969c\u788d\u3002\u56e0\u6b64\uff0c\u5728\u5b9e\u65bd\u4e0a\u8ff0\u4efb\u4f55\u4e00\u79cd\u7b56\u7565\u4e4b\u524d\uff0c\u8bf7\u6839\u636e\u5b9e\u9645\u60c5\u51b5\u505a\u51fa\u9002\u5f53\u8c03\u6574\uff0c\u786e\u4fdd\u65e2\u4fdd\u8bc1\u4e86\u5b89\u5168\u6027\u53c8\u4e0d\u5f71\u54cd\u6b63\u5e38\u4f7f\u7528\u4f53\u9a8c\u3002_mysql \u8bbe\u7f6e\u7cfb\u7edf\u7ba1\u7406\u5458\u3001\u5b89\u5168\u7ba1\u7406\u5458\u548c\u5ba1\u8ba1\u7ba1\u7406\u5458,\u672a\u5b9e\u73b0\u7ba1\u7406\u7528\u6237\u7684\u6743\u9650.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/30154.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-04-20T08:56:09+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250420085605-6804b6a535778.png\" \/>\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\/30154.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/30154.html\",\"name\":\"\u670d\u52a1\u5668\u53caMySQL\u5b89\u5168\u8bbe\u7f6e\u6307\u5357 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-04-20T08:56:09+00:00\",\"dateModified\":\"2025-04-20T08:56:09+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/30154.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/30154.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/30154.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u670d\u52a1\u5668\u53caMySQL\u5b89\u5168\u8bbe\u7f6e\u6307\u5357\"}]},{\"@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":"\u670d\u52a1\u5668\u53caMySQL\u5b89\u5168\u8bbe\u7f6e\u6307\u5357 - \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\/30154.html","og_locale":"zh_CN","og_type":"article","og_title":"\u670d\u52a1\u5668\u53caMySQL\u5b89\u5168\u8bbe\u7f6e\u6307\u5357 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1k\u6b21\uff0c\u70b9\u8d5e30\u6b21\uff0c\u6536\u85cf31\u6b21\u3002\u6b63\u786e\u5730\u914d\u7f6e\u4ee5\u4e0a\u7b56\u7565\u80fd\u591f\u663e\u8457\u63d0\u9ad8\u670d\u52a1\u5668\u7684\u5b89\u5168\u6027\uff0c\u4f46\u540c\u65f6\u4e5f\u9700\u8981\u6ce8\u610f\u4e0d\u8981\u7ed9\u5408\u6cd5\u7528\u6237\u63d0\u4f9b\u8fc7\u591a\u969c\u788d\u3002\u56e0\u6b64\uff0c\u5728\u5b9e\u65bd\u4e0a\u8ff0\u4efb\u4f55\u4e00\u79cd\u7b56\u7565\u4e4b\u524d\uff0c\u8bf7\u6839\u636e\u5b9e\u9645\u60c5\u51b5\u505a\u51fa\u9002\u5f53\u8c03\u6574\uff0c\u786e\u4fdd\u65e2\u4fdd\u8bc1\u4e86\u5b89\u5168\u6027\u53c8\u4e0d\u5f71\u54cd\u6b63\u5e38\u4f7f\u7528\u4f53\u9a8c\u3002_mysql \u8bbe\u7f6e\u7cfb\u7edf\u7ba1\u7406\u5458\u3001\u5b89\u5168\u7ba1\u7406\u5458\u548c\u5ba1\u8ba1\u7ba1\u7406\u5458,\u672a\u5b9e\u73b0\u7ba1\u7406\u7528\u6237\u7684\u6743\u9650.","og_url":"https:\/\/www.wsisp.com\/helps\/30154.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-04-20T08:56:09+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250420085605-6804b6a535778.png"}],"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\/30154.html","url":"https:\/\/www.wsisp.com\/helps\/30154.html","name":"\u670d\u52a1\u5668\u53caMySQL\u5b89\u5168\u8bbe\u7f6e\u6307\u5357 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-04-20T08:56:09+00:00","dateModified":"2025-04-20T08:56:09+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/30154.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/30154.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/30154.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u670d\u52a1\u5668\u53caMySQL\u5b89\u5168\u8bbe\u7f6e\u6307\u5357"}]},{"@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\/30154","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=30154"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/30154\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/30140"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=30154"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=30154"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=30154"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=30154"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}