{"id":200058,"date":"2020-11-15T04:52:02","date_gmt":"2020-11-14T20:52:02","guid":{"rendered":"http:\/\/4563.org\/?p=200058"},"modified":"2020-11-15T04:52:02","modified_gmt":"2020-11-14T20:52:02","slug":"php7-x-pdo-%e5%a6%82%e4%bd%95%e6%94%af%e6%8c%81-mysql8%ef%bc%8c%e4%b8%8d%e4%bf%ae%e6%94%b9%e6%95%b0%e6%8d%ae%e5%ba%93%e9%85%8d%e7%bd%ae","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=200058","title":{"rendered":"PHP7.x PDO \u5982\u4f55\u652f\u6301 Mysql8\uff0c\u4e0d\u4fee\u6539\u6570\u636e\u5e93\u914d\u7f6e?"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  PHP7.x PDO \u5982\u4f55\u652f\u6301 Mysql8\uff0c\u4e0d\u4fee\u6539\u6570\u636e\u5e93\u914d\u7f6e?               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Felldeadbird <\/span>  <span><i><\/i> 3<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u5b98\u65b9\u8bf4 7.1.20 \u7248\u672c \u548c\u5176\u4ed6\u7248\u672c\uff0c\u9ed8\u8ba4\u90fd\u652f\u6301 Mysql8.0 \u7684\u8fde\u63a5\u3002\u53ef\u662f\u6211\u91cd\u65b0\u7f16\u8bd1\u4e86 7.1.33 \u3002\u8fde\u63a5\u4e0d Mysql8.0 \u8fd8\u662f\u62a5 caching_sha2_password \u9519\u8bef\u3002<\/p>\n<p>\u96be\u9053 PDO \u662f\u4e0d\u652f\u6301 caching_sha2_password \u9a8c\u8bc1\uff1f\u53ea\u80fd\u7528\u5b98\u65b9\u7684 mysql_xdevapi<\/p>\n<p>PS\uff1a\u56e0\u4e3a\u6570\u636e\u5e93\u662f\u8fde\u63a5\u96c6\u56e2\u522b\u4eba\u90e8\u7f72\u7684 Mysql8 \u3002\u6ca1\u6743\u4fee\u6539\u5b83\u7684\u5bc6\u7801\u9a8c\u8bc1\u2026\u2026<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>8<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"4277364\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : oneonesv <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             https:\/\/www.php.net\/manual\/en\/ref.pdo-mysql.php <br \/>\u76ee\u524d\u4e0d\u652f\u6301\uff0c\u672a\u6765\u4f1a\u652f\u6301\uff0c\u6216\u8005\u4f7f\u7528 mysql_xdevapi \u6269\u5c55                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4277365\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : dzdh <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             PDO \u4e0d\u652f\u6301 caching_sha2_password<br \/>\u7ed9 PDO \u7528\u7684\u8fde\u63a5\u6570\u636e\u5e93\u7684\u9a8c\u8bc1\u63d2\u4ef6\u6539\u6210 native_plugin \u5c31\u884c\u4e86                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4277366\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : Felldeadbird <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @oneonesv <br \/>@dzdh <br \/>\u8c22\u8c22\u4e86\uff01 MYSQL8 \u7ba1\u7406\u90a3\u8fb9\u8bf4 \u4e0d\u80fd\u6539\u4e3a mysql_native_password \u3002\u3002\u73b0\u5728\u770b\u6765\u53ea\u6709\u4e00\u4e2a\u51fa\u8def\u4e86\uff0c\u4fee\u6539\u6e90\u7801\u7684\u6570\u636e\u5e93\u8fde\u63a5\u4e86\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4277367\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : dzdh <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @Felldeadbird \u54c8\uff1f\u65b0\u5efa\u4e2a\u7528\u6237\u4e5f\u4e0d\u884c\u4e48\u3002\u5565\u9700\u6c42\u5565\u539f\u56e0\u624d\u575a\u51b3\u4e0d\u80fd\u6539\uff08 or \u65b0\u589e)                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4277368\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : zachlhb <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u7528 MySQL8 \u90fd\u8981\u6539\u5bc6\u7801\u9a8c\u8bc1\u65b9\u5f0f\u7684                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4277369\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : Felldeadbird <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @dzdh \u4e0d\u884c\u3002\u56e0\u4e3a\u96c6\u56e2\u7684\u4eba\u4e0d\u61c2\u6280\u672f\u3002\u6211\u5c31\u8bf4\u4fee\u6539\u7528\u7684\u8d26\u53f7\u4e3a mysql_native_password \u3002\u4ed6\u4eec\u6015 \u4f1a\u7275\u8fde \u5176\u4ed6\u7cfb\u7edf\u51fa\u95ee\u9898\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4277370\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : ztxcccc <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4f60\u8ba9\u4ed6\u4eec\u5f00\u4e2a\u65b0\u8d26\u53f7\u4e0d\u5c31\u597d\u4e86                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4277371\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : ztxcccc <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             CREATE USER [email&#160;protected] identified with mysql_native_password by \u2018password\u2019                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>PHP7.x PDO \u5982\u4f55\u652f\u6301 M&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/200058"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=200058"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/200058\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=200058"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=200058"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=200058"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}