{"id":174,"date":"2020-02-28T12:22:47","date_gmt":"2020-02-28T04:22:47","guid":{"rendered":"http:\/\/114.116.225.207\/?p=174"},"modified":"2020-06-03T19:13:44","modified_gmt":"2020-06-03T11:13:44","slug":"mysqlrpm","status":"publish","type":"post","link":"https:\/\/blog.ywdevops.cn\/index.php\/2020\/02\/28\/mysqlrpm\/","title":{"rendered":"\u901a\u8fc7rpm\u5305\u5b89\u88c5Mysql"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">\u672c\u4f8b\u5b50\u4e2d\u7cfb\u7edf\u91c7\u7528centos7.5\u64cd\u4f5c\u7cfb\u7edf\uff0c\u5b89\u88c5Mysql5.7.23<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u9996\u5148\u5728MySQL\u5b98\u7f51\u4e0b\u8f7d\u5b89\u88c5\u5fc5\u5907\u7684\u4e94\u4e2arpm\u5305(\u6587\u672b\u767e\u5ea6\u7f51\u76d8\u63d0\u4f9b\u4e0b\u8f7d)\uff0c\u5982\u4e0b\uff1a<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>mysql-community-client-5.7.23-1.el7.x86_64.rpm<\/li><li>mysql-community-common-5.7.23-1.el7.x86_64.rpm<\/li><li>mysql-community-libs-5.7.23-1.el7.x86_64.rpm<\/li><li>mysql-community-libs-compat-5.7.23-1.el7.x86_64.rpm<\/li><li>mysql-community-server-5.7.23-1.el7.x86_64.rpm<\/li><\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">\u4e0b\u8f7d\u5b8c\u540e\u4e0a\u4f20\u5230\u670d\u52a1\u5668\u4e0a\uff0c\u6267\u884c\u5982\u4e0b\u547d\u4ee4\u5b89\u88c5\uff1a<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>rpm -ivh   +\u5305\u540d<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"> \u5b89\u88c5\u987a\u5e8f\u4e3a\uff0c1.common\u00a0\u00a0 2. libs\u00a0 3. client 4.compat\u00a0 5. server<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5982\u679c\u5b89\u88c5\u8fc7\u7a0b\u4e2d\u62a5\u9519\u5982\u4e0b\u56fe\u6240\u793a\uff0c\u8bf4\u660e\u7f3a\u5c11\u4f9d\u8d56\u5305\uff0c\u7f3a\u5c11\u4ec0\u4e48\u5305\u76f4\u63a5\u6267\u884cyum -y install\u00a0 numactl*\u00a0 (\u5b89\u88c5numactl\u5305\u65e2\u53ef\u4ee5\u89e3\u51b3libaio.so.1\u95ee\u9898)<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"550\" height=\"117\" src=\"http:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2020\/03\/16-8.png\" alt=\"\" class=\"wp-image-923\" srcset=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2020\/03\/16-8.png 550w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2020\/03\/16-8-300x64.png 300w\" sizes=\"auto, (max-width: 550px) 100vw, 550px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u4f9d\u8d56\u5305\u5b89\u88c5\u5b8c\u6210\u540e\u518d\u91cd\u65b0\u6267\u884c\u5b89\u88c5MySQL\u670d\u52a1(\u5982\u679c\u5728\u6267\u884c\u7b2c\u56db\u6b65\u65f6\u63d0\u793a\u7f3a\u5c11\u4f9d\u8d56\u5305\uff0c\u90a3\u4e48\u5b89\u88c5\u5b8c\u4f9d\u8d56\u5305\u540e\u91cd\u65b0\u6267\u884c\u7b2c\u56db\u6b65\u5373\u53ef\uff0c\u65e0\u9700\u91cd\u65b0\u4ece\u7b2c\u4e00\u6b65\u5f00\u59cb\u6267\u884c)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5168\u90e8\u5b89\u88c5\u5b8c\u6210\u540e\u6267\u884c  <strong>systemctl\u00a0 start mysqld<\/strong>  \u542f\u52a8MySQL\u670d\u52a1<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u7531\u4e8e\u767b\u9646\u5bc6\u7801\u672a\u77e5\u6240\u4ee5\u5148\u8df3\u8fc7\u5bc6\u7801\u8ba4\u8bc1\u6743\u9650\uff1a<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5728<strong>my.cnf<\/strong>\u4e2d\u6dfb\u52a0<strong>skip-grant-tables<\/strong>\u7136\u540e\u91cd\u65b0\u542f\u52a8mysql\uff0c\u8f93\u5165mysql\u767b\u5f55\u540e\u901a\u8fc7\u5982\u4e0b\u547d\u4ee4\u4fee\u6539\u5bc6\u7801\uff1a<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>update\u00a0 user set authentication_string=password(\u201c\u65b0\u5bc6\u7801\u201d)where user=\u201droot\u201d;<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u7136\u540e\u53d6\u6d88my.cnf\u4e2d\u7684\u8df3\u8fc7\u5bc6\u7801\u6743\u9650\uff0c\u91cd\u542fMySQL \u8f93\u5165\u5bc6\u7801\u767b\u9646\u540e\u521b\u5efa\u6570\u636e\u5e93\u65f6\u5982\u679c\u63d0\u793a\u9700\u8981\u4f7f\u7528alter \u518d\u6b21\u4fee\u6539\u5bc6\u7801\u53ef\u4ee5\u6267\u884c<strong>alter user root@\u2019localhost\u2019 identified by \u201c\u65b0\u5bc6\u7801\u201d\uff1b<\/strong>\u5373\u53ef<\/p>\n\n\n\n<p class=\"has-background has-pale-cyan-blue-background-color wp-block-paragraph\">windows\u548cmac\u7cfb\u7edfmysql\u9ed8\u8ba4\u4e0d\u533a\u5206\u5927\u5c0f\u5199\uff0clinux\u7cfb\u7edf\u5219\u533a\u5206\u5927\u5c0f\u5199(\u67e5\u8868\u67e5\u5e93\u7b49),\u5728linux\u7cfb\u7edf\u7684mysql\u914d\u7f6e\u6587\u4ef6my.cnf\u7684[mysqld]\u6a21\u5757\u4e2d\u6dfb\u52a0\u5982\u4e0b\u5185\u5bb9\uff0c\u5373\u53ef\u53d6\u6d88\u533a\u5206\u5927\u5c0f\u5199\uff0c \u7136\u540e\u91cd\u542fmysql\u5373\u53ef <\/p>\n\n\n\n<p class=\"has-background has-pale-cyan-blue-background-color wp-block-paragraph\">lower_case_names=1&nbsp; \u5176\u4e2d1\u8868\u793a\u4e0d\u533a\u5206\uff0c0\u8868\u793a\u533a\u5206<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u81f3\u6b64\uff0c\u901a\u8fc7rpm\u65b9\u5f0f\u5b89\u88c5mysql\u5b8c\u6210\uff01\uff01\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u672c\u4f8b\u5b50\u4e2d\u7cfb\u7edf\u91c7\u7528centos7.5\u64cd\u4f5c\u7cfb\u7edf\uff0c\u5b89\u88c5Mysql5.7.23 \u9996\u5148\u5728MySQL\u5b98\u7f51\u4e0b\u8f7d\u5b89\u88c5\u5fc5\u5907\u7684\u4e94\u4e2a [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":922,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[35,25],"tags":[81],"class_list":["post-174","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-mysql","category-database","tag-rpm"],"blocksy_meta":{"styles_descriptor":{"styles":{"desktop":"","tablet":"","mobile":""},"google_fonts":[],"version":8}},"_links":{"self":[{"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/posts\/174","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/comments?post=174"}],"version-history":[{"count":6,"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/posts\/174\/revisions"}],"predecessor-version":[{"id":927,"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/posts\/174\/revisions\/927"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/media\/922"}],"wp:attachment":[{"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/media?parent=174"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/categories?post=174"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/tags?post=174"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}