{"id":56453,"date":"2023-07-04T02:24:19","date_gmt":"2023-07-03T18:24:19","guid":{"rendered":"http:\/\/lrxjmw.cn\/?p=56453"},"modified":"2023-07-04T02:24:19","modified_gmt":"2023-07-03T18:24:19","slug":"centos7-mariadb10-easy","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/centos7-mariadb10-easy.html","title":{"rendered":"\u4e09\u6b65\u641e\u5b9aCentOS7\u4e0b\u7684MariaDB 10"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\nMariaDB \u662f MySQL \u6570\u636e\u5e93\u7684\u81ea\u7531\u5f00\u6e90\u5206\u652f\uff0c\u4e0e MySQL \u5728\u8bbe\u8ba1\u601d\u60f3\u4e0a\u540c\u51fa\u4e00\u6e90\uff0c\u5728\u672a\u6765\u4ecd\u5c06\u662f\u81ea\u7531\u4e14\u5f00\u6e90\u7684\u3002\u5728\u8fd9\u7bc7\u535a\u6587\u4e2d\uff0c\u6211\u5c06\u4f1a\u4ecb\u7ecd\u5982\u4f55\u5728\u5f53\u524d\u4f7f\u7528\u6700\u5e7f\u7684 RHEL\/CentOS \u548c Fedora \u53d1\u884c\u7248\u4e0a\u5b89\u88c5 MariaDB 10.1 \u7a33\u5b9a\u7248\u3002\u76ee\u524d\u4e86\u89e3\u5230\u7684\u60c5\u51b5\u662f\uff1aRed Hat Enterprise Linux\/CentOS 7.0 \u53d1\u884c\u7248\u5df2\u5c06\u9ed8\u8ba4\u7684\u6570\u636e\u5e93\u4ece MySQL \u5207\u6362\u5230 MariaDB\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

\"\"<\/p>\n

\u7b2c\u4e00\u6b65\uff1a\u6dfb\u52a0 MariaDB yum \u4ed3\u5e93<\/strong><\/div>\n

1\u3001\u9996\u5148\u5728 RHEL\/CentOS \u548c Fedora \u64cd\u4f5c\u7cfb\u7edf\u4e2d\u6dfb\u52a0 MariaDB \u7684 YUM \u914d\u7f6e\u6587\u4ef6 MariaDB.repo \u6587\u4ef6\u3002<\/p>\n

#\u00a0vi\u00a0\/etc\/yum.repos.d\/MariaDB.repo<\/pre>\n

\u6839\u636e\u60a8\u64cd\u4f5c\u7cfb\u7edf\u7248\u672c\uff0c\u9009\u62e9\u4e0b\u9762\u7684\u76f8\u5e94\u5185\u5bb9\u6dfb\u52a0\u5230\u6587\u4ef6\u7684\u672b\u5c3e\u3002<\/p>\n

\u5728 CentOS 7 \u4e2d\u5b89\u88c5<\/strong><\/span><\/div>\n
 \t[mariadb]\r\n \tname\u00a0=\u00a0MariaDB\r\n \tbaseurl\u00a0=\u00a0http:\/\/yum.mariadb.org\/10.1\/centos7-amd64\r\n \tgpgkey=https:\/\/yum.mariadb.org\/RPM-GPG-KEY-MariaDB\r\n \tgpgcheck=1\r\n<\/pre>\n
\u5728 RHEL 7 \u4e2d\u5b89\u88c5<\/strong><\/span><\/div>\n
 \t[mariadb]\r\n \tname\u00a0=\u00a0MariaDB\r\n \tbaseurl\u00a0=\u00a0http:\/\/yum.mariadb.org\/10.1\/rhel7-amd64\r\n \tgpgkey=https:\/\/yum.mariadb.org\/RPM-GPG-KEY-MariaDB\r\n \tgpgcheck=1\r\n<\/pre>\n

\"\u5982\u4f55\u5728CentOS<\/p>\n

\u6dfb\u52a0 MariaDB YUM \u4ed3\u5e93<\/p>\n

\u7b2c\u4e8c\u6b65\uff1a\u5728 CentOS 7 \u4e2d\u5b89\u88c5 MariaDB<\/strong><\/div>\n

2\u3001\u5f53 MariaDB \u4ed3\u5e93\u5730\u5740\u6dfb\u52a0\u597d\u540e\uff0c\u4f60\u53ef\u4ee5\u901a\u8fc7\u4e0b\u9762\u7684\u4e00\u884c\u547d\u4ee4\u8f7b\u677e\u5b89\u88c5 MariaDB\u3002<\/p>\n

 \t#\u00a0yum\u00a0install\u00a0MariaDB-server\u00a0MariaDB-client\u00a0-y\r\n<\/pre>\n

\"\u5982\u4f55\u5728CentOS<\/p>\n

\u5728 CentOS 7 \u4e2d\u5b89\u88c5 MariaDB<\/p>\n

3\u3001 MariaDB \u5305\u5b89\u88c5\u5b8c\u6bd5\u540e\uff0c\u7acb\u5373\u542f\u52a8\u6570\u636e\u5e93\u670d\u52a1\u5b88\u62a4\u8fdb\u7a0b\uff0c\u5e76\u53ef\u4ee5\u901a\u8fc7\u4e0b\u9762\u7684\u64cd\u4f5c\u8bbe\u7f6e\uff0c\u5728\u64cd\u4f5c\u7cfb\u7edf\u91cd\u542f\u540e\u81ea\u52a8\u542f\u52a8\u670d\u52a1\u3002<\/p>\n

 \t#\u00a0systemctl\u00a0start\u00a0mariadb\r\n \t#\u00a0systemctl\u00a0enable\u00a0mariadb\r\n \t#\u00a0systemctl\u00a0status\u00a0mariadb\r\n<\/pre>\n

\"\u5982\u4f55\u5728CentOS<\/p>\n

\u5728 CentOS 7 \u4e2d\u542f\u52a8 MariaDB \u670d\u52a1<\/p>\n

\u7b2c\u4e09\u6b65\uff1a\u5728 CentOS 7 \u4e2d\u5bf9 MariaDB \u8fdb\u884c\u5b89\u5168\u914d\u7f6e<\/strong><\/div>\n

4\u3001 \u73b0\u5728\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u64cd\u4f5c\u8fdb\u884c\u5b89\u5168\u914d\u7f6e\uff1a\u8bbe\u7f6e MariaDB \u7684 root \u8d26\u6237\u5bc6\u7801\uff0c\u7981\u7528 root \u8fdc\u7a0b\u767b\u5f55\uff0c\u5220\u9664\u6d4b\u8bd5\u6570\u636e\u5e93\u4ee5\u53ca\u6d4b\u8bd5\u5e10\u53f7\uff0c\u6700\u540e\u9700\u8981\u4f7f\u7528\u4e0b\u9762\u7684\u547d\u4ee4\u91cd\u65b0\u52a0\u8f7d\u6743\u9650\u3002<\/p>\n

 \t#\u00a0mysql_secure_installation\r\n<\/pre>\n

\"\u5982\u4f55\u5728CentOS<\/p>\n

CentOS 7 \u4e2d\u7684 MySQL \u5b89\u5168\u914d\u7f6e<\/p>\n

5\u3001 \u5728\u914d\u7f6e\u5b8c\u6570\u636e\u5e93\u7684\u5b89\u5168\u914d\u7f6e\u540e\uff0c\u4f60\u53ef\u80fd\u60f3\u68c0\u67e5\u4e0b MariaDB \u7684\u7279\u6027\uff0c\u6bd4\u5982\uff1a\u7248\u672c\u53f7\u3001\u9ed8\u8ba4\u53c2\u6570\u5217\u8868\u3001\u4ee5\u53ca\u901a\u8fc7 MariaDB \u547d\u4ee4\u884c\u767b\u5f55\u3002\u5982\u4e0b\u6240\u793a\uff1a<\/p>\n

 \t#\u00a0mysql\u00a0-V\r\n \t#\u00a0mysqld\u00a0--print-defaults\r\n \t#\u00a0mysql\u00a0-u\u00a0root\u00a0-p\r\n<\/pre>\n

\"\u5982\u4f55\u5728CentOS<\/p>\n

\u68c0\u67e5 MySQL \u7248\u672c\u4fe1\u606f<\/p>\n


\n

via: http:\/\/www.tecmint.com\/install-mariadb-in-centos-7\/<\/a><\/p>\n

\u4f5c\u8005\uff1aAaron Kili<\/a> \u8bd1\u8005\uff1abeyondworld<\/a> \u6821\u5bf9\uff1ajasminepeng<\/a><\/p>\n

\u672c\u6587\u7531 LCTT<\/a> \u539f\u521b\u7f16\u8bd1\uff0cLinux\u4e2d\u56fd<\/a> \u8363\u8a89\u63a8\u51fa<\/p>\n

\n

\u539f\u6587\u6765\u81ea\uff1ahttps:\/\/linux.cn\/article-8320-1.html<\/a><\/p>\n

\u672c\u6587\u5730\u5740\uff1a http:\/\/lrxjmw.cn\/centos7-mariadb10-easy.html<\/a>\u7f16\u8f91\u5458\uff1a\u674e\u5e05\uff0c\u5ba1\u6838\u5458\uff1a\u5cb3\u6c38<\/span><\/p>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"

MariaDB \u662f MySQL \u6570\u636e\u5e93\u7684\u81ea\u7531\u5f00\u6e90\u5206\u652f\uff0c\u4e0e MySQL \u5728\u8bbe\u8ba1\u601d\u60f3\u4e0a\u540c\u51fa\u4e00\u6e90\uff0c\u5728\u672a\u6765\u4ecd\u5c06\u662f\u81ea\u7531\u4e14\u5f00\u6e90\u7684\u3002<\/p>\n","protected":false},"author":63,"featured_media":57028,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-56453","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\/56453","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=56453"}],"version-history":[{"count":11,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/56453\/revisions"}],"predecessor-version":[{"id":276663,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/56453\/revisions\/276663"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/57028"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=56453"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=56453"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=56453"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}