{"id":42069,"date":"2023-03-06T13:47:25","date_gmt":"2023-03-06T05:47:25","guid":{"rendered":"http:\/\/lrxjmw.cn\/?p=42069"},"modified":"2023-03-06T13:47:25","modified_gmt":"2023-03-06T05:47:25","slug":"solve-mysql-character","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/solve-mysql-character.html","title":{"rendered":"\u5982\u4f55\u89e3\u51b3MySQL\u5b57\u7b26\u96c6\u4e71\u7801\u95ee\u9898"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\nMySQL\u81ea4.1\u7248\u672c\u63a8\u51fa\u4e4b\u540e\u7531\u4e8e\u4e2d\u6587\u7684\u7279\u6b8a\u6027\u5e26\u6765\u7684\u4e71\u7801\u95ee\u9898\u4e5f\u968f\u5728\u4e92\u8054\u7f51\u884c\u4e1a\u51fa\u73b0\u3002\u4e3b\u8981\u539f\u56e0\u5c31\u662f\u4e0d\u540c\u5b57\u7b26\u96c6\u7f16\u7801\u4e0d\u540c\u800c\u4ea7\u751f\u7684\u3002\u672c\u6587\u7b80\u8981\u4ecb\u7ecd\u5b57\u7b26\u96c6\u76f8\u5173\u77e5\u8bc6\u53ca\u90e8\u5206\u4e71\u7801\u60c5\u51b5\u7684\u89e3\u51b3\u65b9\u5f0f\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n
\u4e00\u3001\u5b57\u7b26\u96c6\u672c\u6982\u5ff5<\/strong><\/div>\n

\u5b57\u7b26\u96c6\u7684\u57fa\u672c\u6982\u5ff5\u5982\u4e0b :<\/p>\n

  \u5b57\u7b26(Character)\u662f\u6307\u4eba\u7c7b\u8bed\u8a00\u4e2d\u6700\u5c0f\u7684\u8868\u4e49\u7b26\u53f7\u3002\u4f8b\u5982\u2019A\u2019\u3001\u2019B\u2019\u7b49\r\n  \u7ed9\u5b9a\u4e00\u7cfb\u5217\u5b57\u7b26\uff0c\u5bf9\u6bcf\u4e2a\u5b57\u7b26\u8d4b\u4e88\u4e00\u4e2a\u6570\u503c\uff0c\u7528\u6570\u503c\u6765\u4ee3\u8868\u5bf9\u5e94\u7684\u5b57\u7b26\uff0c\u8fd9\u4e00\u6570\u503c\u5c31\u662f\u5b57\u7b26\u7684\u7f16\u7801(Encoding)\u3002\u4f8b\u5982\uff0c\u6211\u4eec\u7ed9\u5b57 \u7b26\u2019A\u2019\u8d4b\u4e88\u6570\u503c0\uff0c\u7ed9\u5b57\u7b26\u2019B\u2019\u8d4b\u4e88\u6570\u503c1\uff0c\u52190\u5c31\u662f\u5b57\u7b26\u2019A\u2019\u7684\u7f16\u7801\r\n  \u7ed9\u5b9a\u4e00\u7cfb\u5217\u5b57\u7b26\u5e76\u8d4b\u4e88\u5bf9\u5e94\u7684\u7f16\u7801\u540e\uff0c\u6240\u6709\u8fd9\u4e9b\u5b57\u7b26\u548c\u7f16\u7801\u5bf9\u7ec4\u6210\u7684\u96c6\u5408\u5c31\u662f\u5b57\u7b26\u96c6(Character Set)\u3002\u4f8b\u5982\uff0c\u7ed9\u5b9a\u5b57\u7b26\u5217\u8868\u4e3a{\u2019A\u2019,\u2019B\u2019}\u65f6\uff0c{\u2019A\u2019=>0, \u2018B\u2019=>1}\u5c31\u662f\u4e00\u4e2a\u5b57\u7b26\u96c6\r\n  \u5b57\u7b26\u5e8f(Collation)\u662f\u6307\u5728\u540c\u4e00\u5b57\u7b26\u96c6\u5185\u5b57\u7b26\u4e4b\u95f4\u7684\u6bd4\u8f83\u89c4\u5219\r\n  \u786e\u5b9a\u5b57\u7b26\u5e8f\u540e\uff0c\u624d\u80fd\u5728\u4e00\u4e2a\u5b57\u7b26\u96c6\u4e0a\u5b9a\u4e49\u4ec0\u4e48\u662f\u7b49\u4ef7\u7684\u5b57\u7b26\uff0c\u4ee5\u53ca\u5b57\u7b26\u4e4b\u95f4\u7684\u5927\u5c0f\u5173\u7cfb\r\n  \u6bcf\u4e2a\u5b57\u7b26\u5e8f\u552f\u4e00\u5bf9\u5e94\u4e00\u79cd\u5b57\u7b26\u96c6\uff0c\u4f46\u4e00\u4e2a\u5b57\u7b26\u96c6\u53ef\u4ee5\u5bf9\u5e94\u591a\u79cd\u5b57\u7b26\u5e8f\uff0c\u5176\u4e2d\u6709\u4e00\u4e2a\u662f\u9ed8\u8ba4\u5b57\u7b26\u5e8f(Default Collation)\r\n  MySQL\u4e2d\u7684\u5b57\u7b26\u5e8f\u540d\u79f0\u9075\u4ece\u547d\u540d\u60ef\u4f8b\uff1a\u4ee5\u5b57\u7b26\u5e8f\u5bf9\u5e94\u7684\u5b57\u7b26\u96c6\u540d\u79f0\u5f00\u5934\uff1b\u4ee5_ci(\u8868\u793a\u5927\u5c0f\u5199\u4e0d\u654f\u611f)\u3001_cs(\u8868\u793a\u5927\u5c0f\u5199\u654f\u611f)\u6216_bin(\u8868\u793a\u6309\u7f16\u7801\u503c\u6bd4\u8f83)\u7ed3\u5c3e\u3002\u4f8b\u5982\uff1a\u5728\u5b57\u7b26\u5e8f\u201cutf8_general_ci\u201d\u4e0b\uff0c\u5b57\u7b26\u201ca\u201d\u548c\u201cA\u201d\u662f\u7b49\u4ef7\u7684\u3002\r\n<\/pre>\n
\u4e8c\u3001\u5e38\u89c1\u5b57\u7b26\u96c6<\/strong><\/div>\n
1\uff09 ASCII<\/strong><\/span><\/div>\n

ASCII\u662f\u82f1\u6587American Standard Code for Information Interchange\u7684\u7f29\u5199,\u7f8e\u56fd\u6807\u51c6\u4fe1\u606f\u4ea4\u6362\u4ee3\u7801\u662f\u7531\u7f8e\u56fd\u56fd\u5bb6\u6807\u51c6\u5b66\u4f1a(American National Standard Institute , ANSI )\u5236\u5b9a\u7684\uff0c\u6807\u51c6\u7684\u5355\u5b57\u8282\u5b57\u7b26\u7f16\u7801\u65b9\u6848\uff0c\u7528\u4e8e\u57fa\u4e8e\u6587\u672c\u7684\u6570\u636e\u3002\u662f\u57fa\u4e8e\u62c9\u4e01\u5b57\u6bcd\u7684\u4e00\u5957\u7535\u8111\u7f16\u7801\u7cfb\u7edf\u3002\u5b83\u4e3b\u8981\u7528\u4e8e\u663e\u793a\u73b0\u4ee3\u82f1\u8bed\u548c\u5176\u4ed6\u897f\u6b27\u8bed\u8a00\u3002\u5b83\u662f\u73b0\u4eca\u6700\u901a\u7528\u7684 \u5355\u5b57\u8282\u7f16\u7801\u7cfb\u7edf\uff0c\u5e76\u7b49\u540c\u4e8e\u56fd\u9645\u6807\u51c6ISO\/IEC 646\u3002<\/p>\n

ASCII \u7801\u4f7f\u7528\u6307\u5b9a\u76847 \u4f4d\u62168 \u4f4d\u4e8c\u8fdb\u5236\u6570\u7ec4\u5408\u6765\u8868\u793a128 \u6216256 \u79cd\u53ef\u80fd\u7684\u5b57\u7b26\u3002\u6807\u51c6ASCII \u7801\u4e5f\u53eb\u57fa\u7840ASCII\u7801\uff0c\u4f7f\u75287 \u4f4d\u4e8c\u8fdb\u5236\u6570\u6765\u8868\u793a\u6240\u6709\u7684\u5927\u5199\u548c\u5c0f\u5199\u5b57\u6bcd\uff0c\u6570\u5b570 \u52309\u3001\u6807\u70b9\u7b26\u53f7\uff0c \u4ee5\u53ca\u5728\u7f8e\u5f0f\u82f1\u8bed\u4e2d\u4f7f\u7528\u7684\u7279\u6b8a\u63a7\u5236\u5b57\u7b26\u3002<\/p>\n

2\uff09GBK<\/strong><\/span><\/div>\n

GBK\u5373\u6c49\u5b57\u5185\u7801\u6269\u5c55\u89c4\u8303\uff0cK\u4e3a\u6269\u5c55\u7684\u6c49\u8bed\u62fc\u97f3\u4e2d\u201c\u6269\u201d\u5b57\u7684\u58f0\u6bcd\u3002\u82f1\u6587\u5168\u79f0Chinese Internal Code Specification\u3002GBK\u7f16\u7801\u6807\u51c6\u517c\u5bb9GB2312\uff0c\u5171\u6536\u5f55\u6c49\u5b5721003\u4e2a\u3001\u7b26\u53f7883\u4e2a\uff0c\u5e76\u63d0\u4f9b1894\u4e2a\u9020\u5b57\u7801\u4f4d\uff0c\u7b80\u3001\u7e41\u4f53\u5b57\u878d\u4e8e\u4e00\u5e93\u3002<\/p>\n

GB2312\u7801\u662f\u4e2d\u534e\u4eba\u6c11\u5171\u548c\u56fd\u56fd\u5bb6\u6c49\u5b57\u4fe1\u606f\u4ea4\u6362\u7528\u7f16\u7801\uff0c\u5168\u79f0\u300a\u4fe1\u606f\u4ea4\u6362\u7528\u6c49\u5b57\u7f16\u7801\u5b57\u7b26\u96c6\u2014\u2014\u57fa\u672c\u96c6\u300b\uff0c1980\u5e74\u7531\u56fd\u5bb6\u6807\u51c6\u603b\u5c40\u53d1\u5e03\u3002\u57fa\u672c\u96c6\u5171\u6536\u5165\u6c49\u5b57 6763\u4e2a\u548c\u975e\u6c49\u5b57\u56fe\u5f62\u5b57\u7b26682\u4e2a\uff0c\u901a\u884c\u4e8e\u4e2d\u56fd\u5927\u9646\u3002\u65b0\u52a0\u5761\u7b49\u5730\u4e5f\u4f7f\u7528\u6b64\u7f16\u7801\u3002GBK\u662f\u5bf9GB2312-80\u7684\u6269\u5c55\uff0c\u4e5f\u5c31\u662fCP936\u5b57\u7801\u8868 (Code Page 936)\u7684\u6269\u5c55\uff08\u4e4b\u524dCP936\u548cGB 2312-80\u4e00\u6a21\u4e00\u6837\uff09\u3002<\/p>\n

3\uff09latin1<\/strong><\/span><\/div>\n

Latin1\u662fISO-8859-1\u7684\u522b\u540d\uff0c\u6709\u4e9b\u73af\u5883\u4e0b\u5199\u4f5cLatin-1\u3002<\/p>\n

ISO-8859-1
\nISO-8859-1\u7f16\u7801\u662f\u5355\u5b57\u8282\u7f16\u7801\uff0c\u5411\u4e0b\u517c\u5bb9ASCII\uff0c\u5176\u7f16\u7801\u8303\u56f4\u662f0x00-0xFF\uff0c0x00-0x7F\u4e4b\u95f4\u5b8c\u5168\u548cASCII\u4e00\u81f4\uff0c0x80-0x9F\u4e4b\u95f4\u662f\u63a7\u5236\u5b57\u7b26\uff0c0xA0-0xFF\u4e4b\u95f4\u662f\u6587\u5b57\u7b26\u53f7\u3002<\/p>\n

ISO-8859-1\u6536\u5f55\u7684\u5b57\u7b26\u9664ASCII\u6536\u5f55\u7684\u5b57\u7b26\u5916\uff0c\u8fd8\u5305\u62ec\u897f\u6b27\u8bed\u8a00\u3001\u5e0c\u814a\u8bed\u3001\u6cf0\u8bed\u3001\u963f\u62c9\u4f2f\u8bed\u3001\u5e0c\u4f2f\u6765\u8bed\u5bf9\u5e94\u7684\u6587\u5b57\u7b26\u53f7\u3002\u6b27\u5143\u7b26\u53f7\u51fa\u73b0\u7684\u6bd4\u8f83\u665a\uff0c\u6ca1\u6709\u88ab\u6536\u5f55\u5728ISO-8859-1\u5f53\u4e2d\u3002<\/p>\n

\u56e0\u4e3aISO-8859-1\u7f16\u7801\u8303\u56f4\u4f7f\u7528\u4e86\u5355\u5b57\u8282\u5185\u7684\u6240\u6709\u7a7a\u95f4\uff0c\u5728\u652f\u6301ISO-8859-1\u7684\u7cfb\u7edf\u4e2d\u4f20\u8f93\u548c\u5b58\u50a8\u5176\u4ed6\u4efb\u4f55\u7f16\u7801\u7684\u5b57\u8282\u6d41\u90fd\u4e0d\u4f1a\u88ab\u629b\u5f03\u3002\u6362\u8a00\u4e4b\uff0c\u628a\u5176\u4ed6\u4efb\u4f55\u7f16\u7801\u7684\u5b57\u8282\u6d41\u5f53\u4f5cISO-8859-1\u7f16\u7801\u770b\u5f85\u90fd\u6ca1\u6709\u95ee\u9898\u3002\u8fd9\u662f\u4e2a\u5f88\u91cd\u8981\u7684\u7279\u6027\uff0cMySQL\u6570\u636e\u5e93\u9ed8\u8ba4\u7f16\u7801\u662fLatin1\u5c31\u662f\u5229\u7528\u4e86\u8fd9\u4e2a \u7279\u6027\u3002ASCII\u7f16\u7801\u662f\u4e00\u4e2a7\u4f4d\u7684\u5bb9\u5668\uff0cISO-8859-1\u7f16\u7801\u662f\u4e00\u4e2a8\u4f4d\u7684\u5bb9\u5668\u3002<\/p>\n

4\uff09UTF-8<\/strong><\/span><\/div>\n

UTF-8\uff088-bit Unicode Transformation Format\uff09\u662f\u4e00\u79cd\u9488\u5bf9Unicode\u7684\u53ef\u53d8\u957f\u5ea6\u5b57\u7b26\u7f16\u7801\uff0c\u53c8\u79f0\u4e07\u56fd\u7801\u3002\u7531Ken Thompson\u4e8e1992\u5e74\u521b\u5efa\u3002\u73b0\u5728\u5df2\u7ecf\u6807\u51c6\u5316\u4e3aRFC 3629\u3002UTF-8\u75281\u52304\u4e2a\u5b57\u8282\u7f16\u7801UNICODE\u5b57\u7b26\u3002\u7528\u5728\u7f51\u9875\u4e0a\u53ef\u4ee5\u540c\u4e00\u9875\u9762\u663e\u793a\u4e2d\u6587\u7b80\u4f53\u7e41\u4f53\u53ca\u5176\u5b83\u8bed\u8a00\uff08\u5982\u65e5\u6587\uff0c\u97e9\u6587\uff09<\/p>\n

UTF-8\u4ee5\u5b57\u8282\u4e3a\u5355\u4f4d\u5bf9Unicode\u8fdb\u884c\u7f16\u7801\u3002<\/p>\n

UTF-8\u7684\u7279\u70b9\u662f\u5bf9\u4e0d\u540c\u8303\u56f4\u7684\u5b57\u7b26\u4f7f\u7528\u4e0d\u540c\u957f\u5ea6\u7684\u7f16\u7801\u3002\u5bf9\u4e8e0x00-0x7F\u4e4b\u95f4\u7684\u5b57\u7b26\uff0cUTF-8\u7f16\u7801\u4e0eASCII\u7f16\u7801\u5b8c\u5168\u76f8\u540c\u3002UTF-8 \u7f16\u7801\u7684\u6700\u5927\u957f\u5ea6\u662f4\u4e2a\u5b57\u8282\u3002<\/p>\n

\u4ece\u4e0a\u8868\u53ef\u4ee5\u770b\u51fa\uff0c4\u5b57\u8282\u6a21\u677f\u670921\u4e2ax\uff0c\u5373\u53ef\u4ee5\u5bb9\u7eb321\u4f4d\u4e8c\u8fdb\u5236\u6570\u5b57\u3002Unicod\u7684\u6700\u5927\u7801\u4f4d0x10FFFF\u4e5f\u53ea\u670921 \u4f4d\u3002<\/p>\n

\"mysql-character\"<\/p>\n

\u4e09\u3001MySQL\u5b57\u7b26\u96c6\u8f6c\u6362\u8fc7\u7a0b<\/strong><\/div>\n

1. MySQL Server\u6536\u5230\u8bf7\u6c42\u65f6\u5c06\u8bf7\u6c42\u6570\u636e\u4ececharacter_set_client\u8f6c\u6362\u4e3acharacter_set_connection<\/p>\n

2. \u8fdb\u884c\u5185\u90e8\u64cd\u4f5c\u524d\u5c06\u8bf7\u6c42\u6570\u636e\u4ececharacter_set_connection\u8f6c\u6362\u4e3a\u5185\u90e8\u64cd\u4f5c\u5b57\u7b26\u96c6\uff0c\u5176\u786e\u5b9a\u65b9\u6cd5\u5982\u4e0b:<\/p>\n

1) \u4f7f\u7528\u6bcf\u4e2aColumn\u7684CHARACTER SET\u8bbe\u5b9a\u503c\uff1b
\n2) \u5982\u672a\u8bbe\u7f6eColumn\u7684Character SET\uff0c\u5219\u4f7f\u7528\u5bf9\u5e94\u8868\u7684DEFAULT CHARACTER SET\u8bbe\u5b9a\u503c
\n3) \u5982Column\u3001Table\u5747\u672a\u8bbe\u5730Charater SET\uff0c\u5219\u4f7f\u7528\u5bf9\u5e94\u6570\u636e\u5e93\u7684DEFAULT CHARACTER SET\u8bbe\u5b9a\u503c
\n4) \u5982Column\u3001Table\u3001Database\u5747\u672a\u8bbe\u5730Charater SET\uff0c\u5219\u4f7f\u7528character_set_server\u8bbe\u5b9a\u503c\u3002<\/p>\n

