{"id":64766,"date":"2026-01-24T02:16:29","date_gmt":"2026-01-23T18:16:29","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/64766.html"},"modified":"2026-01-24T02:16:29","modified_gmt":"2026-01-23T18:16:29","slug":"mysql8-0%e5%ae%9a%e6%97%b6%e5%88%a0%e9%99%a4%e6%95%b0%e6%8d%ae%ef%bc%9a%e5%86%85%e7%bd%ae%e8%b0%83%e5%ba%a6%e5%99%a8vswindows%e4%bb%bb%e5%8a%a1%e8%ae%a1%e5%88%92%e7%a8%8b%e5%ba%8f","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/64766.html","title":{"rendered":"MySQL8.0\u5b9a\u65f6\u5220\u9664\u6570\u636e\uff1a\u5185\u7f6e\u8c03\u5ea6\u5668vsWindows\u4efb\u52a1\u8ba1\u5212\u7a0b\u5e8f"},"content":{"rendered":"<h2>MySQL8.0\u5b9a\u65f6\u5220\u9664\u6570\u636e&#xff1a;\u5185\u7f6e\u8c03\u5ea6\u5668vsWindows\u4efb\u52a1\u8ba1\u5212\u7a0b\u5e8f<\/h2>\n<p>&#x1f604;\u751f\u547d\u4e0d\u606f&#xff0c;\u5199\u4f5c\u4e0d\u6b62 &#x1f525; \u7ee7\u7eed\u8e0f\u4e0a\u5b66\u4e60\u4e4b\u8def&#xff0c;\u5b66\u4e4b\u5206\u4eab\u7b14\u8bb0 &#x1f44a; \u603b\u6709\u4e00\u5929\u6211\u4e5f\u80fd\u50cf\u5404\u4f4d\u5927\u4f6c\u4e00\u6837 &#x1f3c6; \u535a\u5ba2\u9996\u9875 \u00a0\u00a0&#064;\u6012\u653e\u5427\u5fb7\u5fb7\u00a0\u00a0To\u8bb0\u5f55\u9886\u5730 &#x1f31d;\u5206\u4eab\u5b66\u4e60\u5fc3\u5f97&#xff0c;\u6b22\u8fce\u6307\u6b63&#xff0c;\u5927\u5bb6\u4e00\u8d77\u5b66\u4e60\u6210\u957f&#xff01;<\/p>\n<p>\u8f6c\u53d1\u8bf7\u643a\u5e26\u4f5c\u8005\u4fe1\u606f &#064;\u6012\u653e\u5427\u5fb7\u5fb7 &#064;\u4e00\u4e2a\u6709\u68a6\u6709\u620f\u7684\u4eba<\/p>\n<p>\u5728Java\u5f00\u53d1\u4e2d&#xff0c;\u65e5\u5fd7\u8868\u3001\u6d41\u6c34\u8868\u7b49\u4e1a\u52a1\u8868\u4f1a\u968f\u65f6\u95f4\u5feb\u901f\u81a8\u80c0&#xff0c;\u5b9a\u671f\u6e05\u7406\u8fc7\u671f\u6570\u636e&#xff08;\u5982\u5220\u966430\u5929\u524d\u6570\u636e&#xff09;\u662f\u4fdd\u969c\u6570\u636e\u5e93\u6027\u80fd\u7684\u5e38\u89c4\u64cd\u4f5c\u3002\u672c\u6587\u9488\u5bf9MySQL8.0\u73af\u5883&#xff0c;\u8be6\u7ec6\u8bb2\u89e3\u4e24\u79cd\u5b9a\u65f6\u5220\u9664\u65b9\u6848\u2014\u2014MySQL\u5185\u7f6e\u4e8b\u4ef6\u8c03\u5ea6\u5668\u3001Windows\u4efb\u52a1\u8ba1\u5212\u7a0b\u5e8f&#xff0c;\u5305\u542b\u5b8c\u6574\u5b9e\u64cd\u6b65\u9aa4&#xff0c;\u5e76\u5bf9\u6bd4\u4e24\u8005\u4f18\u7f3a\u70b9&#xff0c;\u5e2e\u4f60\u5feb\u901f\u9009\u578b\u3002<\/p>\n<h3>\u4e00\u3001\u6838\u5fc3\u9700\u6c42\u660e\u786e<\/h3>\n<ul>\n<li>\n<p>\u64cd\u4f5c\u5bf9\u8c61&#xff1a;MySQL8.0\u7279\u5b9a\u4e1a\u52a1\u8868&#xff08;\u672c\u6587\u4ee5operation_log\u8868\u4e3a\u4f8b&#xff0c;\u65f6\u95f4\u5b57\u6bb5\u4e3acreate_time&#xff08;DATETIME\u7c7b\u578b&#xff09;&#xff09;<\/p>\n<\/li>\n<li>\n<p>\u6267\u884c\u903b\u8f91&#xff1a;\u6309\u81ea\u5b9a\u4e49SQL\u5220\u966430\u5929\u524d\u6570\u636e&#xff08;DELETE FROM operation_log WHERE create_time &lt; DATE_SUB(NOW(), INTERVAL 30 DAY)&#xff09;<\/p>\n<\/li>\n<li>\n<p>\u6267\u884c\u9891\u7387&#xff1a;\u6bcf\u5929\u51cc\u666812\u70b9&#xff08;00:00:00&#xff09;\u5b9a\u65f6\u6267\u884c<\/p>\n<\/li>\n<li>\n<p>\u5b9e\u73b0\u65b9\u6848&#xff1a;\u5206\u522b\u57fa\u4e8eMySQL\u5185\u7f6e\u8c03\u5ea6\u5668\u3001Windows\u4efb\u52a1\u8ba1\u5212\u7a0b\u5e8f\u5b9e\u73b0<\/p>\n<\/li>\n<\/ul>\n<h3>\u4e8c\u3001\u65b9\u6848\u4e00&#xff1a;MySQL\u5185\u7f6e\u4e8b\u4ef6\u8c03\u5ea6\u5668&#xff08;\u7eaf\u6570\u636e\u5e93\u5c42\u9762\u5b9e\u73b0&#xff09;<\/h3>\n<p>MySQL8.0\u81ea\u5e26\u4e8b\u4ef6\u8c03\u5ea6\u5668&#xff08;Event Scheduler&#xff09;&#xff0c;\u65e0\u9700\u4f9d\u8d56\u5916\u90e8\u5de5\u5177&#xff0c;\u76f4\u63a5\u5728\u6570\u636e\u5e93\u5185\u5b8c\u6210\u5b9a\u65f6\u4efb\u52a1\u914d\u7f6e&#xff0c;\u9002\u5408\u7eafSQL\u64cd\u4f5c\u573a\u666f\u3002<\/p>\n<h4>1. \u5f00\u542f\u4e8b\u4ef6\u8c03\u5ea6\u5668<\/h4>\n<p>MySQL\u4e8b\u4ef6\u8c03\u5ea6\u5668\u9ed8\u8ba4\u5173\u95ed&#xff0c;\u9700\u624b\u52a8\u5f00\u542f&#xff0c;\u5206\u4e3a\u4e34\u65f6\u5f00\u542f&#xff08;\u91cd\u542f\u5931\u6548&#xff09;\u548c\u6c38\u4e45\u5f00\u542f&#xff08;\u91cd\u542f\u751f\u6548&#xff09;\u4e24\u79cd\u65b9\u5f0f\u3002<\/p>\n<h5>&#xff08;1&#xff09;\u4e34\u65f6\u5f00\u542f&#xff08;\u6d4b\u8bd5\u73af\u5883\u5feb\u901f\u9a8c\u8bc1&#xff09;<\/h5>\n<p>\u767b\u5f55MySQL\u5ba2\u6237\u7aef&#xff0c;\u6267\u884c\u4ee5\u4e0bSQL&#xff1a;<\/p>\n<p><span class=\"token comment\">&#8212; \u67e5\u770b\u8c03\u5ea6\u5668\u72b6\u6001&#xff08;VALUE\u4e3aON\u8868\u793a\u5f00\u542f&#xff0c;OFF\u8868\u793a\u5173\u95ed&#xff09;<\/span><br \/>\n<span class=\"token keyword\">SHOW<\/span> VARIABLES <span class=\"token operator\">LIKE<\/span> <span class=\"token string\">&#039;event_scheduler&#039;<\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token comment\">&#8212; \u4e34\u65f6\u5f00\u542f\u8c03\u5ea6\u5668&#xff08;MySQL\u91cd\u542f\u540e\u5931\u6548&#xff09;<\/span><br \/>\n<span class=\"token keyword\">SET<\/span> <span class=\"token keyword\">GLOBAL<\/span> event_scheduler <span class=\"token operator\">&#061;<\/span> <span class=\"token keyword\">ON<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<h5>&#xff08;2&#xff09;\u6c38\u4e45\u5f00\u542f&#xff08;\u751f\u4ea7\u73af\u5883\u63a8\u8350&#xff09;<\/h5>\n<p>\u4fee\u6539MySQL\u914d\u7f6e\u6587\u4ef6my.ini&#xff08;Windows\u73af\u5883&#xff0c;\u901a\u5e38\u5728MySQL\u5b89\u88c5\u76ee\u5f55\u4e0b&#xff09;&#xff0c;\u5728[mysqld]\u8282\u70b9\u4e0b\u6dfb\u52a0\u914d\u7f6e&#xff1a;<\/p>\n<p>[mysqld]<br \/>\nevent_scheduler &#061; ON<\/p>\n<p>\u4fdd\u5b58\u540e\u91cd\u542fMySQL\u670d\u52a1&#xff0c;\u518d\u6b21\u6267\u884cSHOW VARIABLES LIKE &#039;event_scheduler&#039;;\u9a8c\u8bc1\u72b6\u6001\u3002<\/p>\n<h4>2. \u6388\u4e88\u4e8b\u4ef6\u6743\u9650&#xff08;\u5fc5\u8981\u524d\u63d0&#xff09;<\/h4>\n<p>\u6267\u884c\u4e8b\u4ef6\u7684MySQL\u7528\u6237\u9700\u5177\u5907EVENT\u6743\u9650&#xff0c;\u5426\u5219\u65e0\u6cd5\u521b\u5efa\u548c\u6267\u884c\u4e8b\u4ef6\u3002\u4ee5root\u7528\u6237\u4e3a\u4f8b&#xff0c;\u6388\u4e88\u6743\u9650\u7684SQL&#xff1a;<\/p>\n<p><span class=\"token comment\">&#8212; \u6388\u4e88test_user\u7528\u6237\u6240\u6709\u5e93\u8868\u7684EVENT\u6743\u9650&#xff08;\u53ef\u6839\u636e\u9700\u6c42\u7f29\u5c0f\u8303\u56f4&#xff09;<\/span><br \/>\n<span class=\"token keyword\">GRANT<\/span> EVENT <span class=\"token keyword\">ON<\/span> <span class=\"token operator\">*<\/span><span class=\"token punctuation\">.<\/span><span class=\"token operator\">*<\/span> <span class=\"token keyword\">TO<\/span> <span class=\"token string\">&#039;test_user&#039;<\/span><span class=\"token variable\">&#064;&#039;localhost&#039;<\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token comment\">&#8212; \u5237\u65b0\u6743\u9650<\/span><br \/>\nFLUSH <span class=\"token keyword\">PRIVILEGES<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<h4>3. \u521b\u5efa\u5b9a\u65f6\u4e8b\u4ef6&#xff08;\u6838\u5fc3\u6b65\u9aa4&#xff09;<\/h4>\n<p>\u6267\u884c\u4ee5\u4e0bSQL\u521b\u5efa\u4e8b\u4ef6&#xff0c;\u5b9e\u73b0\u6bcf\u5929\u51cc\u666812\u70b9\u5220\u966430\u5929\u524d\u6570\u636e&#xff1a;<\/p>\n<p><span class=\"token keyword\">CREATE<\/span> EVENT <span class=\"token keyword\">IF<\/span> <span class=\"token operator\">NOT<\/span> <span class=\"token keyword\">EXISTS<\/span> delete_30days_ago_data<br \/>\n<span class=\"token keyword\">ON<\/span> SCHEDULE EVERY <span class=\"token number\">1<\/span> <span class=\"token keyword\">DAY<\/span> STARTS DATE_FORMAT<span class=\"token punctuation\">(<\/span><span class=\"token function\">NOW<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token operator\">&#043;<\/span> <span class=\"token keyword\">INTERVAL<\/span> <span class=\"token number\">1<\/span> <span class=\"token keyword\">DAY<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string\">&#039;%Y-%m-%d 00:00:00&#039;<\/span><span class=\"token punctuation\">)<\/span><br \/>\n<span class=\"token keyword\">ON<\/span> COMPLETION PRESERVE<br \/>\n<span class=\"token keyword\">ENABLE<\/span><br \/>\n<span class=\"token keyword\">COMMENT<\/span> <span class=\"token string\">&#039;\u6bcf\u5929\u51cc\u666800:00\u5220\u9664operation_log\u886830\u5929\u524d\u7684\u6570\u636e&#039;<\/span><br \/>\n<span class=\"token keyword\">DO<\/span><br \/>\n<span class=\"token keyword\">DELETE<\/span> <span class=\"token keyword\">FROM<\/span> operation_log <span class=\"token keyword\">WHERE<\/span> create_time <span class=\"token operator\">&lt;<\/span> DATE_SUB<span class=\"token punctuation\">(<\/span><span class=\"token function\">NOW<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token keyword\">INTERVAL<\/span> <span class=\"token number\">30<\/span> <span class=\"token keyword\">DAY<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p>\u53c2\u6570\u8bf4\u660e&#xff1a;<\/p>\n<ul>\n<li>\n<p>IF NOT EXISTS&#xff1a;\u907f\u514d\u91cd\u590d\u521b\u5efa\u4e8b\u4ef6<\/p>\n<\/li>\n<li>\n<p>ON SCHEDULE EVERY 1 DAY&#xff1a;\u8bbe\u7f6e\u6267\u884c\u9891\u7387\u4e3a\u6bcf\u5929\u4e00\u6b21<\/p>\n<\/li>\n<li>\n<p>STARTS &#8230;&#xff1a;\u6307\u5b9a\u9996\u6b21\u6267\u884c\u65f6\u95f4\u4e3a\u6b21\u65e5\u51cc\u666800:00&#xff08;\u82e5\u9700\u5f53\u65e5\u751f\u6548&#xff0c;\u53ef\u8c03\u6574\u4e3aCURRENT_DATE &#043; INTERVAL 1 DAY&#xff09;<\/p>\n<\/li>\n<li>\n<p>ON COMPLETION PRESERVE&#xff1a;\u4e8b\u4ef6\u6267\u884c\u5b8c\u6210\u540e\u4fdd\u7559&#xff08;\u9ed8\u8ba4\u4f1a\u81ea\u52a8\u5220\u9664&#xff0c;\u9700\u663e\u5f0f\u6307\u5b9a\u4fdd\u7559&#xff09;<\/p>\n<\/li>\n<li>\n<p>ENABLE&#xff1a;\u521b\u5efa\u540e\u7acb\u5373\u542f\u7528\u4e8b\u4ef6&#xff08;\u53ef\u8bbe\u4e3aDISABLE\u6682\u4e0d\u542f\u7528&#xff09;<\/p>\n<\/li>\n<\/ul>\n<h4>4. \u4e8b\u4ef6\u7ba1\u7406\u4e0e\u6392\u67e5<\/h4>\n<p><span class=\"token comment\">&#8212; \u67e5\u770b\u6240\u6709\u4e8b\u4ef6<\/span><br \/>\n<span class=\"token keyword\">SHOW<\/span> EVENTS<span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token comment\">&#8212; \u67e5\u770b\u7279\u5b9a\u4e8b\u4ef6\u8be6\u60c5&#xff08;\u4eceinformation_schema\u8868\u67e5\u8be2&#xff09;<\/span><br \/>\n<span class=\"token keyword\">SELECT<\/span> <span class=\"token operator\">*<\/span> <span class=\"token keyword\">FROM<\/span> information_schema<span class=\"token punctuation\">.<\/span>EVENTS <span class=\"token keyword\">WHERE<\/span> EVENT_NAME <span class=\"token operator\">&#061;<\/span> <span class=\"token string\">&#039;delete_30days_ago_data&#039;<\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token comment\">&#8212; \u6682\u505c\u4e8b\u4ef6<\/span><br \/>\n<span class=\"token keyword\">ALTER<\/span> EVENT delete_30days_ago_data <span class=\"token keyword\">DISABLE<\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token comment\">&#8212; \u542f\u7528\u4e8b\u4ef6<\/span><br \/>\n<span class=\"token keyword\">ALTER<\/span> EVENT delete_30days_ago_data <span class=\"token keyword\">ENABLE<\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token comment\">&#8212; \u5220\u9664\u4e8b\u4ef6<\/span><br \/>\n<span class=\"token keyword\">DROP<\/span> EVENT <span class=\"token keyword\">IF<\/span> <span class=\"token keyword\">EXISTS<\/span> delete_30days_ago_data<span class=\"token punctuation\">;<\/span><\/p>\n<p>\u6545\u969c\u6392\u67e5&#xff1a;\u4e8b\u4ef6\u6267\u884c\u5931\u8d25\u65f6&#xff0c;\u9519\u8bef\u4fe1\u606f\u4f1a\u8bb0\u5f55\u5230MySQL\u9519\u8bef\u65e5\u5fd7&#xff08;\u901a\u5e38\u5728data\u76ee\u5f55\u4e0b&#xff0c;\u6587\u4ef6\u540d\u5982DESKTOP-XXX.err&#xff09;&#xff0c;\u53ef\u901a\u8fc7\u65e5\u5fd7\u5b9a\u4f4d\u95ee\u9898&#xff08;\u5982SQL\u8bed\u6cd5\u9519\u8bef\u3001\u6743\u9650\u4e0d\u8db3&#xff09;\u3002<\/p>\n<h3>\u4e09\u3001\u65b9\u6848\u4e8c&#xff1a;Windows\u4efb\u52a1\u8ba1\u5212\u7a0b\u5e8f&#xff08;\u5916\u90e8\u7cfb\u7edf\u5c42\u9762\u5b9e\u73b0&#xff09;<\/h3>\n<p>\u901a\u8fc7Windows\u4efb\u52a1\u8ba1\u5212\u7a0b\u5e8f\u5b9a\u65f6\u8c03\u7528MySQL\u547d\u4ee4\u884c\u5de5\u5177&#xff0c;\u6267\u884c\u9884\u8bbe\u7684SQL\u811a\u672c&#xff0c;\u9002\u5408\u9700\u7ed3\u5408\u5916\u90e8\u903b\u8f91&#xff08;\u5982\u6267\u884c\u540e\u53d1\u90ae\u4ef6\u3001\u5907\u4efd\u6587\u4ef6&#xff09;\u7684\u573a\u666f&#xff0c;\u7075\u6d3b\u6027\u66f4\u9ad8\u3002<\/p>\n<h4>1. \u51c6\u5907SQL\u811a\u672c<\/h4>\n<p>\u521b\u5efa\u6587\u672c\u6587\u4ef6&#xff0c;\u547d\u540d\u4e3adelete_expired_data.sql&#xff0c;\u5199\u5165\u5220\u9664\u903b\u8f91&#xff08;\u6307\u5b9a\u6570\u636e\u5e93&#xff0c;\u907f\u514d\u5207\u6362\u4e0a\u4e0b\u6587&#xff09;&#xff1a;<\/p>\n<p><span class=\"token comment\">&#8212; delete_expired_data.sql<\/span><br \/>\n<span class=\"token keyword\">USE<\/span> test_db<span class=\"token punctuation\">;<\/span> <span class=\"token comment\">&#8212; \u66ff\u6362\u4e3a\u5b9e\u9645\u6570\u636e\u5e93\u540d<\/span><br \/>\n<span class=\"token keyword\">DELETE<\/span> <span class=\"token keyword\">FROM<\/span> operation_log <span class=\"token keyword\">WHERE<\/span> create_time <span class=\"token operator\">&lt;<\/span> DATE_SUB<span class=\"token punctuation\">(<\/span><span class=\"token function\">NOW<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token keyword\">INTERVAL<\/span> <span class=\"token number\">30<\/span> <span class=\"token keyword\">DAY<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token keyword\">EXIT<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p>\u5c06\u811a\u672c\u4fdd\u5b58\u81f3\u6307\u5b9a\u8def\u5f84&#xff08;\u5982D:\\\\MySQL_Tasks\\\\delete_expired_data.sql&#xff09;\u3002<\/p>\n<h4>2. \u521b\u5efa\u6279\u5904\u7406\u6587\u4ef6&#xff08;\u8c03\u7528MySQL\u6267\u884c\u811a\u672c&#xff09;<\/h4>\n<p>\u521b\u5efa\u6587\u672c\u6587\u4ef6&#xff0c;\u547d\u540d\u4e3arun_delete_task.bat&#xff0c;\u5199\u5165\u4ee5\u4e0b\u5185\u5bb9&#xff08;\u9002\u914dWindows\u73af\u5883&#xff0c;\u9700\u66ff\u6362MySQL\u5b89\u88c5\u8def\u5f84\u3001\u7528\u6237\u540d\u3001\u5bc6\u7801&#xff09;&#xff1a;<\/p>\n<p>&#064;echo off<br \/>\n:: \u5173\u95ed\u547d\u4ee4\u884c\u8f93\u51fa&#xff08;\u53ef\u9009&#xff0c;\u5982\u9700\u8c03\u8bd5\u53ef\u5220\u9664&#xff09;<br \/>\n:: MySQL\u5b89\u88c5\u8def\u5f84\u4e0b\u7684bin\u76ee\u5f55&#xff08;\u66ff\u6362\u4e3a\u5b9e\u9645\u8def\u5f84&#xff09;<br \/>\nset MYSQL_PATH&#061;C:\\\\Program Files\\\\MySQL\\\\MySQL Server 8.0\\\\bin<br \/>\n:: \u6267\u884cSQL\u811a\u672c&#xff08;-u\u7528\u6237\u540d -p\u5bc6\u7801 \u6570\u636e\u5e93\u540d &lt; \u811a\u672c\u8def\u5f84&#xff09;<br \/>\n&#034;%MYSQL_PATH%\\\\mysql.exe&#034; -u test_user -ptest_password test_db &lt; D:\\\\MySQL_Tasks\\\\delete_expired_data.sql<br \/>\n:: \u82e5\u9700\u65e5\u5fd7\u8bb0\u5f55&#xff0c;\u53ef\u6dfb\u52a0\u4ee5\u4e0b\u8bed\u53e5&#xff08;\u8bb0\u5f55\u6267\u884c\u65f6\u95f4\u548c\u7ed3\u679c&#xff09;<br \/>\necho %date% %time% \u6267\u884c\u5b8c\u6210 &gt;&gt; D:\\\\MySQL_Tasks\\\\delete_task_log.txt<\/p>\n<p>\u6ce8\u610f\u4e8b\u9879&#xff1a;<\/p>\n<ul>\n<li>\n<p>\u5bc6\u7801\u4e0e-p\u4e4b\u95f4\u65e0\u7a7a\u683c&#xff08;\u5982-ptest_password&#xff0c;\u975e-p test_password&#xff09;<\/p>\n<\/li>\n<li>\n<p>\u82e5\u4e0d\u60f3\u660e\u6587\u66b4\u9732\u5bc6\u7801&#xff0c;\u53ef\u5c06\u7528\u6237\u540d\u3001\u5bc6\u7801\u5199\u5165MySQL\u914d\u7f6e\u6587\u4ef6my.ini\u7684[client]\u8282\u70b9&#xff0c;\u7b80\u5316\u547d\u4ee4\u4e3a&#034;%MYSQL_PATH%\\\\mysql.exe&#034; &#8211;defaults-extra-file&#061;&#034;C:\\\\Program Files\\\\MySQL\\\\MySQL Server 8.0\\\\my.ini&#034; test_db &lt; \u811a\u672c\u8def\u5f84<\/p>\n<\/li>\n<\/ul>\n<h4>3. \u914d\u7f6eWindows\u4efb\u52a1\u8ba1\u5212\u7a0b\u5e8f<\/h4>\n<li>\n<p>\u6253\u5f00\u4efb\u52a1\u8ba1\u5212\u7a0b\u5e8f&#xff1a;\u6309Win&#043;R\u8f93\u5165taskschd.msc&#xff0c;\u56de\u8f66\u542f\u52a8\u3002<\/p>\n<\/li>\n<li>\n<p>\u521b\u5efa\u57fa\u672c\u4efb\u52a1&#xff1a;\u70b9\u51fb\u53f3\u4fa7\u201c\u521b\u5efa\u57fa\u672c\u4efb\u52a1\u201d&#xff0c;\u8f93\u5165\u4efb\u52a1\u540d\u79f0&#xff08;\u5982\u201cMySQL\u5b9a\u65f6\u5220\u966430\u5929\u524d\u6570\u636e\u201d&#xff09;\u548c\u63cf\u8ff0&#xff0c;\u70b9\u51fb\u4e0b\u4e00\u6b65\u3002<\/p>\n<\/li>\n<li>\n<p>\u8bbe\u7f6e\u89e6\u53d1\u5668&#xff1a;\u9009\u62e9\u201c\u6bcf\u5929\u201d&#xff0c;\u70b9\u51fb\u4e0b\u4e00\u6b65&#xff1b;\u8bbe\u7f6e\u5f00\u59cb\u65f6\u95f4\u4e3a\u201c00:00:00\u201d&#xff0c;\u6267\u884c\u9891\u7387\u4e3a\u201c\u6bcf\u5929\u201d&#xff0c;\u70b9\u51fb\u4e0b\u4e00\u6b65\u3002<\/p>\n<\/li>\n<li>\n<p>\u8bbe\u7f6e\u64cd\u4f5c&#xff1a;\u9009\u62e9\u201c\u542f\u52a8\u7a0b\u5e8f\u201d&#xff0c;\u70b9\u51fb\u4e0b\u4e00\u6b65&#xff1b;\u201c\u7a0b\u5e8f\u6216\u811a\u672c\u201d\u9009\u62e9\u524d\u6587\u521b\u5efa\u7684run_delete_task.bat\u8def\u5f84&#xff0c;\u70b9\u51fb\u4e0b\u4e00\u6b65\u3002<\/p>\n<\/li>\n<li>\n<p>\u5b8c\u6210\u914d\u7f6e&#xff1a;\u52fe\u9009\u201c\u5f53\u5355\u51fb\u5b8c\u6210\u65f6&#xff0c;\u6253\u5f00\u6b64\u4efb\u52a1\u7684\u5c5e\u6027\u5bf9\u8bdd\u6846\u201d&#xff0c;\u70b9\u51fb\u5b8c\u6210\u3002<\/p>\n<\/li>\n<li>\n<p>\u8865\u5145\u5c5e\u6027&#xff08;\u53ef\u9009\u4f46\u63a8\u8350&#xff09;&#xff1a;\u5728\u5c5e\u6027\u7a97\u53e3\u4e2d&#xff0c;\u5207\u6362\u5230\u201c\u6761\u4ef6\u201d\u9009\u9879\u5361&#xff0c;\u52fe\u9009\u201c\u5524\u9192\u8ba1\u7b97\u673a\u8fd0\u884c\u6b64\u4efb\u52a1\u201d&#xff08;\u907f\u514d\u670d\u52a1\u5668\u4f11\u7720\u5bfc\u81f4\u4efb\u52a1\u4e0d\u6267\u884c&#xff09;&#xff1b;\u5207\u6362\u5230\u201c\u8bbe\u7f6e\u201d\u9009\u9879\u5361&#xff0c;\u52fe\u9009\u201c\u4efb\u52a1\u5931\u8d25\u65f6\u91cd\u65b0\u542f\u52a8\u201d&#xff08;\u63d0\u5347\u53ef\u9760\u6027&#xff09;\u3002<\/p>\n<\/li>\n<h3>\u56db\u3001\u4e24\u79cd\u65b9\u6848\u4f18\u7f3a\u70b9\u5bf9\u6bd4<\/h3>\n<table>\n<tr>\u5bf9\u6bd4\u7ef4\u5ea6MySQL\u5185\u7f6e\u4e8b\u4ef6\u8c03\u5ea6\u5668Windows\u4efb\u52a1\u8ba1\u5212\u7a0b\u5e8f<\/tr>\n<tbody>\n<tr>\n<td>\u4f9d\u8d56\u73af\u5883<\/td>\n<td>\u65e0\u5916\u90e8\u4f9d\u8d56&#xff0c;\u4ec5\u4f9d\u8d56MySQL\u670d\u52a1&#xff0c;\u90e8\u7f72\u7b80\u6d01<\/td>\n<td>\u4f9d\u8d56Windows\u7cfb\u7edf&#xff0c;\u9700\u989d\u5916\u7ef4\u62a4\u6279\u5904\u7406\u3001SQL\u811a\u672c<\/td>\n<\/tr>\n<tr>\n<td>\u7075\u6d3b\u6027<\/td>\n<td>\u4ec5\u652f\u6301SQL\/\u5b58\u50a8\u8fc7\u7a0b&#xff0c;\u65e0\u6cd5\u6267\u884c\u5916\u90e8\u64cd\u4f5c&#xff08;\u5982\u53d1\u90ae\u4ef6\u3001\u5907\u4efd\u6587\u4ef6&#xff09;<\/td>\n<td>\u7075\u6d3b\u6027\u9ad8&#xff0c;\u53ef\u7ed3\u5408\u6279\u5904\u7406\u3001Java\u811a\u672c\u7b49&#xff0c;\u5b9e\u73b0\u590d\u6742\u903b\u8f91&#xff08;\u5982\u6267\u884c\u540e\u901a\u77e5\u3001\u5907\u4efd\u6570\u636e&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>\u6027\u80fd\u635f\u8017<\/td>\n<td>\u76f4\u63a5\u5728\u6570\u636e\u5e93\u5185\u6267\u884c&#xff0c;\u65e0\u5916\u90e8\u8fdb\u7a0b\u4ea4\u4e92\u5f00\u9500&#xff0c;\u6027\u80fd\u66f4\u4f18<\/td>\n<td>\u9700\u542f\u52a8MySQL\u5ba2\u6237\u7aef\u8fdb\u7a0b&#xff0c;\u5b58\u5728\u8f7b\u5fae\u5916\u90e8\u5f00\u9500<\/td>\n<\/tr>\n<tr>\n<td>\u6743\u9650\u7ba1\u7406<\/td>\n<td>\u4ec5\u9700MySQL\u7684EVENT\u6743\u9650&#xff0c;\u6743\u9650\u7ba1\u63a7\u96c6\u4e2d\u5728\u6570\u636e\u5e93\u5c42\u9762<\/td>\n<td>\u9700Windows\u7cfb\u7edf\u6743\u9650&#xff08;\u6267\u884c\u6279\u5904\u7406\u3001\u8bbf\u95eeMySQL\u8def\u5f84&#xff09;&#xff0c;\u6743\u9650\u7ba1\u7406\u5206\u6563<\/td>\n<\/tr>\n<tr>\n<td>\u6545\u969c\u6392\u67e5<\/td>\n<td>\u9519\u8bef\u4fe1\u606f\u4ec5\u8bb0\u5f55\u5728MySQL\u9519\u8bef\u65e5\u5fd7&#xff0c;\u6392\u67e5\u9700\u719f\u6089\u6570\u636e\u5e93\u65e5\u5fd7<\/td>\n<td>\u53ef\u81ea\u5b9a\u4e49\u65e5\u5fd7\u8bb0\u5f55&#xff0c;\u7ed3\u5408Windows\u4e8b\u4ef6\u65e5\u5fd7&#xff0c;\u6392\u67e5\u66f4\u76f4\u89c2&#xff08;\u9002\u5408\u975eDBA\u4eba\u5458&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>\u8de8\u5e73\u53f0\u6027<\/td>\n<td>\u8de8\u5e73\u53f0&#xff08;Windows\u3001Linux\u5747\u652f\u6301&#xff09;&#xff0c;\u4e0e\u64cd\u4f5c\u7cfb\u7edf\u65e0\u5173<\/td>\n<td>\u4ec5\u652f\u6301Windows\u7cfb\u7edf&#xff0c;\u8fc1\u79fb\u5230Linux\u9700\u6539\u7528Cron\u4efb\u52a1<\/td>\n<\/tr>\n<tr>\n<td>\u9002\u7528\u573a\u666f<\/td>\n<td>\u7eaf\u6570\u636e\u5e93\u5c42\u9762\u7684\u5b9a\u65f6\u4efb\u52a1&#xff08;\u5982\u6570\u636e\u6e05\u7406\u3001\u7edf\u8ba1\u62a5\u8868\u751f\u6210&#xff09;&#xff0c;\u65e0\u9700\u5916\u90e8\u4ea4\u4e92<\/td>\n<td>\u9700\u7ed3\u5408\u5916\u90e8\u903b\u8f91\u7684\u4efb\u52a1&#xff0c;\u6216\u975eDBA\u4eba\u5458\u7ef4\u62a4\u7684Windows\u73af\u5883\u573a\u666f<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>\u4e94\u3001\u9009\u578b\u5efa\u8bae<\/h3>\n<li>\n<p>\u82e5\u4ec5\u9700\u6e05\u7406\u6570\u636e\u5e93\u5185\u8fc7\u671f\u6570\u636e&#xff0c;\u65e0\u5916\u90e8\u4ea4\u4e92\u9700\u6c42&#xff0c;\u4f18\u5148\u9009MySQL\u5185\u7f6e\u4e8b\u4ef6\u8c03\u5ea6\u5668&#xff0c;\u90e8\u7f72\u7b80\u5355\u3001\u6027\u80fd\u4f18\u3001\u8de8\u5e73\u53f0\u6027\u597d\u3002<\/p>\n<\/li>\n<li>\n<p>\u82e5\u6e05\u7406\u6570\u636e\u540e\u9700\u6267\u884c\u989d\u5916\u64cd\u4f5c&#xff08;\u5982\u53d1\u6267\u884c\u7ed3\u679c\u90ae\u4ef6\u3001\u5907\u4efd\u6570\u636e&#xff09;&#xff0c;\u6216\u7ef4\u62a4\u4eba\u5458\u66f4\u719f\u6089Windows\u7cfb\u7edf\u64cd\u4f5c&#xff0c;\u9009Windows\u4efb\u52a1\u8ba1\u5212\u7a0b\u5e8f&#xff0c;\u7075\u6d3b\u6027\u66f4\u9ad8\u3002<\/p>\n<\/li>\n<li>\n<p>\u751f\u4ea7\u73af\u5883\u6ce8\u610f&#xff1a;\u65e0\u8bba\u54ea\u79cd\u65b9\u6848&#xff0c;\u90fd\u5efa\u8bae\u5148\u5728\u6d4b\u8bd5\u73af\u5883\u9a8c\u8bc1SQL\u903b\u8f91&#xff08;\u907f\u514d\u8bef\u5220\u6570\u636e&#xff09;&#xff0c;\u5e76\u6dfb\u52a0\u65e5\u5fd7\u8bb0\u5f55&#xff0c;\u4fbf\u4e8e\u6545\u969c\u6392\u67e5&#xff1b;\u5927\u8868\u5220\u9664\u5efa\u8bae\u5206\u6279\u6b21\u6267\u884c&#xff08;\u5982\u6bcf\u6b21\u5220\u96641000\u6761&#xff09;&#xff0c;\u907f\u514d\u957f\u65f6\u95f4\u9501\u8868\u5f71\u54cd\u4e1a\u52a1\u3002<\/p>\n<\/li>\n<p>\u4ee5\u4e0a\u4e24\u79cd\u65b9\u6848\u5747\u53ef\u6ee1\u8db3MySQL8.0\u5b9a\u65f6\u5220\u966430\u5929\u524d\u6570\u636e\u7684\u9700\u6c42&#xff0c;\u53ef\u6839\u636e\u5b9e\u9645\u4e1a\u52a1\u573a\u666f\u548c\u8fd0\u7ef4\u4e60\u60ef\u7075\u6d3b\u9009\u578b\u3002\u5982\u679c\u9700\u8981\u8fdb\u4e00\u6b65\u4f18\u5316SQL&#xff08;\u5982\u5206\u6279\u6b21\u5220\u9664\u5927\u8868\u6570\u636e&#xff09;&#xff0c;\u6b22\u8fce\u7559\u8a00\u4ea4\u6d41&#xff01;<\/p>\n<hr \/>\n<p>\u8f6c\u53d1\u8bf7\u643a\u5e26\u4f5c\u8005\u4fe1\u606f &#064;\u6012\u653e\u5427\u5fb7\u5fb7 &#064;\u4e00\u4e2a\u6709\u68a6\u6709\u620f\u7684\u4eba \u6301\u7eed\u521b\u4f5c\u5f88\u4e0d\u5bb9\u6613&#xff0c;\u4f5c\u8005\u5c06\u4ee5\u5c3d\u53ef\u80fd\u7684\u8be6\u7ec6\u628a\u6240\u5b66\u77e5\u8bc6\u5206\u4eab\u5404\u4f4d\u5f00\u53d1\u8005&#xff0c;\u4e00\u8d77\u8fdb\u6b65\u4e00\u8d77\u5b66\u4e60\u3002\u8f6c\u8f7d\u8bf7\u643a\u5e26\u94fe\u63a5&#xff0c;\u8f6c\u8f7d\u5230\u5fae\u4fe1\u516c\u4f17\u53f7\u8bf7\u52ff\u9009\u62e9\u539f\u521b&#xff0c;\u8c22\u8c22&#xff01; &#x1f44d;\u521b\u4f5c\u4e0d\u6613&#xff0c;\u5982\u6709\u9519\u8bef\u8bf7\u6307\u6b63&#xff0c;\u611f\u8c22\u89c2\u770b&#xff01;\u8bb0\u5f97\u70b9\u8d5e\u54e6&#xff01;&#x1f44d; \u8c22\u8c22\u652f\u6301&#xff01;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>MySQL8.0\u5b9a\u65f6\u5220\u9664\u6570\u636e&#xff1a;\u5185\u7f6e\u8c03\u5ea6\u5668vsWindows\u4efb\u52a1\u8ba1\u5212\u7a0b\u5e8f &#x1f604;\u751f\u547d\u4e0d\u606f&#xff0c;\u5199\u4f5c\u4e0d\u6b62 &#x1f525; \u7ee7\u7eed\u8e0f\u4e0a\u5b66\u4e60\u4e4b\u8def&#xff0c;\u5b66\u4e4b\u5206\u4eab\u7b14\u8bb0 &#x1f44a; \u603b\u6709\u4e00\u5929\u6211\u4e5f\u80fd\u50cf\u5404\u4f4d\u5927\u4f6c\u4e00\u6837 &#x1f3c6; \u535a\u5ba2\u9996\u9875 \u00a0\u00a0\u6012\u653e\u5427\u5fb7\u5fb7\u00a0\u00a0To\u8bb0\u5f55\u9886\u5730 &#x1f31d;\u5206\u4eab\u5b66\u4e60\u5fc3\u5f97&#xff0c;\u6b22\u8fce\u6307\u6b63&#xff0c;\u5927\u5bb6\u4e00\u8d77\u5b66\u4e60\u6210\u957f&#xff01; \u8f6c\u53d1\u8bf7\u643a\u5e26\u4f5c\u8005\u4fe1\u606f \u6012\u653e\u5427\u5fb7\u5fb7 \u4e00\u4e2a\u6709\u68a6\u6709\u620f\u7684\u4eba<br \/>\n\u5728Jav<\/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":[99,114,176],"topic":[],"class_list":["post-64766","post","type-post","status-publish","format-standard","hentry","category-server","tag-java","tag-mysql","tag-176"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>MySQL8.0\u5b9a\u65f6\u5220\u9664\u6570\u636e\uff1a\u5185\u7f6e\u8c03\u5ea6\u5668vsWindows\u4efb\u52a1\u8ba1\u5212\u7a0b\u5e8f - \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\/64766.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"MySQL8.0\u5b9a\u65f6\u5220\u9664\u6570\u636e\uff1a\u5185\u7f6e\u8c03\u5ea6\u5668vsWindows\u4efb\u52a1\u8ba1\u5212\u7a0b\u5e8f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"MySQL8.0\u5b9a\u65f6\u5220\u9664\u6570\u636e&#xff1a;\u5185\u7f6e\u8c03\u5ea6\u5668vsWindows\u4efb\u52a1\u8ba1\u5212\u7a0b\u5e8f &#x1f604;\u751f\u547d\u4e0d\u606f&#xff0c;\u5199\u4f5c\u4e0d\u6b62 &#x1f525; \u7ee7\u7eed\u8e0f\u4e0a\u5b66\u4e60\u4e4b\u8def&#xff0c;\u5b66\u4e4b\u5206\u4eab\u7b14\u8bb0 &#x1f44a; \u603b\u6709\u4e00\u5929\u6211\u4e5f\u80fd\u50cf\u5404\u4f4d\u5927\u4f6c\u4e00\u6837 &#x1f3c6; \u535a\u5ba2\u9996\u9875 \u00a0\u00a0\u6012\u653e\u5427\u5fb7\u5fb7\u00a0\u00a0To\u8bb0\u5f55\u9886\u5730 &#x1f31d;\u5206\u4eab\u5b66\u4e60\u5fc3\u5f97&#xff0c;\u6b22\u8fce\u6307\u6b63&#xff0c;\u5927\u5bb6\u4e00\u8d77\u5b66\u4e60\u6210\u957f&#xff01; \u8f6c\u53d1\u8bf7\u643a\u5e26\u4f5c\u8005\u4fe1\u606f \u6012\u653e\u5427\u5fb7\u5fb7 \u4e00\u4e2a\u6709\u68a6\u6709\u620f\u7684\u4eba \u5728Jav\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/64766.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-01-23T18:16:29+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=\"4 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/64766.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/64766.html\",\"name\":\"MySQL8.0\u5b9a\u65f6\u5220\u9664\u6570\u636e\uff1a\u5185\u7f6e\u8c03\u5ea6\u5668vsWindows\u4efb\u52a1\u8ba1\u5212\u7a0b\u5e8f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-01-23T18:16:29+00:00\",\"dateModified\":\"2026-01-23T18:16:29+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/64766.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/64766.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/64766.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"MySQL8.0\u5b9a\u65f6\u5220\u9664\u6570\u636e\uff1a\u5185\u7f6e\u8c03\u5ea6\u5668vsWindows\u4efb\u52a1\u8ba1\u5212\u7a0b\u5e8f\"}]},{\"@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":"MySQL8.0\u5b9a\u65f6\u5220\u9664\u6570\u636e\uff1a\u5185\u7f6e\u8c03\u5ea6\u5668vsWindows\u4efb\u52a1\u8ba1\u5212\u7a0b\u5e8f - \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\/64766.html","og_locale":"zh_CN","og_type":"article","og_title":"MySQL8.0\u5b9a\u65f6\u5220\u9664\u6570\u636e\uff1a\u5185\u7f6e\u8c03\u5ea6\u5668vsWindows\u4efb\u52a1\u8ba1\u5212\u7a0b\u5e8f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"MySQL8.0\u5b9a\u65f6\u5220\u9664\u6570\u636e&#xff1a;\u5185\u7f6e\u8c03\u5ea6\u5668vsWindows\u4efb\u52a1\u8ba1\u5212\u7a0b\u5e8f &#x1f604;\u751f\u547d\u4e0d\u606f&#xff0c;\u5199\u4f5c\u4e0d\u6b62 &#x1f525; \u7ee7\u7eed\u8e0f\u4e0a\u5b66\u4e60\u4e4b\u8def&#xff0c;\u5b66\u4e4b\u5206\u4eab\u7b14\u8bb0 &#x1f44a; \u603b\u6709\u4e00\u5929\u6211\u4e5f\u80fd\u50cf\u5404\u4f4d\u5927\u4f6c\u4e00\u6837 &#x1f3c6; \u535a\u5ba2\u9996\u9875 \u00a0\u00a0\u6012\u653e\u5427\u5fb7\u5fb7\u00a0\u00a0To\u8bb0\u5f55\u9886\u5730 &#x1f31d;\u5206\u4eab\u5b66\u4e60\u5fc3\u5f97&#xff0c;\u6b22\u8fce\u6307\u6b63&#xff0c;\u5927\u5bb6\u4e00\u8d77\u5b66\u4e60\u6210\u957f&#xff01; \u8f6c\u53d1\u8bf7\u643a\u5e26\u4f5c\u8005\u4fe1\u606f \u6012\u653e\u5427\u5fb7\u5fb7 \u4e00\u4e2a\u6709\u68a6\u6709\u620f\u7684\u4eba \u5728Jav","og_url":"https:\/\/www.wsisp.com\/helps\/64766.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-01-23T18:16:29+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"4 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/64766.html","url":"https:\/\/www.wsisp.com\/helps\/64766.html","name":"MySQL8.0\u5b9a\u65f6\u5220\u9664\u6570\u636e\uff1a\u5185\u7f6e\u8c03\u5ea6\u5668vsWindows\u4efb\u52a1\u8ba1\u5212\u7a0b\u5e8f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-01-23T18:16:29+00:00","dateModified":"2026-01-23T18:16:29+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/64766.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/64766.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/64766.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"MySQL8.0\u5b9a\u65f6\u5220\u9664\u6570\u636e\uff1a\u5185\u7f6e\u8c03\u5ea6\u5668vsWindows\u4efb\u52a1\u8ba1\u5212\u7a0b\u5e8f"}]},{"@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\/64766","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=64766"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/64766\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=64766"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=64766"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=64766"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=64766"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}