{"id":908,"date":"2020-05-18T13:57:43","date_gmt":"2020-05-18T07:57:43","guid":{"rendered":"https:\/\/goodhost.kz\/wiki\/?p=908"},"modified":"2020-06-01T10:08:28","modified_gmt":"2020-06-01T04:08:28","slug":"%d0%ba%d0%b0%d0%ba-%d0%b8%d0%b7%d0%bc%d0%b5%d0%bd%d0%b8%d1%82%d1%8c-%d0%b7%d0%b0%d0%b1%d1%8b%d1%82%d1%8b%d0%b9-%d0%bf%d0%b0%d1%80%d0%be%d0%bb%d1%8c-mysql-marinadb","status":"publish","type":"post","link":"https:\/\/goodhost.kz\/wiki\/?p=908","title":{"rendered":"\u041a\u0430\u043a \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u0437\u0430\u0431\u044b\u0442\u044b\u0439 \u043f\u0430\u0440\u043e\u043b\u044c MySQL\/MariaDB"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">\u0414\u043b\u044f \u0442\u043e\u0433\u043e \u0447\u0442\u043e\u0431\u044b \u0441\u043c\u0435\u043d\u0438\u0442\u044c \u043f\u0430\u0440\u043e\u043b\u044c MySQL\/MariaDB \u043d\u0430 CentOS7 \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u0435 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u041f\u0440\u043e\u0432\u0435\u0440\u044c\u0442\u0435 \u0432\u0435\u0440\u0441\u0438\u044e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u043e\u0439 MySQL<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>mysqladmin -V<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u0412 \u043d\u0430\u0448\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u044d\u0442\u043e:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>mysqladmin  Ver 9.0 Distrib 5.5.60-MariaDB, for Linux on x86_64<\/code><\/pre>\n\n\n\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow\">\n<p class=\"wp-block-paragraph\"><strong>\u041e\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c MySQL-\u0441\u0435\u0440\u0432\u0435\u0440: <\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>systemctl stop mariadb <\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u0438\u043b\u0438  <\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>systemctl stop mysqld<\/code><\/pre>\n<\/div><\/div>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0435\u0433\u043e \u0431\u0435\u0437 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0442\u0430\u0431\u043b\u0438\u0446 \u043f\u0440\u0430\u0432: <\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>mysqld_safe --skip-grant-tables &amp;<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u0417\u0430\u0445\u043e\u0434\u0438\u043c root\u2019\u043e\u043c \u0431\u0435\u0437 \u043f\u0430\u0440\u043e\u043b\u044f: <\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>mysql -uroot<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u041c\u0435\u043d\u044f\u0435\u043c \u043f\u0430\u0440\u043e\u043b\u044c: <\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>use mysql;<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u0414\u043b\u044f MySQL &lt; 5.7 <\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>UPDATE user SET Password=PASSWORD(\"new_password\") WHERE User='root';<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u0414\u043b\u044f MySQL =&gt; 5.7<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>UPDATE user SET authentication_string=PASSWORD(\"new_password\") WHERE User='root';<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u0414\u0430\u043b\u0435\u0435<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>FLUSH PRIVILEGES;<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0411\u0414:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ystemctl restart mariadb<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u0438\u043b\u0438<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>systemctl restart mysqld<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u0417\u0430\u0445\u043e\u0434\u0438\u043c \u0432 \u0431\u0430\u0437\u0443 \u0434\u0430\u043d\u043d\u044b\u0445 \u043f\u043e\u0434 \u043d\u043e\u0432\u044b\u043c \u043f\u0430\u0440\u043e\u043b\u0435\u043c:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>mysql -uroot -pnew_password<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u0415\u0441\u043b\u0438 \u0432\u044b \u043f\u0440\u043e\u0438\u0437\u0432\u0435\u043b\u0438 \u0434\u0430\u043d\u043d\u044b\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0438 \u0432\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0435 \u043f\u0430\u043d\u0435\u043b\u044c \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 <strong><a href=\"https:\/\/goodhost.kz\/ispmanager5lite\/\">ISPmanager5 <\/a><\/strong>\u0442\u043e \u0432\u0430\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u043d\u043e\u0432\u044b\u0439 \u043f\u0430\u0440\u043e\u043b\u044c \u0432 \u0440\u0430\u0437\u0434\u0435\u043b\u0435 <strong>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 &#8212; \u0421\u0435\u0440\u0432\u0435\u0440\u044b \u0431\u0430\u0437 \u0434\u0430\u043d\u043d\u044b\u0445 &#8212; \u0418\u0437\u043c\u0435\u043d\u0438\u0442\u044c<\/strong> \u0443\u043a\u0430\u0436\u0438\u0442\u0435 \u043d\u043e\u0432\u044b\u0439 \u043f\u0430\u0440\u043e\u043b\u044c \u0438 \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u0442\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u0422\u0435\u043a \u0436\u0435 \u0431\u044b\u0432\u0430\u044e\u0442 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u0438 \u043a\u043e\u0433\u0434\u0430 \u043f\u043e\u0441\u043b\u0435 \u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445 \u043c\u0430\u043d\u0438\u043f\u0443\u043b\u044f\u0446\u0438\u0439 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438 \u0441\u0442\u0430\u043b\u043a\u0438\u0432\u0430\u044e\u0442\u0441\u044f \u0441 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430\u043c\u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u0431\u0434 \u0447\u0430\u0441\u0442\u043e \u044d\u0442\u043e \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u043e \u0441 \u0442\u0435\u043c \u0447\u0442\u043e \u043e\u0441\u0442\u0430\u043b\u0438\u0441\u044c \u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u044b\u0435 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u044b MySQL \u0434\u043b\u044f \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u044d\u0442\u043e\u0439 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u0435 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u044b:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo killall mysqld<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u043b\u0438\u0431\u043e<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo killall mariadb<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u0435 \u0437\u0430\u043f\u0443\u0441\u043a \u0411\u0414 \u043f\u043e \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438 \u0432\u044b\u0448\u0435.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0414\u043b\u044f \u0442\u043e\u0433\u043e \u0447\u0442\u043e\u0431\u044b \u0441\u043c\u0435\u043d\u0438\u0442\u044c \u043f\u0430\u0440\u043e\u043b\u044c MySQL\/MariaDB \u043d\u0430 CentOS7 \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u0435 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f: \u041f\u0440\u043e\u0432\u0435\u0440\u044c\u0442\u0435 \u0432\u0435\u0440\u0441\u0438\u044e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u043e\u0439 MySQL \u0412 \u043d\u0430\u0448\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u044d\u0442\u043e: \u041e\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c MySQL-\u0441\u0435\u0440\u0432\u0435\u0440: \u0438\u043b\u0438 \u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0435\u0433\u043e \u0431\u0435\u0437 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0442\u0430\u0431\u043b\u0438\u0446 \u043f\u0440\u0430\u0432: \u0417\u0430\u0445\u043e\u0434\u0438\u043c root\u2019\u043e\u043c \u0431\u0435\u0437 \u043f\u0430\u0440\u043e\u043b\u044f: \u041c\u0435\u043d\u044f\u0435\u043c \u043f\u0430\u0440\u043e\u043b\u044c: \u0414\u043b\u044f MySQL &lt; 5.7 \u0414\u043b\u044f MySQL =&gt; 5.7 \u0414\u0430\u043b\u0435\u0435 \u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0411\u0414: \u0438\u043b\u0438 \u0417\u0430\u0445\u043e\u0434\u0438\u043c \u0432 \u0431\u0430\u0437\u0443 \u0434\u0430\u043d\u043d\u044b\u0445 \u043f\u043e\u0434 \u043d\u043e\u0432\u044b\u043c \u043f\u0430\u0440\u043e\u043b\u0435\u043c: \u0415\u0441\u043b\u0438 \u0432\u044b ..<\/p>\n<div class=\"clear-fix\"><\/div>\n<p><a href=\"https:\/\/goodhost.kz\/wiki\/?p=908\" title=\"\u0447\u0438\u0442\u0430\u0442\u044c...\">\u0427\u0438\u0442\u0430\u0442\u044c \u0434\u0430\u043b\u0435\u0435<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-908","post","type-post","status-publish","format-standard","hentry","category-1"],"_links":{"self":[{"href":"https:\/\/goodhost.kz\/wiki\/index.php?rest_route=\/wp\/v2\/posts\/908","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/goodhost.kz\/wiki\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/goodhost.kz\/wiki\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/goodhost.kz\/wiki\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/goodhost.kz\/wiki\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=908"}],"version-history":[{"count":3,"href":"https:\/\/goodhost.kz\/wiki\/index.php?rest_route=\/wp\/v2\/posts\/908\/revisions"}],"predecessor-version":[{"id":955,"href":"https:\/\/goodhost.kz\/wiki\/index.php?rest_route=\/wp\/v2\/posts\/908\/revisions\/955"}],"wp:attachment":[{"href":"https:\/\/goodhost.kz\/wiki\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=908"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/goodhost.kz\/wiki\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=908"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/goodhost.kz\/wiki\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=908"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}