3. \u5c06\u64cd\u4f5c\u7ed3\u679c\u4ece\u5185\u90e8\u64cd\u4f5c\u5b57\u7b26\u96c6\u8f6c\u6362\u4e3acharacter_set_results<\/p>\n

\"1-webp\"<\/p>\n

\u56db\u3001\u4e2d\u6587\u4e71\u7801\u73b0\u8c61<\/strong><\/div>\n

Mysqldump\u5bfc\u5165\u4e71\u7801<\/p>\n

\"2-webp\"<\/p>\n

Load data\u5bfc\u5165\u4e71\u7801<\/p>\n

\"3-webp\"<\/p>\n

\u4e94\u3001\u7a0b\u5e8f\u53caMySQL\u5b57\u7b26\u96c6\u914d\u7f6e\u60c5\u51b5<\/strong><\/div>\n

\u51fa\u73b0\u4e71\u7801\u60c5\u51b5\uff0c\u9996\u5148\u786e\u8ba4\u5199\u5165\u7a0b\u5e8f\u4f7f\u7528\u7684\u5b57\u7b26\u96c6\uff0cMySQL\u4f7f\u7528\u7684\u5b57\u7b26\u96c6
\nMySQL\u4f7f\u7528\u7684\u5b57\u7b26\u96c6\u60c5\u51b5<\/p>\n

