{"id":7938,"date":"2024-11-14T13:18:14","date_gmt":"2024-11-14T05:18:14","guid":{"rendered":"https:\/\/fwq.ai\/blog\/7938\/"},"modified":"2024-11-14T13:18:14","modified_gmt":"2024-11-14T05:18:14","slug":"%e8%ae%ba%e5%9d%9b%e7%bd%91%e9%a1%b5%e8%bf%90%e8%a1%8c%e5%bc%82%e5%b8%b8%ef%bc%8c%e5%86%85%e9%83%a8%e6%9c%8d%e5%8a%a1%e5%99%a8%e9%94%99%e8%af%af%ef%bc%8c%e5%a6%82%e4%bd%95%e6%8e%92%e6%9f%a5%e5%8e%9f","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/7938\/","title":{"rendered":"\u8bba\u575b\u7f51\u9875\u8fd0\u884c\u5f02\u5e38\uff0c\u5185\u90e8\u670d\u52a1\u5668\u9519\u8bef\uff0c\u5982\u4f55\u6392\u67e5\u539f\u56e0\uff1f"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/001\/246\/273\/173137595323883.jpg\" class=\"aligncenter\" title=\"\u8bba\u575b\u7f51\u9875\u8fd0\u884c\u5f02\u5e38\uff0c\u5185\u90e8\u670d\u52a1\u5668\u9519\u8bef\uff0c\u5982\u4f55\u6392\u67e5\u539f\u56e0\uff1f\u63d2\u56fe\" alt=\"\u8bba\u575b\u7f51\u9875\u8fd0\u884c\u5f02\u5e38\uff0c\u5185\u90e8\u670d\u52a1\u5668\u9519\u8bef\uff0c\u5982\u4f55\u6392\u67e5\u539f\u56e0\uff1f\u63d2\u56fe\" \/><\/p>\n<p><strong>\u8bba\u575b\u7f51\u9875\u8fd0\u884c\u5f02\u5e38\u7684\u539f\u56e0\u5206\u6790<\/strong><\/p>\n<p>\u7528\u6237\u53cd\u6620\u5176\u5f00\u53d1\u7684\u8bba\u575b\u5728\u7f51\u9875\u4e0a\u8fd0\u884c\u65f6\u51fa\u73b0\u5185\u90e8\u670d\u52a1\u5668\u9519\u8bef\uff0c\u9875\u9762\u663e\u793a\u201corg.springframework.jdbc.UncategorizedSQLException: Hibernate operation: Cannot open connection; uncategorized SQLException for SQL\u201d\u5f02\u5e38\u3002<\/p>\n<p><strong>\u53ef\u80fd\u7684\u9519\u8bef\u539f\u56e0\uff1a<\/strong><\/p>\n<p><strong>1. \u6570\u636e\u5e93\u8fde\u63a5\u95ee\u9898<\/strong><\/p>\n<p>\u9519\u8bef\u4fe1\u606f\u4e2d\u63d0\u5230\u201cCannot open connection\u201d\uff0c\u8868\u660e\u8be5\u8bba\u575b\u65e0\u6cd5\u8fde\u63a5\u5230\u6570\u636e\u5e93\u3002\u5e94\u68c0\u67e5\u6570\u636e\u5e93\u914d\u7f6e\uff0c\u786e\u4fdd\u6570\u636e\u5e93\u540d\u79f0\u3001\u4e3b\u673a\u3001\u7aef\u53e3\u3001\u7528\u6237\u540d\u548c\u5bc6\u7801\u6b63\u786e\u3002\u540c\u65f6\uff0c\u786e\u8ba4\u9632\u706b\u5899\u662f\u5426\u5141\u8bb8\u8bba\u575b\u8bbf\u95ee\u6570\u636e\u5e93\u3002<\/p>\n<p><strong>2. \u7f16\u7801\u95ee\u9898<\/strong><\/p>\n<p>\u9519\u8bef\u4fe1\u606f\u4e5f\u63d0\u5230\u4e86\u201cUnknown initial character set index &#8216;255&#8217; received from server\u201d\uff0c\u8fd9\u8868\u660e\u8bba\u575b\u548c\u6570\u636e\u5e93\u4e4b\u95f4\u7684\u5b57\u7b26\u7f16\u7801\u4e0d\u5339\u914d\u3002\u53ef\u4ee5\u68c0\u67e5\u6570\u636e\u5e93\u914d\u7f6e\uff0c\u786e\u4fdd\u5b57\u7b26\u7f16\u7801\u4e0e\u8bba\u575b\u4f7f\u7528\u7684\u5b57\u7b26\u7f16\u7801\u4e00\u81f4\u3002<\/p>\n<p>\u4ee5\u4e0a\u5c31\u662f\u8bba\u575b\u7f51\u9875\u8fd0\u884c\u5f02\u5e38\uff0c\u5185\u90e8\u670d\u52a1\u5668\u9519\u8bef\uff0c\u5982\u4f55\u6392\u67e5\u539f\u56e0\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>\u8bba\u575b\u7f51\u9875\u8fd0\u884c\u5f02\u5e38\u7684\u539f\u56e0\u5206\u6790 \u7528\u6237\u53cd\u6620\u5176\u5f00\u53d1\u7684\u8bba\u575b\u5728\u7f51\u9875\u4e0a\u8fd0\u884c\u65f6\u51fa\u73b0\u5185\u90e8\u670d\u52a1\u5668\u9519\u8bef\uff0c\u9875\u9762\u663e\u793a\u201corg.springframework.jdbc.UncategorizedSQLException: Hibernate operation: Cannot open connection; uncategorized SQLException for SQL\u201d\u5f02\u5e38\u3002 \u53ef\u80fd\u7684\u9519\u8bef\u539f\u56e0\uff1a 1. \u6570\u636e\u5e93\u8fde\u63a5\u95ee\u9898 \u9519\u8bef\u4fe1\u606f\u4e2d\u63d0\u5230\u201cCannot open connection\u201d\uff0c\u8868\u660e\u8be5\u8bba\u575b\u65e0\u6cd5\u8fde\u63a5\u5230\u6570\u636e\u5e93\u3002\u5e94\u68c0\u67e5\u6570\u636e\u5e93\u914d\u7f6e\uff0c\u786e\u4fdd\u6570\u636e\u5e93\u540d\u79f0\u3001\u4e3b\u673a\u3001\u7aef\u53e3\u3001\u7528\u6237\u540d\u548c\u5bc6\u7801\u6b63\u786e\u3002\u540c\u65f6\uff0c\u786e\u8ba4\u9632\u706b\u5899\u662f\u5426\u5141\u8bb8\u8bba\u575b\u8bbf\u95ee\u6570\u636e\u5e93\u3002 2. \u7f16\u7801\u95ee\u9898 \u9519\u8bef\u4fe1\u606f\u4e5f\u63d0\u5230\u4e86\u201cUnknown initial character set index &#8216;255&#8217; received from server\u201d\uff0c\u8fd9\u8868\u660e\u8bba\u575b\u548c\u6570\u636e\u5e93\u4e4b\u95f4\u7684\u5b57\u7b26\u7f16\u7801\u4e0d\u5339\u914d\u3002\u53ef\u4ee5\u68c0\u67e5\u6570\u636e\u5e93\u914d\u7f6e\uff0c\u786e\u4fdd\u5b57\u7b26\u7f16\u7801\u4e0e\u8bba\u575b\u4f7f\u7528\u7684\u5b57\u7b26\u7f16\u7801\u4e00\u81f4\u3002 \u4ee5\u4e0a\u5c31\u662f\u8bba\u575b\u7f51\u9875\u8fd0\u884c\u5f02\u5e38\uff0c\u5185\u90e8\u670d\u52a1\u5668\u9519\u8bef\uff0c\u5982\u4f55\u6392\u67e5\u539f\u56e0\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-7938","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/7938","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=7938"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/7938\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=7938"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=7938"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=7938"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}