{"id":7415,"date":"2024-11-14T08:13:38","date_gmt":"2024-11-14T00:13:38","guid":{"rendered":"https:\/\/fwq.ai\/blog\/7415\/"},"modified":"2024-11-14T08:13:38","modified_gmt":"2024-11-14T00:13:38","slug":"%e4%b8%ba%e4%bb%80%e4%b9%88-mysql-%e4%be%9d%e8%b5%96%e8%a2%ab%e8%ae%be%e7%bd%ae%e4%b8%ba%e8%bf%90%e8%a1%8c%e6%97%b6%e4%be%9d%e8%b5%96%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/7415\/","title":{"rendered":"\u4e3a\u4ec0\u4e48 MySQL \u4f9d\u8d56\u88ab\u8bbe\u7f6e\u4e3a\u8fd0\u884c\u65f6\u4f9d\u8d56\uff1f"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/001\/246\/273\/173080101286434.jpg\" class=\"aligncenter\" title=\"\u4e3a\u4ec0\u4e48 MySQL \u4f9d\u8d56\u88ab\u8bbe\u7f6e\u4e3a\u8fd0\u884c\u65f6\u4f9d\u8d56\uff1f\u63d2\u56fe\" alt=\"\u4e3a\u4ec0\u4e48 MySQL \u4f9d\u8d56\u88ab\u8bbe\u7f6e\u4e3a\u8fd0\u884c\u65f6\u4f9d\u8d56\uff1f\u63d2\u56fe\" \/><\/p>\n<p><strong>MySQL \u4f9d\u8d56\u4e3a\u4ec0\u4e48\u662f\u8fd0\u884c\u65f6\u4f9d\u8d56\uff1f<\/strong><\/p>\n<p>\u4e3a\u4ec0\u4e48 MySQL \u7684\u4f9d\u8d56\u8303\u56f4\u8bbe\u7f6e\u4e3a\u8fd0\u884c\u65f6 (Runtime)\uff1f\u8fd9\u610f\u5473\u7740\u4ec0\u4e48\uff0c\u53c8\u8be5\u5982\u4f55\u7406\u89e3\uff1f<\/p>\n<p><strong>Runtime \u4f9d\u8d56\u7684\u542b\u4e49<\/strong><\/p>\n<p>Runtime \u4f9d\u8d56\u8868\u793a\u5728\u7f16\u8bd1\u65f6\u4e0d\u9700\u8981\u4f9d\u8d56\u5173\u7cfb\u3002\u4f46\u662f\uff0c\u5728\u6253\u5305\u9879\u76ee\u65f6\uff0c\u8fd9\u4e9b\u4f9d\u8d56\u9879\u5c06\u5305\u62ec\u5728\u9879\u76ee\u4e2d\uff0c\u4ee5\u4fbf\u5728\u8fd0\u884c\u65f6\u4f7f\u7528\u3002<\/p>\n<p><strong>\u4e3a\u4ec0\u4e48 JDBC \u9a71\u52a8\u662f\u8fd0\u884c\u65f6\u4f9d\u8d56\uff1f<\/strong><\/p>\n<p>\u5728 Java \u4e2d\uff0c\u6211\u4eec\u901a\u5e38\u4f7f\u7528 JDBC \u8bbf\u95ee\u6570\u636e\u5e93\u3002JDBC \u63d0\u4f9b\u4e86\u901a\u7528\u7684\u6570\u636e\u5e93\u8fde\u63a5\u63a5\u53e3\uff0c\u800c\u4e0d\u4f9d\u8d56\u4e8e\u7279\u5b9a\u7684\u6570\u636e\u5e93\u9a71\u52a8\u7a0b\u5e8f\u3002<\/p>\n<p>\u5f53\u6211\u4eec\u8fde\u63a5 MySQL \u6570\u636e\u5e93\u65f6\uff0c\u6211\u4eec\u4f1a\u4f7f\u7528\u53cd\u5c04\u52a0\u8f7d MySQL JDBC \u9a71\u52a8\u7a0b\u5e8f\u3002\u7136\u800c\uff0c\u5728\u4ee3\u7801\u4e2d\uff0c\u6211\u4eec\u4e3b\u8981\u4f7f\u7528 JDBC \u63a5\u53e3\u3002\u56e0\u6b64\uff0c\u6211\u4eec\u4e0d\u76f4\u63a5\u4f9d\u8d56 MySQL JDBC \u7684\u4e13\u6709\u65b9\u6cd5\uff0c\u800c\u662f\u5728\u8fd0\u884c\u65f6\u901a\u8fc7\u53cd\u5c04\u52a0\u8f7d\u9a71\u52a8\u7a0b\u5e8f\u3002<\/p>\n<p><strong>Compile \u4f9d\u8d56\u4e0e Runtime \u4f9d\u8d56<\/strong><\/p>\n<p>Compile \u4f9d\u8d56\u5728\u7f16\u8bd1\u65f6\u9700\u8981\uff0c\u5e76\u4e14\u901a\u5e38\u5305\u542b\u5728 fat jar \u5305\u4e2d\u3002\u800c Runtime \u4f9d\u8d56\u4ec5\u5728\u6253\u5305\u65f6\u5305\u542b\uff0c\u4f46\u5728\u7f16\u8bd1\u65f6\u4e0d\u9700\u8981\u3002<\/p>\n<p><strong>\u7b54\u6848\u7ed3\u8bba<\/strong><\/p>\n<p>\u56e0\u6b64\uff0cMySQL \u4f9d\u8d56\u8bbe\u7f6e\u4e3a Runtime\uff0c\u56e0\u4e3a\u7f16\u8bd1\u65f6\u4e0d\u9700\u8981 JDBC \u9a71\u52a8\u7a0b\u5e8f\u7684\u4e13\u6709\u65b9\u6cd5\uff0c\u800c\u662f\u5728\u8fd0\u884c\u65f6\u901a\u8fc7\u53cd\u5c04\u52a0\u8f7d\u3002JDBC \u63a5\u53e3\u662f\u7f16\u8bd1\u4f9d\u8d56\uff0c\u800c JDBC \u9a71\u52a8\u7a0b\u5e8f\u662f\u8fd0\u884c\u4f9d\u8d56\u3002<\/p>\n<p>\u4ee5\u4e0a\u5c31\u662f\u4e3a\u4ec0\u4e48 MySQL \u4f9d\u8d56\u88ab\u8bbe\u7f6e\u4e3a\u8fd0\u884c\u65f6\u4f9d\u8d56\uff1f\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u7f51\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>MySQL \u4f9d\u8d56\u4e3a\u4ec0\u4e48\u662f\u8fd0\u884c\u65f6\u4f9d\u8d56\uff1f \u4e3a\u4ec0\u4e48 MySQL \u7684\u4f9d\u8d56\u8303\u56f4\u8bbe\u7f6e\u4e3a\u8fd0\u884c\u65f6 (Runtime)\uff1f\u8fd9\u610f\u5473\u7740\u4ec0\u4e48\uff0c\u53c8\u8be5\u5982\u4f55\u7406\u89e3\uff1f Runtime \u4f9d\u8d56\u7684\u542b\u4e49 Runtime \u4f9d\u8d56\u8868\u793a\u5728\u7f16\u8bd1\u65f6\u4e0d\u9700\u8981\u4f9d\u8d56\u5173\u7cfb\u3002\u4f46\u662f\uff0c\u5728\u6253\u5305\u9879\u76ee\u65f6\uff0c\u8fd9\u4e9b\u4f9d\u8d56\u9879\u5c06\u5305\u62ec\u5728\u9879\u76ee\u4e2d\uff0c\u4ee5\u4fbf\u5728\u8fd0\u884c\u65f6\u4f7f\u7528\u3002 \u4e3a\u4ec0\u4e48 JDBC \u9a71\u52a8\u662f\u8fd0\u884c\u65f6\u4f9d\u8d56\uff1f \u5728 Java \u4e2d\uff0c\u6211\u4eec\u901a\u5e38\u4f7f\u7528 JDBC \u8bbf\u95ee\u6570\u636e\u5e93\u3002JDBC \u63d0\u4f9b\u4e86\u901a\u7528\u7684\u6570\u636e\u5e93\u8fde\u63a5\u63a5\u53e3\uff0c\u800c\u4e0d\u4f9d\u8d56\u4e8e\u7279\u5b9a\u7684\u6570\u636e\u5e93\u9a71\u52a8\u7a0b\u5e8f\u3002 \u5f53\u6211\u4eec\u8fde\u63a5 MySQL \u6570\u636e\u5e93\u65f6\uff0c\u6211\u4eec\u4f1a\u4f7f\u7528\u53cd\u5c04\u52a0\u8f7d MySQL JDBC \u9a71\u52a8\u7a0b\u5e8f\u3002\u7136\u800c\uff0c\u5728\u4ee3\u7801\u4e2d\uff0c\u6211\u4eec\u4e3b\u8981\u4f7f\u7528 JDBC \u63a5\u53e3\u3002\u56e0\u6b64\uff0c\u6211\u4eec\u4e0d\u76f4\u63a5\u4f9d\u8d56 MySQL JDBC \u7684\u4e13\u6709\u65b9\u6cd5\uff0c\u800c\u662f\u5728\u8fd0\u884c\u65f6\u901a\u8fc7\u53cd\u5c04\u52a0\u8f7d\u9a71\u52a8\u7a0b\u5e8f\u3002 Compile \u4f9d\u8d56\u4e0e Runtime \u4f9d\u8d56 Compile \u4f9d\u8d56\u5728\u7f16\u8bd1\u65f6\u9700\u8981\uff0c\u5e76\u4e14\u901a\u5e38\u5305\u542b\u5728 fat jar \u5305\u4e2d\u3002\u800c Runtime \u4f9d\u8d56\u4ec5\u5728\u6253\u5305\u65f6\u5305\u542b\uff0c\u4f46\u5728\u7f16\u8bd1\u65f6\u4e0d\u9700\u8981\u3002 \u7b54\u6848\u7ed3\u8bba \u56e0\u6b64\uff0cMySQL \u4f9d\u8d56\u8bbe\u7f6e\u4e3a Runtime\uff0c\u56e0\u4e3a\u7f16\u8bd1\u65f6\u4e0d\u9700\u8981 JDBC \u9a71\u52a8\u7a0b\u5e8f\u7684\u4e13\u6709\u65b9\u6cd5\uff0c\u800c\u662f\u5728\u8fd0\u884c\u65f6\u901a\u8fc7\u53cd\u5c04\u52a0\u8f7d\u3002JDBC \u63a5\u53e3\u662f\u7f16\u8bd1\u4f9d\u8d56\uff0c\u800c JDBC \u9a71\u52a8\u7a0b\u5e8f\u662f\u8fd0\u884c\u4f9d\u8d56\u3002 \u4ee5\u4e0a\u5c31\u662f\u4e3a\u4ec0\u4e48 MySQL \u4f9d\u8d56\u88ab\u8bbe\u7f6e\u4e3a\u8fd0\u884c\u65f6\u4f9d\u8d56\uff1f\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u7f51\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-7415","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/7415","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=7415"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/7415\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=7415"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=7415"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=7415"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}