\u901a\u8fc7SHOW VARIABLES LIKE \u2018character%\u2019\uff0c\u5728\u4e0a\u9762\u4f8b\u5b50\u4e2d\u901a\u8fc7\u8bed\u53e5\u83b7\u5f97\u5b57\u7b26\u96c6\u8bbe\u7f6e\u60c5\u51b5\u5982\u4e0b:<\/p>\n

\"4-webp\"<\/p>\n

Mysqldump\u5bfc\u5165\u4e71\u7801\u539f\u56e0 :<\/p>\n

1\u3001 \u9996\u5148\u786e\u8ba4mysqldump \u2013help\u6216\u67e5\u770b\u5907\u4efd\u6587\u4ef6\u5934\u90e8\u4fe1\u606f\u786e\u8ba4\u9ed8\u8ba4\u5b57\u7b26\u96c6
\n\u5728\u4e0a\u4f8b\u4e2d\u901a\u8fc7mysqldump \u2013help\u67e5\u770b<\/p>\n

\u901a\u8fc7\u5907\u4efd\u6587\u4ef6\u67e5\u770b<\/p>\n

\"5-webp\"<\/p>\n

2\u3001 \u901a\u8fc7 mysql \u2013help \u786e\u8ba4\u5bfc\u5165\u5b57\u7b26\u96c6<\/p>\n

