{"id":6334,"date":"2024-11-14T13:52:44","date_gmt":"2024-11-14T05:52:44","guid":{"rendered":"https:\/\/fwq.ai\/blog\/6334\/"},"modified":"2024-11-14T13:52:44","modified_gmt":"2024-11-14T05:52:44","slug":"mysql%e5%90%af%e5%8a%a8%e6%8a%a5mariadb%e9%94%99%e8%af%af","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/6334\/","title":{"rendered":"mysql\u542f\u52a8\u62a5mariadb\u9519\u8bef"},"content":{"rendered":"<blockquote><p>\n  \u5f53 mysql \u542f\u52a8\u65f6\u51fa\u73b0 mariadb \u9519\u8bef\uff0c\u539f\u56e0\u901a\u5e38\u662f\u7cfb\u7edf\u4e2d\u540c\u65f6\u5b89\u88c5\u4e86 mysql \u548c mariadb \u4e14\u7aef\u53e3\u76f8\u540c\u3002\u89e3\u51b3\u65b9\u6cd5\u5305\u62ec\uff1a1. \u4ec5\u5b89\u88c5 mysql\uff1b2. \u4fee\u6539 mysql \u7aef\u53e3\uff1b3. \u7981\u7528 mariadb\uff1b4. \u5378\u8f7d mariadb\u3002\n<\/p><\/blockquote>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/202407\/31\/2024073122522845082.jpg\" class=\"aligncenter\" title=\"mysql\u542f\u52a8\u62a5mariadb\u9519\u8bef\u63d2\u56fe\" alt=\"mysql\u542f\u52a8\u62a5mariadb\u9519\u8bef\u63d2\u56fe\" \/><\/p>\n<p><strong>MySQL \u542f\u52a8\u62a5\u9519\uff1aMariadb \u9519\u8bef<\/strong><\/p>\n<p>\u5f53 MySQL \u542f\u52a8\u65f6\u51fa\u73b0 Mariadb \u9519\u8bef\uff0c\u901a\u5e38\u662f\u56e0\u4e3a MySQL \u5b89\u88c5\u5728\u7cfb\u7edf\u4e2d\uff0c\u800c MariaDB \u4e5f\u662f\u4e00\u4e2a\u57fa\u4e8e MySQL \u7684\u5f00\u6e90\u6570\u636e\u5e93\u7cfb\u7edf\u3002\u5982\u679c MariaDB \u5df2\u5b89\u88c5\u5728\u7cfb\u7edf\u4e2d\uff0c\u5219\u53ef\u80fd\u4f1a\u5bfc\u81f4\u6b64\u9519\u8bef\u3002<\/p>\n<p><strong>\u539f\u56e0\uff1a<\/strong><\/p>\n<ul>\n<li>MySQL \u5b89\u88c5\u65f6\u9009\u62e9\u5b89\u88c5 MariaDB \u8f6f\u4ef6\u5305\u3002<\/li>\n<li>\u5728\u7cfb\u7edf\u4e2d\u540c\u65f6\u5b89\u88c5\u4e86 MySQL \u548c MariaDB\uff0c\u5e76\u4e14\u4f7f\u7528\u4e86\u76f8\u540c\u7684\u7aef\u53e3\u3002<\/li>\n<\/ul>\n<p><strong>\u89e3\u51b3\u65b9\u6848\uff1a<\/strong><\/p>\n<p><strong>1. \u91cd\u65b0\u5b89\u88c5 MySQL<\/strong><\/p>\n<ul>\n<li>\u5378\u8f7d\u7cfb\u7edf\u4e2d\u73b0\u6709\u7684 MySQL \u548c MariaDB \u8f6f\u4ef6\u5305\u3002<\/li>\n<li>\u4ece MySQL \u5b98\u65b9\u7f51\u7ad9\u4e0b\u8f7d\u6700\u65b0\u7684 MySQL \u8f6f\u4ef6\u5305\u5e76\u5c06\u5176\u5b89\u88c5\u5728\u7cfb\u7edf\u4e2d\u3002<\/li>\n<\/ul>\n<p><strong>2. \u4fee\u6539 MySQL \u7aef\u53e3<\/strong><\/p>\n<ul>\n<li>\u7f16\u8f91 MySQL \u914d\u7f6e\u6587\u4ef6 \/etc\/\/my.cnf\u3002<\/li>\n<li>\u627e\u5230 port \u9009\u9879\uff0c\u5c06\u5176\u503c\u4ece\u9ed8\u8ba4\u7684 3306 \u66f4\u6539\u4e3a\u53e6\u4e00\u4e2a\u7aef\u53e3\uff0c\u4f8b\u5982 3307\u3002<\/li>\n<li>\u91cd\u542f MySQL \u670d\u52a1\u3002<\/li>\n<\/ul>\n<p><strong>3. \u7981\u7528 MariaDB<\/strong><\/p>\n<ul>\n<li>\n<p>\u5982\u679c\u60a8\u4e0d\u6253\u7b97\u4f7f\u7528 MariaDB\uff0c\u5219\u53ef\u4ee5\u7981\u7528\u5b83\uff1a<\/p>\n<ul>\n<li>\u5bf9\u4e8e Ubuntu\/Debian\uff1asudo systemctl disable mariadb<\/li>\n<li>\u5bf9\u4e8e CentOS\/RHEL\uff1asudo systemctl disable mariadb.service<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p><strong>4. \u5378\u8f7d MariaDB<\/strong><\/p>\n<ul>\n<li>\n<p>\u5982\u679c\u60a8\u4e0d\u6253\u7b97\u4f7f\u7528 MariaDB\uff0c\u5219\u53ef\u4ee5\u5c06\u5176\u5378\u8f7d\uff1a<\/p>\n<ul>\n<li>\u5bf9\u4e8e Ubuntu\/Debian\uff1asudo apt-get purge mariadb-*<\/li>\n<li>\u5bf9\u4e8e CentOS\/RHEL\uff1asudo yum remove mariadb-*<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>\u5b8c\u6210\u4e0a\u8ff0\u6b65\u9aa4\u540e\uff0cMySQL \u5e94\u8be5\u80fd\u591f\u6b63\u5e38\u542f\u52a8\uff0c\u800c\u4e0d\u4f1a\u51fa\u73b0 MariaDB \u9519\u8bef\u3002<\/p>\n<p>\u4ee5\u4e0a\u5c31\u662f\u542f\u52a8\u62a5mariadb\u9519\u8bef\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>\u5f53 mysql \u542f\u52a8\u65f6\u51fa\u73b0 mariadb \u9519\u8bef\uff0c\u539f\u56e0\u901a\u5e38\u662f\u7cfb\u7edf\u4e2d\u540c\u65f6\u5b89\u88c5\u4e86 mysql \u548c mariadb \u4e14\u7aef\u53e3\u76f8\u540c\u3002\u89e3\u51b3\u65b9\u6cd5\u5305\u62ec\uff1a1. \u4ec5\u5b89\u88c5 mysql\uff1b2. \u4fee\u6539 mysql \u7aef\u53e3\uff1b3. \u7981\u7528 mariadb\uff1b4. \u5378\u8f7d mariadb\u3002 MySQL \u542f\u52a8\u62a5\u9519\uff1aMariadb \u9519\u8bef \u5f53 MySQL \u542f\u52a8\u65f6\u51fa\u73b0 Mariadb \u9519\u8bef\uff0c\u901a\u5e38\u662f\u56e0\u4e3a MySQL \u5b89\u88c5\u5728\u7cfb\u7edf\u4e2d\uff0c\u800c MariaDB \u4e5f\u662f\u4e00\u4e2a\u57fa\u4e8e MySQL \u7684\u5f00\u6e90\u6570\u636e\u5e93\u7cfb\u7edf\u3002\u5982\u679c MariaDB \u5df2\u5b89\u88c5\u5728\u7cfb\u7edf\u4e2d\uff0c\u5219\u53ef\u80fd\u4f1a\u5bfc\u81f4\u6b64\u9519\u8bef\u3002 \u539f\u56e0\uff1a MySQL \u5b89\u88c5\u65f6\u9009\u62e9\u5b89\u88c5 MariaDB \u8f6f\u4ef6\u5305\u3002 \u5728\u7cfb\u7edf\u4e2d\u540c\u65f6\u5b89\u88c5\u4e86 MySQL \u548c MariaDB\uff0c\u5e76\u4e14\u4f7f\u7528\u4e86\u76f8\u540c\u7684\u7aef\u53e3\u3002 \u89e3\u51b3\u65b9\u6848\uff1a 1. \u91cd\u65b0\u5b89\u88c5 MySQL \u5378\u8f7d\u7cfb\u7edf\u4e2d\u73b0\u6709\u7684 MySQL \u548c MariaDB \u8f6f\u4ef6\u5305\u3002 \u4ece MySQL \u5b98\u65b9\u7f51\u7ad9\u4e0b\u8f7d\u6700\u65b0\u7684 [&hellip;]<\/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-6334","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/6334","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=6334"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/6334\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=6334"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=6334"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=6334"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}