default-character-set        gbk<\/pre>\n

\u5bfc\u5165\u7684\u4e24\u79cd\u60c5\u51b5\u5982\u4e0b<\/p>\n

1\uff09\u4e0d\u4fee\u6539\u5907\u4efd\u6587\u4ef6\uff0c\u5bfc\u5165\u7531\u4e8esql\u6587\u4ef6\u4e2d\u5b58\u5728set names utf8\uff0c\u5219\u5bfc\u5165\u540e\u5b57\u7b26\u96c6\u4f7f\u7528\u7684\u4f9d\u7136\u662futf8,\u5728\u7cfb\u7edf\u9ed8\u8ba4\u663e\u793a\u5b57\u7b26\u96c6\u4e3agbk\u7684\u60c5\u51b5\u4e0b\uff0c\u5219\u663e\u793a\u4e3a\u4e71\u7801\uff0c\u6b64\u65f6\u5219\u9700\u8981\u4f7f\u7528set names utf8 \u624d\u80fd\u6b63\u5e38\u663e\u793a\u5b57\u7b26<\/p>\n

2\uff09\u4fee\u6539\u5907\u4efd\u6587\u4ef6\uff0c\u5bfc\u5165\u524d\u5c06sql\u4e2d\u7684set names utf8 \u53bb\u9664\uff0c\u5728mysql\u9ed8\u8ba4\u5b57\u7b26\u96c6\u4e3agbk\u7684\u60c5\u51b5\u4e0b\u5bfc\u5165\u540e\u5b57\u7b26\u96c6\u4e3agbk,\u6b64\u65f6mysql\u663e\u793a\u5b57\u7b26\u96c6\u4e3a gbk\uff0c\u4e24\u8005\u4e00\u81f4\uff0c\u5219\u663e\u793a\u6b63\u5e38<\/p>\n

Load data\u5bfc\u5165\u4e71\u7801\u539f\u56e0<\/p>\n

\"6-webp\"<\/p>\n

\u5bf9\u4e8eload data\u5bfc\u5165\u4e71\u7801\u95ee\u9898\u7684\u5177\u4f53\u89e3\u91ca\u5728\u5b98\u65b9\u6587\u6863\u4e2d\u6709\u63d0\u53ca\uff0c\u8bf7\u53c2\u8003:<\/p>\n

\"7-webp\"<\/p>\n

\u8fd9\u4e9b\u662f\u65e0\u6cd5\u5f71\u54cd\u5230\u5bfc\u5165\u7ed3\u679c\u7684\uff0c\u56e0\u6b64\u5e94\u4f7f\u7528Load \u81ea\u8eab\u7684\u5b57\u7b26\u96c6\u53c2\u6570\u6765\u8fdb\u884c\u6570\u636e\u5bfc\u5165\uff0c\u5982\u4e0b\u65b9\u5f0f:<\/p>\n

mysql>load data infile '\/tmp\/gongzuoshi.ttt' into chartest ; CHARACTER\r\nSET gbk\r\n<\/pre>\n
\u516d\u3001\u603b\u7ed3<\/strong><\/div>\n
1\u3001 \u7f16\u8bd1\u5b89\u88c5MySQL\u7684\u65f6\u5019\u6307\u5b9aDEFAULT_CHARSET=[charset] \u4e0e\u5199\u5165\u7a0b\u5e8f\u4fdd\u6301\u4e00\u81f4\r\n2\u3001 my.cnf\u4e2d\u5b57\u7b26\u96c6\u8bbe\u7f6e\u4e0e\u5199\u5165\u7a0b\u5e8f\u4fdd\u6301\u4e00\u81f4\r\n3\u3001 \u5bfc\u5165\u6570\u636e\u65f6\uff0c\u5c06\u5bfc\u5165\u7a0b\u5e8f\u4e0e\u6570\u636e\u5e93\u7684\u94fe\u63a5\u914d\u7f6e\u4e3a\u4e0e\u6570\u636e\u5e93\u5b57\u7b26\u96c6\u4e00\u81f4\r\n4\u3001load data\u9700\u8981\u5728\u8bed\u53e5\u4e2d\u8bbe\u7f6e\u5b57\u7b26\u96c6\u53c2\u6570<\/pre>\n
\n

\u539f\u6587\u6765\u81ea\uff1a\u4e91\u8ba1\u7b97\u5b9e\u6218<\/a><\/p>\n

\u672c\u6587\u5730\u5740\uff1ahttp:\/\/lrxjmw.cn\/solve-mysql-character.html<\/a>\u7f16\u8f91\uff1a\u9676\u6b66\u6770\uff0c\u5ba1\u6838\u5458\uff1a\u82cf\u897f\u4e91<\/span><\/p>\n

\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"

\u5bfc\u8bfb MySQL\u81ea4.1\u7248\u672c\u63a8\u51fa\u4e4b\u540e\u7531\u4e8e\u4e2d\u6587\u7684\u7279\u6b8a\u6027\u5e26\u6765\u7684\u4e71\u7801\u95ee\u9898\u4e5f\u968f\u5728\u4e92\u8054\u7f51\u884c\u4e1a\u51fa\u73b0\u3002\u4e3b\u8981\u539f\u56e0\u5c31\u662f\u4e0d\u540c\u5b57\u7b26\u96c6 […]<\/p>\n","protected":false},"author":63,"featured_media":42306,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-42069","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/42069","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/63"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=42069"}],"version-history":[{"count":18,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/42069\/revisions"}],"predecessor-version":[{"id":266402,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/42069\/revisions\/266402"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/42306"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=42069"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=42069"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=42069"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}