{"id":7021,"date":"2026-09-15T11:00:42","date_gmt":"2026-09-15T07:30:42","guid":{"rendered":"https:\/\/parmin.cloud\/blog\/?p=7021"},"modified":"2026-09-15T11:00:42","modified_gmt":"2026-09-15T07:30:42","slug":"%d9%86%d8%ad%d9%88%d9%87-%d8%b1%db%8c%d8%b3%d8%aa-%da%a9%d8%b1%d8%af%d9%86-%d8%b1%d9%85%d8%b2-%d8%b9%d8%a8%d9%88%d8%b1-root-%d8%af%d8%b1-mysql-%db%8c%d8%a7-mariadb","status":"publish","type":"post","link":"https:\/\/parmin.cloud\/blog\/%d9%86%d8%ad%d9%88%d9%87-%d8%b1%db%8c%d8%b3%d8%aa-%da%a9%d8%b1%d8%af%d9%86-%d8%b1%d9%85%d8%b2-%d8%b9%d8%a8%d9%88%d8%b1-root-%d8%af%d8%b1-mysql-%db%8c%d8%a7-mariadb\/","title":{"rendered":"\u0646\u062d\u0648\u0647 \u0631\u06cc\u0633\u062a \u06a9\u0631\u062f\u0646 \u0631\u0645\u0632 \u0639\u0628\u0648\u0631 Root \u062f\u0631 MySQL \u06cc\u0627 MariaDB"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">\u0645\u0642\u062f\u0645\u0647<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u06cc\u062f \u0631\u0645\u0632 \u0639\u0628\u0648\u0631 root \u0645\u0631\u0628\u0648\u0637 \u0628\u0647 MySQL \u06cc\u0627 MariaDB \u0631\u0627 \u0628\u062f\u0648\u0646 \u0631\u0645\u0632 \u0642\u062f\u06cc\u0645\u06cc \u0631\u06cc\u0633\u062a \u06a9\u0646\u06cc\u062f\u061b \u062a\u0627 \u0648\u0642\u062a\u06cc \u06a9\u0647 \u0628\u0647 \u0633\u0631\u0648\u0631 \u0648 \u06a9\u0627\u0631\u0628\u0631 \u062f\u0627\u0631\u0627\u06cc sudo \u062f\u0633\u062a\u0631\u0633\u06cc \u062f\u0627\u0631\u06cc\u062f. \u0627\u06cc\u0646 \u0622\u0645\u0648\u0632\u0634 \u0646\u0634\u0627\u0646 \u0645\u06cc\u200c\u062f\u0647\u062f \u0686\u0637\u0648\u0631 \u0628\u0627 \u062f\u0648 \u0631\u0648\u0634 root \u0631\u0627 \u0628\u0627\u0632\u06cc\u0627\u0628\u06cc \u06a9\u0646\u06cc\u062f: \u0634\u0631\u0648\u0639 \u0633\u0631\u0648\u0631 \u0628\u0627 <code>--skip-grant-tables<\/code> (\u0648 \u0627\u062e\u062a\u06cc\u0627\u0631\u06cc <code>--skip-networking<\/code>)\u061b \u06cc\u0627 \u0631\u0648\u06cc\u06a9\u0631\u062f \u0627\u0645\u0646\u200c\u062a\u0631 \u06cc\u0639\u0646\u06cc <code>--init-file<\/code>. \u0628\u0631\u0627\u06cc MySQL 5.7+\u060c MySQL 8.0+\u060c MariaDB 10.1+ \u0648 MariaDB 10.4+ \u0627\u0639\u0645\u0627\u0644 \u0645\u06cc\u200c\u0634\u0648\u062f\u061b \u0648 \u0631\u0648\u06cc \u0627\u0648\u0628\u0648\u0646\u062a\u0648 20.04\u060c 22.04 \u0648 24.04\u060c \u062f\u0628\u06cc\u0627\u0646 \u06f1\u06f1 \u0648 \u06f1\u06f2\u060c \u0648 RHEL\/AlmaLinux\/Rocky \u06f8 \u0648 \u06f9 \u0627\u0639\u062a\u0628\u0627\u0631\u0633\u0646\u062c\u06cc \u0634\u062f\u0647 \u0627\u0633\u062a. SQL \u062f\u0642\u06cc\u0642 \u0648 \u0646\u0627\u0645\u200c\u0647\u0627\u06cc \u0633\u0631\u0648\u06cc\u0633 \u0628\u0647 \u062f\u06cc\u062a\u0627\u0628\u06cc\u0633 \u0648 \u0646\u0633\u062e\u0647\u200c\u062a\u0627\u0646 \u0628\u0633\u062a\u06af\u06cc \u062f\u0627\u0631\u0646\u062f\u061b \u067e\u0633 \u0627\u0648\u0644\u06cc\u0646 \u06af\u0627\u0645\u060c \u0634\u0646\u0627\u0633\u0627\u06cc\u06cc \u0627\u06cc\u0646\u06a9\u0647 \u06a9\u062f\u0627\u0645 \u0631\u0627 \u0627\u062c\u0631\u0627 \u0645\u06cc\u200c\u06a9\u0646\u06cc\u062f \u0627\u0633\u062a.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u0646\u06a9\u0627\u062a \u06a9\u0644\u06cc\u062f\u06cc<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u062f\u0648 \u0631\u0648\u0634 \u0627\u0635\u0644\u06cc \u0631\u06cc\u0633\u062a \u0631\u0645\u0632 root:<\/strong> \u0633\u0631\u0648\u0631 \u0631\u0627 \u0628\u0627 <code>--skip-grant-tables<\/code> (\u0648 <code>--skip-networking<\/code>) \u0634\u0631\u0648\u0639 \u06a9\u0646\u06cc\u062f \u062a\u0627 \u0628\u062f\u0648\u0646 \u0631\u0645\u0632 \u0628\u0647\u200c\u0639\u0646\u0648\u0627\u0646 root \u0648\u0635\u0644 \u0634\u0648\u06cc\u062f\u061b \u0633\u067e\u0633 \u0627\u0632 \u0637\u0631\u06cc\u0642 SQL \u0631\u0645\u0632 \u062c\u062f\u06cc\u062f\u06cc \u062a\u0646\u0638\u06cc\u0645 \u06a9\u0646\u06cc\u062f. \u0627\u0632 \u0627\u06cc\u0646 \u0631\u0648\u0634 \u0628\u0631\u0627\u06cc \u0628\u0627\u0632\u06cc\u0627\u0628\u06cc \u0633\u0631\u06cc\u0639 \u0631\u0648\u06cc \u0633\u06cc\u0633\u062a\u0645\u200c\u0647\u0627\u06cc \u063a\u06cc\u0631-\u067e\u0631\u0648\u062f\u0627\u06a9\u0634\u0646 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u062f.<\/li>\n\n\n\n<li><strong>\u0628\u0631\u0627\u06cc \u067e\u0631\u0648\u062f\u0627\u06a9\u0634\u0646\u060c \u0628\u0647\u200c\u062c\u0627\u06cc\u0634 \u0627\u0632 \u0631\u0648\u0634 &#8211;init-file \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u062f.<\/strong> SQL\u0650 \u062a\u063a\u06cc\u06cc\u0631 \u0631\u0645\u0632 \u0631\u0627 \u062f\u0631 \u0641\u0627\u06cc\u0644 \u0645\u0648\u0642\u062a\u06cc \u0628\u0646\u0648\u06cc\u0633\u06cc\u062f\u060c \u0633\u0631\u0648\u0631 \u0631\u0627 \u0628\u0627 <code>--init-file=\/tmp\/mysql-init-pwd.sql<\/code> \u0634\u0631\u0648\u0639 \u06a9\u0646\u06cc\u062f\u061b \u0633\u067e\u0633 \u0641\u0627\u06cc\u0644 \u0631\u0627 \u062d\u0630\u0641 \u06a9\u0646\u06cc\u062f. \u0633\u0631\u0648\u0631 \u0628\u0627 \u062c\u062f\u0648\u0644\u200c\u0647\u0627\u06cc Grant \u0628\u0627\u0631\u06af\u0630\u0627\u0631\u06cc\u200c\u0634\u062f\u0647 \u0634\u0631\u0648\u0639 \u0645\u06cc\u200c\u0634\u0648\u062f\u061b \u067e\u0633 \u0647\u06cc\u0686 FLUSH PRIVILEGES\u0627\u06cc \u0644\u0627\u0632\u0645 \u0646\u06cc\u0633\u062a.<\/li>\n\n\n\n<li><strong>\u062a\u0641\u0627\u0648\u062a\u200c\u0647\u0627\u06cc \u067e\u0644\u0627\u06af\u06cc\u0646 \u0627\u062d\u0631\u0627\u0632 \u0647\u0648\u06cc\u062a \u0645\u0647\u0645\u200c\u0627\u0646\u062f:<\/strong> MySQL 8.0+ \u0628\u0647\u200c\u0637\u0648\u0631 \u067e\u06cc\u0634\u200c\u0641\u0631\u0636 \u0627\u0632 caching_sha2_password \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc\u200c\u06a9\u0646\u062f (mysql_native_password \u062f\u0631 8.4 \u062d\u0630\u0641 \u0634\u062f). MariaDB 10.4+ \u0628\u0647\u200c\u0637\u0648\u0631 \u067e\u06cc\u0634\u200c\u0641\u0631\u0636 \u0627\u0632 unix_socket \u0628\u0631\u0627\u06cc root \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc\u200c\u06a9\u0646\u062f\u061b \u067e\u0633 \u0631\u06cc\u0633\u062a \u0631\u0645\u0632 \u0645\u0645\u06a9\u0646 \u0627\u0633\u062a \u062a\u063a\u06cc\u06cc\u0631 \u067e\u0644\u0627\u06af\u06cc\u0646 \u0627\u062d\u0631\u0627\u0632 \u0647\u0648\u06cc\u062a \u0631\u0627 \u0647\u0645 \u0644\u0627\u0632\u0645 \u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u062f.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">\u067e\u06cc\u0634\u200c\u0646\u06cc\u0627\u0632\u0647\u0627<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u062f\u0633\u062a\u0631\u0633\u06cc \u0628\u0647 \u0633\u0631\u0648\u0631 \u0644\u06cc\u0646\u0648\u06a9\u0633\u06cc \u06a9\u0647 MySQL \u06cc\u0627 MariaDB \u0631\u0648\u06cc \u0622\u0646 \u0646\u0635\u0628 \u0634\u062f\u0647.<\/li>\n\n\n\n<li>\u062d\u0633\u0627\u0628 \u06a9\u0627\u0631\u0628\u0631\u06cc \u0628\u0627 sudo \u062a\u0627 \u0628\u062a\u0648\u0627\u0646\u06cc\u062f \u0633\u0631\u0648\u06cc\u0633 \u062f\u06cc\u062a\u0627\u0628\u06cc\u0633 \u0631\u0627 \u0645\u062a\u0648\u0642\u0641 \u0648 \u0634\u0631\u0648\u0639 \u06a9\u0646\u06cc\u062f \u0648 \u062f\u0631 \u0635\u0648\u0631\u062a \u0646\u06cc\u0627\u0632 mysqld \u06cc\u0627 mysqld_safe \u0631\u0627 \u0627\u062c\u0631\u0627 \u06a9\u0646\u06cc\u062f.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">\u0645\u0631\u0627\u062d\u0644 \u0627\u06cc\u0646 \u0622\u0645\u0648\u0632\u0634 \u0628\u0631\u0627\u06cc \u062a\u0648\u0632\u06cc\u0639\u200c\u0647\u0627\u06cc \u0632\u06cc\u0631 \u0645\u0639\u062a\u0628\u0631\u0646\u062f \u0648 \u0628\u0627 \u0646\u0633\u062e\u0647\u200c\u0647\u0627\u06cc \u0641\u0639\u0644\u06cc \u067e\u06a9\u06cc\u062c\u200c\u0647\u0627 \u0627\u0639\u062a\u0628\u0627\u0631\u0633\u0646\u062c\u06cc \u0634\u062f\u0647\u200c\u0627\u0646\u062f:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u0627\u0648\u0628\u0648\u0646\u062a\u0648 20.04\u060c 22.04 \u0648 24.04 \u0628\u0627 MySQL 8.0 \u0627\u0632 \u0645\u062e\u0632\u0646 APT \u0627\u0648\u0628\u0648\u0646\u062a\u0648 \u06cc\u0627 MySQL 8.4 \u0627\u0632 \u0645\u062e\u0632\u0646 APT \u0645\u0631\u0628\u0648\u0637 \u0628\u0647 MySQL\u061b \u0648 MariaDB 10.x \u0627\u0632 \u0645\u062e\u0632\u0646 APT \u0645\u0631\u0628\u0648\u0637 \u0628\u0647 MariaDB.<\/li>\n\n\n\n<li>\u062f\u0628\u06cc\u0627\u0646 \u06f1\u06f1 \u0648 \u06f1\u06f2 \u0628\u0627 MySQL 8.0 \u06cc\u0627 MariaDB 10.x.<\/li>\n\n\n\n<li>RHEL\u060c CentOS Stream\u060c AlmaLinux \u0648 \u0631\u0627\u06a9\u06cc \u0644\u06cc\u0646\u0648\u06a9\u0633 \u06f8 \u0648 \u06f9 \u0628\u0627 MySQL 8.0 \u0627\u0632 \u0645\u062e\u0632\u0646 RPM \u0645\u0631\u0628\u0648\u0637 \u0628\u0647 MySQL \u06cc\u0627 MariaDB 10.x \u0627\u0632 \u0645\u062e\u0632\u0646 RPM \u0645\u0631\u0628\u0648\u0637 \u0628\u0647 MariaDB.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">\u0627\u06af\u0631 \u062a\u0648\u0632\u06cc\u0639 \u0634\u0645\u0627 MySQL \u0631\u0627 \u0627\u0632 \u0645\u062e\u0627\u0632\u0646 \u067e\u06cc\u0634\u200c\u0641\u0631\u0636 \u0633\u06cc\u0633\u062a\u0645\u200c\u0639\u0627\u0645\u0644 \u0646\u0635\u0628 \u0645\u06cc\u200c\u06a9\u0646\u062f\u061b \u0645\u0639\u0645\u0648\u0644\u0627\u064b \u0631\u0648\u06cc \u0627\u0648\u0628\u0648\u0646\u062a\u0648 22.04+\u060c \u0627\u0648\u0628\u0648\u0646\u062a\u0648 24.04 \u0648 \u062f\u0628\u06cc\u0627\u0646 \u06f1\u06f2\u060c MySQL 8.0 \u062e\u0648\u0627\u0647\u062f \u0628\u0648\u062f. \u0631\u0648\u06cc \u0627\u0648\u0628\u0648\u0646\u062a\u0648 20.04 \u0647\u0645 \u067e\u06cc\u0634\u200c\u0641\u0631\u0636 MySQL 8.0 \u0627\u0633\u062a. \u0631\u0648\u06cc RHEL 8\/9 \u0648 \u0645\u0634\u062a\u0642\u0627\u062a\u0634\u060c \u0627\u0633\u062a\u0631\u06cc\u0645 \u0645\u0627\u0698\u0648\u0644 \u067e\u06cc\u0634\u200c\u0641\u0631\u0636 MySQL 8.0 \u0627\u0633\u062a. \u0646\u0633\u062e\u0647\u200c\u062a\u0627\u0646 \u0631\u0627 \u062f\u0631 \u06af\u0627\u0645 \u06f1 \u0628\u0627 <code>mysql --version<\/code> \u062a\u0623\u06cc\u06cc\u062f \u06a9\u0646\u06cc\u062f.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\"><strong>\u0646\u06a9\u062a\u0647:<\/strong> \u0627\u06cc\u0646 \u0645\u0631\u0627\u062d\u0644 \u0646\u06cc\u0627\u0632\u0645\u0646\u062f \u062f\u0633\u062a\u0631\u0633\u06cc \u0645\u0633\u062a\u0642\u06cc\u0645 SSH \u0628\u0647 \u0633\u0631\u0648\u0631 \u0648 \u062f\u0633\u062a\u0631\u0633\u06cc\u200c\u0647\u0627\u06cc \u0633\u0637\u062d-\u0633\u06cc\u0633\u062a\u0645\u200c\u0639\u0627\u0645\u0644\u0650 root \u0647\u0633\u062a\u0646\u062f. \u0628\u0631\u0627\u06cc \u0633\u0631\u0648\u06cc\u0633\u200c\u0647\u0627\u06cc \u062f\u06cc\u062a\u0627\u0628\u06cc\u0633 \u0645\u062f\u06cc\u0631\u06cc\u062a\u200c\u0634\u062f\u0647 \u0645\u0627\u0646\u0646\u062f \u062f\u06cc\u062a\u0627\u0628\u06cc\u0633\u200c\u0647\u0627\u06cc \u0645\u062f\u06cc\u0631\u06cc\u062a\u200c\u0634\u062f\u0647 \u067e\u0627\u0631\u0645\u06cc\u0646 \u06a9\u0644\u0648\u062f\u060c Amazon RDS \u06cc\u0627 \u0647\u0631 \u062f\u06cc\u062a\u0627\u0628\u06cc\u0633 \u0645\u06cc\u0632\u0628\u0627\u0646\u06cc\u200c\u0634\u062f\u0647\u200c\u0627\u06cc \u06a9\u0647 \u062f\u0633\u062a\u0631\u0633\u06cc \u0633\u0637\u062d-OS \u0646\u062f\u0627\u0631\u06cc\u062f\u060c \u0627\u0639\u0645\u0627\u0644 \u0646\u0645\u06cc\u200c\u0634\u0648\u0646\u062f.<\/p>\n<\/blockquote>\n\n\n\n<p class=\"wp-block-paragraph\">\u0627\u06af\u0631 \u0627\u0648\u0644 \u0644\u0627\u0632\u0645 \u0627\u0633\u062a \u0633\u0631\u0648\u0631 \u0631\u0627 \u0646\u0635\u0628 \u06a9\u0646\u06cc\u062f\u060c \u0631\u0627\u0647\u0646\u0645\u0627\u06cc \u0646\u0635\u0628 MySQL \u0631\u0648\u06cc \u0627\u0648\u0628\u0648\u0646\u062a\u0648 \u062f\u0631 \u067e\u0627\u0631\u0645\u06cc\u0646 \u06a9\u0644\u0648\u062f \u0631\u0627 \u0628\u0628\u06cc\u0646\u06cc\u062f.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u06af\u0627\u0645 \u06f1 \u2014 \u0634\u0646\u0627\u0633\u0627\u06cc\u06cc \u0646\u0633\u062e\u0647 \u062f\u06cc\u062a\u0627\u0628\u06cc\u0633<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u062f\u0633\u062a\u0648\u0631\u0627\u062a \u0648 SQL\u0627\u06cc \u06a9\u0647 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc\u200c\u06a9\u0646\u06cc\u062f \u0628\u0633\u062a\u06af\u06cc \u062f\u0627\u0631\u062f \u0628\u0647 \u0627\u06cc\u0646\u06a9\u0647 MySQL \u06cc\u0627 MariaDB \u0648 \u06a9\u062f\u0627\u0645 \u0646\u0633\u062e\u0647 \u0631\u0627 \u0627\u062c\u0631\u0627 \u0645\u06cc\u200c\u06a9\u0646\u06cc\u062f. \u0628\u0627 \u0627\u06cc\u0646 \u0686\u06a9 \u06a9\u0646\u06cc\u062f:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>mysql --version<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u0627\u0632 \u062e\u0631\u0648\u062c\u06cc \u0628\u0631\u0627\u06cc \u0627\u0646\u062a\u062e\u0627\u0628 \u062f\u0633\u062a\u0648\u0631\u0627\u0644\u0639\u0645\u0644\u200c\u0647\u0627\u06cc \u062f\u0631\u0633\u062a \u062f\u0631 \u0627\u062f\u0627\u0645\u0647 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u062f:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>MySQL 8.0 \u06cc\u0627 \u062c\u062f\u06cc\u062f\u062a\u0631:<\/strong> \u0627\u0632 <code>ALTER USER ... IDENTIFIED WITH caching_sha2_password BY '...';<\/code> \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u062e\u0648\u0627\u0647\u06cc\u062f \u06a9\u0631\u062f. \u0631\u0648\u06cc \u0628\u0633\u06cc\u0627\u0631\u06cc \u0627\u0632 \u0633\u06cc\u0633\u062a\u0645\u200c\u0647\u0627\u060c mysqld_safe \u0645\u0648\u062c\u0648\u062f \u0646\u06cc\u0633\u062a\u061b \u0627\u0632 <code>sudo -u mysql mysqld --skip-grant-tables --skip-networking<\/code> \u06cc\u0627 \u0631\u0648\u0634 <code>--init-file<\/code> \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u062f.<\/li>\n\n\n\n<li><strong>MySQL 5.7.x:<\/strong> \u0627\u0632 <code>ALTER USER 'root'@'localhost' IDENTIFIED BY '...';<\/code> \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u062e\u0648\u0627\u0647\u06cc\u062f \u06a9\u0631\u062f. \u062f\u0631 \u0635\u0648\u0631\u062a \u0645\u0648\u062c\u0648\u062f \u0628\u0648\u062f\u0646\u060c \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u06cc\u062f \u0627\u0632 <code>mysqld_safe --skip-grant-tables --skip-networking<\/code> \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u062f.<\/li>\n\n\n\n<li><strong>MariaDB 10.4 \u06cc\u0627 \u062c\u062f\u06cc\u062f\u062a\u0631:<\/strong> root \u0645\u0645\u06a9\u0646 \u0627\u0633\u062a \u0627\u0632 \u0627\u062d\u0631\u0627\u0632 \u0647\u0648\u06cc\u062a unix_socket \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u062f\u061b \u0627\u06af\u0631 \u0631\u0645\u0632 \u0644\u0627\u0632\u0645 \u062f\u0627\u0631\u06cc\u062f\u060c \u0627\u0632 ALTER USER \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0648 \u0627\u062e\u062a\u06cc\u0627\u0631\u06cc \u067e\u0644\u0627\u06af\u06cc\u0646 \u0631\u0627 \u0631\u0648\u06cc mysql_native_password \u062a\u0646\u0638\u06cc\u0645 \u06a9\u0646\u06cc\u062f.<\/li>\n\n\n\n<li><strong>MariaDB 10.1.20 \u0648 \u062c\u062f\u06cc\u062f\u062a\u0631 (\u0634\u0627\u0645\u0644 10.2\u060c 10.3):<\/strong> <code>ALTER USER 'root'@'localhost' IDENTIFIED BY '...';<\/code> \u0645\u0639\u062a\u0628\u0631 \u0627\u0633\u062a.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">\u0646\u0645\u0648\u0646\u0647 \u062e\u0631\u0648\u062c\u06cc \u0628\u0631\u0627\u06cc MySQL 5.7:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>mysql  Ver 14.14 Distrib 5.7.16, for Linux (x86_64) using  EditLine wrapper<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u0646\u0645\u0648\u0646\u0647 \u062e\u0631\u0648\u062c\u06cc \u0628\u0631\u0627\u06cc MySQL 8:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>mysql  Ver 8.0.35 for Linux on x86_64 (MySQL Community Server - GPL)<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u0646\u0645\u0648\u0646\u0647 \u062e\u0631\u0648\u062c\u06cc \u0628\u0631\u0627\u06cc MariaDB:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>mysql  Ver 15.1 Distrib 10.5.21-MariaDB, for Linux (x86_64) using readline 5.1<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">\u06af\u0627\u0645 \u06f2 \u2014 \u0645\u062a\u0648\u0642\u0641 \u06a9\u0631\u062f\u0646 \u0633\u0631\u0648\u0631 \u062f\u06cc\u062a\u0627\u0628\u06cc\u0633<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u0633\u0631\u0648\u06cc\u0633 \u062f\u06cc\u062a\u0627\u0628\u06cc\u0633 \u0631\u0627 \u0645\u062a\u0648\u0642\u0641 \u06a9\u0646\u06cc\u062f \u062a\u0627 \u0628\u062a\u0648\u0627\u0646\u06cc\u062f \u062f\u0633\u062a\u06cc \u0648 \u0628\u0627 \u0628\u0631\u0631\u0633\u06cc \u062f\u0633\u062a\u0631\u0633\u06cc\u0650 \u063a\u06cc\u0631\u0641\u0639\u0627\u0644\u200c\u0634\u062f\u0647 \u0634\u0631\u0648\u0639\u0634 \u06a9\u0646\u06cc\u062f. \u0646\u0627\u0645 \u0633\u0631\u0648\u06cc\u0633 \u0628\u0647 \u0633\u06cc\u0633\u062a\u0645\u200c\u0639\u0627\u0645\u0644 \u0648 \u0627\u06cc\u0646\u06a9\u0647 MySQL \u06cc\u0627 MariaDB \u0627\u062c\u0631\u0627 \u0645\u06cc\u200c\u06a9\u0646\u06cc\u062f \u0628\u0633\u062a\u06af\u06cc \u062f\u0627\u0631\u062f:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u062f\u0628\u06cc\u0627\u0646\/\u0627\u0648\u0628\u0648\u0646\u062a\u0648 (MySQL):<\/strong> \u0646\u0627\u0645 \u0633\u0631\u0648\u06cc\u0633 <code>mysql<\/code> \u0627\u0633\u062a.<\/li>\n\n\n\n<li><strong>RHEL\/CentOS\/AlmaLinux\/Rocky (MySQL):<\/strong> \u0646\u0627\u0645 \u0633\u0631\u0648\u06cc\u0633 <code>mysqld<\/code> \u0627\u0633\u062a. \u0641\u0627\u06cc\u0644 PID \u0627\u063a\u0644\u0628 <code>\/var\/run\/mysqld\/mysqld.pid<\/code> \u06cc\u0627 \u0632\u06cc\u0631 <code>\/var\/lib\/mysql\/<\/code> \u0628\u0633\u062a\u0647 \u0628\u0647 \u062a\u0648\u0632\u06cc\u0639 \u0627\u0633\u062a.<\/li>\n\n\n\n<li><strong>MariaDB (\u0647\u0645\u0647 \u062a\u0648\u0632\u06cc\u0639\u200c\u0647\u0627\u06cc \u067e\u0634\u062a\u06cc\u0628\u0627\u0646\u06cc\u200c\u0634\u062f\u0647):<\/strong> \u0646\u0627\u0645 \u0633\u0631\u0648\u06cc\u0633 <code>mariadb<\/code> \u0627\u0633\u062a.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">\u0645\u062b\u0627\u0644\u200c\u0647\u0627:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>MySQL \u0631\u0648\u06cc \u062f\u0628\u06cc\u0627\u0646\/\u0627\u0648\u0628\u0648\u0646\u062a\u0648:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo systemctl stop mysql<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>MySQL \u0631\u0648\u06cc RHEL\/CentOS\/AlmaLinux\/Rocky:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo systemctl stop mysqld<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>MariaDB:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo systemctl stop mariadb<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u062a\u0648\u0642\u0641 \u0633\u0631\u0648\u06cc\u0633 \u0631\u0627 \u062a\u0623\u06cc\u06cc\u062f \u06a9\u0646\u06cc\u062f:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>MySQL:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo systemctl status mysql<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>MariaDB:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo systemctl status mariadb<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u0633\u0631\u0648\u06cc\u0633 \u0645\u062a\u0648\u0642\u0641\u200c\u0634\u062f\u0647 <code>Active: inactive (dead)<\/code> \u0631\u0627 \u062f\u0631 \u062e\u0631\u0648\u062c\u06cc \u0646\u0634\u0627\u0646 \u0645\u06cc\u200c\u062f\u0647\u062f. \u0633\u067e\u0633 \u0628\u0647 \u0634\u0631\u0648\u0639 \u0633\u0631\u0648\u0631 \u0628\u062f\u0648\u0646 \u062c\u062f\u0648\u0644\u200c\u0647\u0627\u06cc Grant \u0628\u0631\u0648\u06cc\u062f.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u06af\u0627\u0645 \u06f3 \u2014 \u0631\u06cc\u200c\u0627\u0633\u062a\u0627\u0631\u062a \u06a9\u0631\u062f\u0646 \u0633\u0631\u0648\u0631 \u062f\u06cc\u062a\u0627\u0628\u06cc\u0633 \u0628\u062f\u0648\u0646 \u0628\u0631\u0631\u0633\u06cc \u062f\u0633\u062a\u0631\u0633\u06cc<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u0633\u0631\u0648\u0631 \u0631\u0627 \u0628\u0627 <code>--skip-grant-tables<\/code> \u0648 <code>--skip-networking<\/code> \u0634\u0631\u0648\u0639 \u06a9\u0646\u06cc\u062f. \u0627\u06cc\u0646 \u0628\u0647 MySQL \u06cc\u0627 MariaDB \u0645\u06cc\u200c\u06af\u0648\u06cc\u062f \u0628\u0627\u0631\u06af\u0630\u0627\u0631\u06cc \u062f\u0627\u062f\u0647\u200c\u0647\u0627\u06cc \u062f\u0633\u062a\u0631\u0633\u06cc \u06a9\u0627\u0631\u0628\u0631 \u0631\u0627 \u06a9\u0627\u0645\u0644\u0627\u064b \u0631\u062f \u06a9\u0646\u062f\u061b \u06a9\u0647 \u0628\u0647 \u0634\u0645\u0627 \u0627\u062c\u0627\u0632\u0647 \u0645\u06cc\u200c\u062f\u0647\u062f \u0628\u0647\u200c\u0635\u0648\u0631\u062a \u0645\u062d\u0644\u06cc \u0648 \u0628\u062f\u0648\u0646 \u0631\u0645\u0632 \u0628\u0647\u200c\u0639\u0646\u0648\u0627\u0646 root \u0648\u0635\u0644 \u0634\u0648\u06cc\u062f. \u0641\u0644\u06af <code>--skip-networking<\/code> \u062a\u0636\u0645\u06cc\u0646 \u0645\u06cc\u200c\u06a9\u0646\u062f \u0647\u06cc\u0686 \u06a9\u0644\u0627\u06cc\u0646\u062a \u0631\u06cc\u0645\u0648\u062a\u06cc \u0646\u062a\u0648\u0627\u0646\u062f \u0648\u0635\u0644 \u0634\u0648\u062f \u0648\u0642\u062a\u06cc \u0633\u0631\u0648\u0631 \u062f\u0631 \u0627\u06cc\u0646 \u0648\u0636\u0639\u06cc\u062a \u0628\u062f\u0648\u0646\u200c\u062d\u0641\u0627\u0638\u062a \u0627\u0633\u062a.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>MySQL 5.7 (\u0648\u0642\u062a\u06cc mysqld_safe \u0645\u0648\u062c\u0648\u062f \u0627\u0633\u062a):<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo mysqld_safe --skip-grant-tables --skip-networking &amp;<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><code>&amp;<\/code> \u067e\u0631\u0648\u0633\u0647 \u0631\u0627 \u062f\u0631 \u067e\u0633\u200c\u0632\u0645\u06cc\u0646\u0647 \u0627\u062c\u0631\u0627 \u0645\u06cc\u200c\u06a9\u0646\u062f \u062a\u0627 \u0628\u062a\u0648\u0627\u0646\u06cc\u062f \u0628\u0647 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u062a\u0631\u0645\u06cc\u0646\u0627\u0644 \u0627\u062f\u0627\u0645\u0647 \u062f\u0647\u06cc\u062f.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>MySQL 8.0+ (\u0628\u062f\u0648\u0646 mysqld_safe \u0631\u0648\u06cc \u0628\u0633\u06cc\u0627\u0631\u06cc \u0627\u0632 \u0633\u06cc\u0633\u062a\u0645\u200c\u0647\u0627):<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u0631\u0648\u06cc \u062a\u0648\u0632\u06cc\u0639\u200c\u0647\u0627\u06cc\u06cc \u06a9\u0647 mysqld_safe \u062d\u0630\u0641 \u0634\u062f\u0647\u060c \u0645\u0633\u062a\u0642\u06cc\u0645\u0627\u064b mysqld \u0631\u0627 \u0634\u0631\u0648\u0639 \u06a9\u0646\u06cc\u062f:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo -u mysql mysqld --skip-grant-tables --skip-networking &amp;<\/code><\/pre>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\"><strong>\u0627\u0645\u0646\u06cc\u062a:<\/strong> <code>--skip-grant-tables<\/code> \u0627\u062d\u0631\u0627\u0632 \u0647\u0648\u06cc\u062a \u0631\u0627 \u063a\u06cc\u0631\u0641\u0639\u0627\u0644 \u0645\u06cc\u200c\u06a9\u0646\u062f. \u0647\u0645\u06cc\u0634\u0647 \u0627\u0632 <code>--skip-networking<\/code> \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u062f \u062a\u0627 \u0633\u0631\u0648\u0631 \u0627\u062a\u0635\u0627\u0644\u0627\u062a \u0634\u0628\u06a9\u0647 \u0631\u0627 \u0646\u067e\u0630\u06cc\u0631\u062f. \u0631\u06cc\u0633\u062a \u0631\u0627 \u062a\u0627 \u062c\u0627\u06cc \u0645\u0645\u06a9\u0646 \u0633\u0631\u06cc\u0639 \u0627\u062c\u0631\u0627 \u06a9\u0646\u06cc\u062f. \u0628\u0631\u0627\u06cc \u067e\u0631\u0648\u062f\u0627\u06a9\u0634\u0646\u060c \u00ab\u0631\u0648\u0634 \u062c\u0627\u06cc\u06af\u0632\u06cc\u0646: \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 &#8211;init-file\u00bb \u0631\u0627 \u062f\u0631 \u067e\u0627\u06cc\u06cc\u0646 \u062a\u0631\u062c\u06cc\u062d \u062f\u0647\u06cc\u062f.<\/p>\n<\/blockquote>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>MariaDB:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo mysqld_safe --skip-grant-tables --skip-networking &amp;<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u0627\u06af\u0631 <code>mysqld_safe: command not found<\/code> \u062f\u06cc\u062f\u06cc\u062f\u060c \u0645\u062b\u0644 MySQL 8 \u0627\u0632 <code>sudo -u mysql mysqld --skip-grant-tables --skip-networking &amp;<\/code> \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u062f.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u0628\u0647\u200c\u0639\u0646\u0648\u0627\u0646 root \u0648\u0635\u0644 \u0634\u0648\u06cc\u062f (\u0628\u062f\u0648\u0646 \u0631\u0645\u0632):<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>mysql -u root<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u0628\u0627\u06cc\u062f \u0641\u0648\u0631\u0627\u064b \u067e\u0631\u0627\u0645\u067e\u062a\u06cc \u0628\u06af\u06cc\u0631\u06cc\u062f.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>MySQL:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Type 'help;' or '\\h' for help. Type '\\c' to clear the current input statement.\n\nmysql&gt;<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>MariaDB:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Type 'help;' or '\\h' for help. Type '\\c' to clear the current input statement.\n\nMariaDB &#91;(none)]&gt;<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">\u06af\u0627\u0645 \u06f4 \u2014 \u062a\u063a\u06cc\u06cc\u0631 \u0631\u0645\u0632 \u0639\u0628\u0648\u0631 Root<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u0628\u0627 \u062c\u062f\u0648\u0644\u200c\u0647\u0627\u06cc Grant\u0650 \u0631\u062f\u200c\u0634\u062f\u0647\u060c \u0633\u0631\u0648\u0631 \u0647\u06cc\u0686 \u0642\u0627\u0646\u0648\u0646 \u062f\u0633\u062a\u0631\u0633\u06cc\u200c\u0627\u06cc \u0631\u0627 \u0646\u0645\u06cc\u200c\u0634\u0646\u0627\u0633\u062f \u0648 \u0627\u0632 \u0627\u0639\u0645\u0627\u0644 \u062a\u063a\u06cc\u06cc\u0631\u0627\u062a \u0628\u0631 \u0622\u0646\u200c\u0647\u0627 \u0627\u0645\u062a\u0646\u0627\u0639 \u0645\u06cc\u200c\u06a9\u0646\u062f. \u062c\u062f\u0648\u0644\u200c\u0647\u0627\u06cc Grant \u0686\u06cc\u0632\u06cc \u0647\u0633\u062a\u0646\u062f \u06a9\u0647 MySQL \u0648 MariaDB \u0628\u0631\u0627\u06cc \u062a\u0635\u0645\u06cc\u0645\u200c\u06af\u06cc\u0631\u06cc \u062f\u0631\u0628\u0627\u0631\u0647 \u0627\u06cc\u0646\u06a9\u0647 \u0686\u0647 \u06a9\u0633\u06cc \u0686\u0647 \u06a9\u0627\u0631\u06cc \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u062f \u0627\u0646\u062c\u0627\u0645 \u062f\u0647\u062f \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc\u200c\u06a9\u0646\u0646\u062f. \u0627\u0648\u0644 \u0622\u0646\u200c\u0647\u0627 \u0631\u0627 \u0631\u06cc\u0644\u0648\u062f \u06a9\u0646\u06cc\u062f \u062a\u0627 \u0633\u0631\u0648\u0631 \u0628\u062a\u0648\u0627\u0646\u062f \u062a\u063a\u06cc\u06cc\u0631 \u0631\u0645\u0632\u200c\u062a\u0627\u0646 \u0631\u0627 \u067e\u0631\u062f\u0627\u0632\u0634 \u06a9\u0646\u062f:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>FLUSH PRIVILEGES;<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u0633\u067e\u0633 \u0631\u0645\u0632 \u062c\u062f\u06cc\u062f \u0631\u0627 \u0628\u0627 \u062f\u0633\u062a\u0648\u0631\u06cc \u06a9\u0647 \u0628\u0627 \u0646\u0633\u062e\u0647\u200c\u062a\u0627\u0646 \u0645\u0637\u0627\u0628\u0642\u062a \u062f\u0627\u0631\u062f \u062a\u0646\u0638\u06cc\u0645 \u06a9\u0646\u06cc\u062f.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>MySQL 8.0+ (\u067e\u0644\u0627\u06af\u06cc\u0646 \u0627\u062d\u0631\u0627\u0632 \u0647\u0648\u06cc\u062a \u067e\u06cc\u0634\u200c\u0641\u0631\u0636 caching_sha2_password \u0627\u0633\u062a\u061b mysql_native_password \u062f\u0631 8.0 \u0645\u0646\u0633\u0648\u062e \u0648 \u062f\u0631 8.4 \u062d\u0630\u0641 \u0634\u062f\u0647):<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ALTER USER 'root'@'localhost' IDENTIFIED WITH caching_sha2_password BY 'new_password';<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u0628\u0631\u0627\u06cc \u0645\u0631\u062c\u0639 \u06a9\u0627\u0645\u0644 \u0633\u06cc\u0646\u062a\u06a9\u0633\u060c \u0645\u0633\u062a\u0646\u062f\u0627\u062a MySQL 8.0 \u0628\u0631\u0627\u06cc ALTER USER \u0648 \u0645\u0633\u062a\u0646\u062f\u0627\u062a MariaDB \u0628\u0631\u0627\u06cc ALTER USER \u0631\u0627 \u0628\u0628\u06cc\u0646\u06cc\u062f.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>MySQL 5.7.6 \u0648 \u062c\u062f\u06cc\u062f\u062a\u0631 (\u0646\u0647 8.0):<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ALTER USER 'root'@'localhost' IDENTIFIED BY 'new_password';<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>MariaDB 10.4+ (\u0627\u06af\u0631 root \u0627\u0632 unix_socket \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc\u200c\u06a9\u0646\u062f \u0648 \u0627\u062d\u0631\u0627\u0632 \u0647\u0648\u06cc\u062a \u0645\u0628\u062a\u0646\u06cc \u0628\u0631 \u0631\u0645\u0632 \u0645\u06cc\u200c\u062e\u0648\u0627\u0647\u06cc\u062f\u060c \u067e\u0644\u0627\u06af\u06cc\u0646 \u0648 \u0631\u0645\u0632 \u0631\u0627 \u062a\u0646\u0638\u06cc\u0645 \u06a9\u0646\u06cc\u062f):<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u0631\u0648\u06cc MariaDB 10.4+\u060c \u0627\u062d\u0631\u0627\u0632 \u0647\u0648\u06cc\u062a root \u0628\u0647\u200c\u0637\u0648\u0631 \u067e\u06cc\u0634\u200c\u0641\u0631\u0636 unix_socket \u0627\u0633\u062a. \u06cc\u0639\u0646\u06cc MariaDB \u0628\u0647\u200c\u062c\u0627\u06cc \u0631\u0645\u0632 \u0639\u0628\u0648\u0631\u060c \u0647\u0648\u06cc\u062a \u06a9\u0627\u0631\u0628\u0631 \u0644\u06cc\u0646\u0648\u06a9\u0633\u06cc\u200c\u062a\u0627\u0646 \u0631\u0627 \u0686\u06a9 \u0645\u06cc\u200c\u06a9\u0646\u062f. \u0627\u06af\u0631 \u0628\u0647\u200c\u0639\u0646\u0648\u0627\u0646 \u06a9\u0627\u0631\u0628\u0631 root \u0633\u06cc\u0633\u062a\u0645 \u0627\u062c\u0631\u0627 \u0645\u06cc\u200c\u06a9\u0646\u06cc\u062f\u060c MariaDB \u0628\u062f\u0648\u0646 \u0631\u0645\u0632 \u0627\u062c\u0627\u0632\u0647 \u0648\u0631\u0648\u062f \u0645\u06cc\u200c\u062f\u0647\u062f. \u0627\u06af\u0631 \u062f\u0633\u062a\u0631\u0633\u06cc \u0645\u0628\u062a\u0646\u06cc \u0628\u0631 \u0631\u0645\u0632 \u0644\u0627\u0632\u0645 \u062f\u0627\u0631\u06cc\u062f (\u0645\u062b\u0644\u0627\u064b \u0628\u0631\u0627\u06cc \u0627\u067e\u0644\u06cc\u06a9\u06cc\u0634\u0646\u06cc \u06a9\u0647 \u0628\u0647\u200c\u0639\u0646\u0648\u0627\u0646 root \u0648\u0635\u0644 \u0645\u06cc\u200c\u0634\u0648\u062f)\u060c \u0628\u0627\u06cc\u062f \u0635\u0631\u06cc\u062d\u0627\u064b \u067e\u0644\u0627\u06af\u06cc\u0646 \u0627\u062d\u0631\u0627\u0632 \u0647\u0648\u06cc\u062a \u0631\u0627 \u0639\u0648\u0636 \u06a9\u0646\u06cc\u062f:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ALTER USER 'root'@'localhost' IDENTIFIED VIA mysql_native_password USING PASSWORD('new_password');<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u06cc\u0627 \u0628\u0631\u0627\u06cc \u0641\u0642\u0637 \u062a\u0646\u0638\u06cc\u0645 \u0631\u0645\u0632 \u0648 \u0646\u06af\u0647 \u062f\u0627\u0634\u062a\u0646 \u067e\u0644\u0627\u06af\u06cc\u0646 \u0645\u0648\u062c\u0648\u062f:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ALTER USER 'root'@'localhost' IDENTIFIED BY 'new_password';<\/code><\/pre>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\"><strong>\u0646\u06a9\u062a\u0647:<\/strong> \u0628\u0631\u0627\u06cc \u062a\u0623\u06cc\u06cc\u062f \u062f\u0631\u0633\u062a \u0628\u0647\u200c\u0631\u0648\u0632\u0631\u0633\u0627\u0646 \u0634\u062f\u0646 \u067e\u0644\u0627\u06af\u06cc\u0646\u060c \u0628\u0639\u062f \u0627\u0632 \u0627\u062a\u0635\u0627\u0644 \u0645\u062c\u062f\u062f\u0650 \u0645\u0639\u0645\u0648\u0644 \u0627\u062c\u0631\u0627 \u06a9\u0646\u06cc\u062f: <code>SELECT user, host, plugin FROM mysql.user WHERE user='root';<\/code><\/p>\n<\/blockquote>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>MariaDB 10.1.20 \u0648 \u062c\u062f\u06cc\u062f\u062a\u0631 (10.1\u060c 10.2\u060c 10.3):<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ALTER USER 'root'@'localhost' IDENTIFIED BY 'new_password';<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>MySQL 5.7.5 \u0648 \u0642\u062f\u06cc\u0645\u06cc\u200c\u062a\u0631 \/ MariaDB 10.1.19 \u0648 \u0642\u062f\u06cc\u0645\u06cc\u200c\u062a\u0631:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>SET PASSWORD FOR 'root'@'localhost' = PASSWORD('new_password');<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><code>new_password<\/code> \u0631\u0627 \u0628\u0627 \u0631\u0645\u0632 \u0627\u0646\u062a\u062e\u0627\u0628\u06cc\u200c\u062a\u0627\u0646 \u062c\u0627\u06cc\u06af\u0632\u06cc\u0646 \u06a9\u0646\u06cc\u062f. \u0645\u0648\u0641\u0642\u06cc\u062a \u0627\u06cc\u0646\u200c\u0637\u0648\u0631 \u0627\u0633\u062a:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Query OK, 0 rows affected (0.00 sec)<\/code><\/pre>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\"><strong>\u0646\u06a9\u062a\u0647:<\/strong> \u0627\u06af\u0631 ALTER USER \u0645\u0648\u062c\u0648\u062f \u0646\u06cc\u0633\u062a \u06cc\u0627 \u0634\u06a9\u0633\u062a \u0645\u06cc\u200c\u062e\u0648\u0631\u062f\u060c \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u06cc\u062f \u062c\u062f\u0648\u0644 Grant \u0631\u0627 \u0645\u0633\u062a\u0642\u06cc\u0645 \u0628\u0647\u200c\u0631\u0648\u0632\u0631\u0633\u0627\u0646\u06cc \u06a9\u0646\u06cc\u062f (MySQL 5.7 \/ MariaDB): <code>UPDATE mysql.user SET authentication_string = PASSWORD('new_password') WHERE User = 'root' AND Host = 'localhost';<\/code> \u0633\u067e\u0633 \u062f\u0648\u0628\u0627\u0631\u0647 <code>FLUSH PRIVILEGES;<\/code> \u0631\u0627 \u0627\u062c\u0631\u0627 \u06a9\u0646\u06cc\u062f. \u0648\u0642\u062a\u06cc \u0646\u0633\u062e\u0647\u200c\u062a\u0627\u0646 \u067e\u0634\u062a\u06cc\u0628\u0627\u0646\u06cc \u0645\u06cc\u200c\u06a9\u0646\u062f\u060c ALTER USER \u0631\u0627 \u062a\u0631\u062c\u06cc\u062d \u062f\u0647\u06cc\u062f.<\/p>\n<\/blockquote>\n\n\n\n<h2 class=\"wp-block-heading\">\u06af\u0627\u0645 \u06f5 \u2014 \u0631\u06cc\u200c\u0627\u0633\u062a\u0627\u0631\u062a \u0645\u0639\u0645\u0648\u0644 \u0633\u0631\u0648\u0631 \u062f\u06cc\u062a\u0627\u0628\u06cc\u0633<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u067e\u0631\u0648\u0633\u06c0 MySQL \u06cc\u0627 MariaDB\u0650 \u062f\u0633\u062a\u06cc-\u0634\u0631\u0648\u0639\u200c\u0634\u062f\u0647 \u0631\u0627 \u0645\u062a\u0648\u0642\u0641 \u06a9\u0646\u06cc\u062f. PID \u0622\u0646 \u0631\u0627 \u067e\u06cc\u062f\u0627 \u0648 SIGTERM \u0628\u0641\u0631\u0633\u062a\u06cc\u062f \u062a\u0627 \u062a\u0645\u06cc\u0632 \u062e\u0627\u0645\u0648\u0634 \u0634\u0648\u062f.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>MySQL \u06cc\u0627 MariaDB:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo kill $(cat \/var\/run\/mysqld\/mysqld.pid)<\/code><\/pre>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\"><strong>\u0646\u06a9\u062a\u0647:<\/strong> \u0627\u06af\u0631 \u0645\u0633\u06cc\u0631 \u0641\u0627\u06cc\u0644 PID \u0631\u0648\u06cc \u062a\u0648\u0632\u06cc\u0639\u200c\u062a\u0627\u0646 \u0645\u062a\u0641\u0627\u0648\u062a \u0627\u0633\u062a\u060c \u0627\u0632 <code>sudo mysqladmin -u root -p shutdown<\/code> \u0628\u0647\u200c\u0639\u0646\u0648\u0627\u0646 \u062c\u0627\u06cc\u06af\u0632\u06cc\u0646 \u0642\u0627\u0628\u0644 \u0627\u0637\u0645\u06cc\u0646\u0627\u0646 \u0628\u0631\u0627\u06cc \u0647\u0631 \u062f\u0648\u06cc MySQL \u0648 MariaDB \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u062f. \u0628\u0631\u0627\u06cc \u067e\u06cc\u062f\u0627 \u06a9\u0631\u062f\u0646 \u0645\u06a9\u0627\u0646 \u0641\u0627\u06cc\u0644 PID\u060c \u062f\u0627\u06cc\u0631\u06a9\u062a\u06cc\u0648 pid-file \u0631\u0627 \u062f\u0631 \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc MySQL \u0686\u06a9 \u06a9\u0646\u06cc\u062f:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>grep pid-file \/etc\/my.cnf \/etc\/mysql\/my.cnf 2&gt;\/dev\/null<\/code><\/pre>\n<\/blockquote>\n\n\n\n<p class=\"wp-block-paragraph\">\u0633\u067e\u0633 \u0633\u0631\u0648\u06cc\u0633 \u0631\u0627 \u062f\u0648\u0628\u0627\u0631\u0647 \u0634\u0631\u0648\u0639 \u06a9\u0646\u06cc\u062f.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>MySQL \u0631\u0648\u06cc \u062f\u0628\u06cc\u0627\u0646\/\u0627\u0648\u0628\u0648\u0646\u062a\u0648:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo systemctl start mysql<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>MySQL \u0631\u0648\u06cc RHEL\/CentOS\/AlmaLinux\/Rocky:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo systemctl start mysqld<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>MariaDB:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo systemctl start mariadb<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u0631\u0645\u0632 \u062c\u062f\u06cc\u062f \u0631\u0627 \u062a\u0623\u06cc\u06cc\u062f \u06a9\u0646\u06cc\u062f:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>mysql -u root -p<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u0631\u0645\u0632 \u062c\u062f\u06cc\u062f \u0631\u0627 \u0647\u0646\u06af\u0627\u0645 \u062f\u0631\u062e\u0648\u0627\u0633\u062a \u0648\u0627\u0631\u062f \u06a9\u0646\u06cc\u062f. \u0648\u0631\u0648\u062f \u0645\u0648\u0641\u0642 \u0627\u06cc\u0646\u200c\u0637\u0648\u0631 \u0627\u0633\u062a:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>MySQL:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Type 'help;' or '\\h' for help. Type '\\c' to clear the current input statement.\n\nmysql&gt;<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>MariaDB:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Type 'help;' or '\\h' for help. Type '\\c' to clear the current input statement.\n\nMariaDB &#91;(none)]&gt;<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u0627\u06af\u0631 <code>ERROR 1045 (28000): Access denied for user 'root'@'localhost'<\/code> \u062f\u06cc\u062f\u06cc\u062f\u060c \u0628\u062e\u0634 \u00ab\u0639\u06cc\u0628\u200c\u06cc\u0627\u0628\u06cc \u062e\u0637\u0627\u0647\u0627\u06cc \u0631\u0627\u06cc\u062c\u00bb \u0631\u0627 \u062f\u0631 \u067e\u0627\u06cc\u06cc\u0646 \u0628\u0628\u06cc\u0646\u06cc\u062f.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u0631\u0648\u0634 \u062c\u0627\u06cc\u06af\u0632\u06cc\u0646: \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 &#8211;init-file (\u062a\u0648\u0635\u06cc\u0647\u200c\u0634\u062f\u0647 \u0628\u0631\u0627\u06cc \u067e\u0631\u0648\u062f\u0627\u06a9\u0634\u0646)<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u0631\u0648\u0634 <code>--init-file<\/code>\u060c \u0641\u0627\u06cc\u0644 SQL\u0627\u06cc \u0631\u0627 \u06cc\u06a9\u200c\u0628\u0627\u0631 \u0647\u0646\u06af\u0627\u0645 \u0627\u0633\u062a\u0627\u0631\u062a \u0633\u0631\u0648\u0631 \u0627\u062c\u0631\u0627\u060c \u0631\u0645\u0632 \u062c\u062f\u06cc\u062f \u0631\u0627 \u062a\u0646\u0638\u06cc\u0645 \u0648 \u0633\u067e\u0633 \u0634\u0645\u0627 \u0641\u0627\u06cc\u0644 \u0631\u0627 \u062d\u0630\u0641 \u0645\u06cc\u200c\u06a9\u0646\u06cc\u062f. \u0633\u0631\u0648\u0631 \u0628\u0627 \u062c\u062f\u0648\u0644\u200c\u0647\u0627\u06cc Grant \u0628\u0627\u0631\u06af\u0630\u0627\u0631\u06cc\u200c\u0634\u062f\u0647 \u0648 \u0627\u062d\u0631\u0627\u0632 \u0647\u0648\u06cc\u062a \u06a9\u0627\u0645\u0644\u0650 \u062f\u0631 \u062a\u0645\u0627\u0645 \u0637\u0648\u0644 \u0627\u062c\u0631\u0627 \u0634\u0631\u0648\u0639 \u0645\u06cc\u200c\u0634\u0648\u062f. \u0647\u0631\u06af\u0632 instance\u0627\u06cc \u0628\u062f\u0648\u0646 \u0627\u062d\u0631\u0627\u0632 \u0647\u0648\u06cc\u062a \u0631\u0627 \u0628\u0631\u0627\u06cc \u0634\u0628\u06a9\u0647 \u0627\u0641\u0634\u0627 \u0646\u0645\u06cc\u200c\u06a9\u0646\u06cc\u062f\u061b \u06a9\u0647 \u0627\u06cc\u0646 \u0631\u0627 \u0628\u0647 \u0627\u0646\u062a\u062e\u0627\u0628 \u0627\u0645\u0646\u200c\u062a\u0631\u06cc \u0628\u0631\u0627\u06cc \u0633\u06cc\u0633\u062a\u0645\u200c\u0647\u0627\u06cc \u067e\u0631\u0648\u062f\u0627\u06a9\u0634\u0646 \u062a\u0628\u062f\u06cc\u0644 \u0645\u06cc\u200c\u06a9\u0646\u062f.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u0641\u0627\u06cc\u0644 SQL \u0645\u0648\u0642\u062a\u06cc \u0628\u0633\u0627\u0632\u06cc\u062f (\u0645\u062b\u0644\u0627\u064b <code>\/tmp\/mysql-init-pwd.sql<\/code>) \u0628\u0627 \u062f\u0633\u062a\u0648\u0631 \u0645\u0646\u0627\u0633\u0628. \u0627\u0632 \u06cc\u06a9\u06cc \u0627\u0632 \u0645\u0648\u0627\u0631\u062f \u0632\u06cc\u0631 \u0627\u0633\u062a\u0641\u0627\u062f\u0647\u060c \u0633\u067e\u0633 <code>new_password<\/code> \u0631\u0627 \u0628\u0627 \u0631\u0645\u0632 \u0648\u0627\u0642\u0639\u06cc\u200c\u062a\u0627\u0646 \u062c\u0627\u06cc\u06af\u0632\u06cc\u0646 \u06a9\u0646\u06cc\u062f.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>MySQL 8.0+:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ALTER USER 'root'@'localhost' IDENTIFIED WITH caching_sha2_password BY 'new_password';<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>MySQL 5.7 (\u0648 MariaDB 10.1.20+ \u0628\u0627 \u0627\u062d\u0631\u0627\u0632 \u0647\u0648\u06cc\u062a \u0627\u0633\u062a\u0627\u0646\u062f\u0627\u0631\u062f):<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ALTER USER 'root'@'localhost' IDENTIFIED BY 'new_password';<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>MariaDB 10.4+ (\u0628\u0631\u0627\u06cc \u062a\u0646\u0638\u06cc\u0645 \u0631\u0645\u0632 \u0648 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 mysql_native_password):<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ALTER USER 'root'@'localhost' IDENTIFIED VIA mysql_native_password USING PASSWORD('new_password');<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u0633\u0631\u0648\u06cc\u0633 \u062f\u06cc\u062a\u0627\u0628\u06cc\u0633 \u0631\u0627 \u0628\u0627 \u062f\u0633\u062a\u0648\u0631 \u0645\u062e\u0635\u0648\u0635 \u062a\u0648\u0632\u06cc\u0639\u200c\u062a\u0627\u0646 \u0627\u0632 \u06af\u0627\u0645 \u06f2 \u0645\u062a\u0648\u0642\u0641 \u06a9\u0646\u06cc\u062f:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>MySQL \u0631\u0648\u06cc \u062f\u0628\u06cc\u0627\u0646\/\u0627\u0648\u0628\u0648\u0646\u062a\u0648: <code>sudo systemctl stop mysql<\/code><\/li>\n\n\n\n<li>MySQL \u0631\u0648\u06cc RHEL\/CentOS\/AlmaLinux\/Rocky: <code>sudo systemctl stop mysqld<\/code><\/li>\n\n\n\n<li>MariaDB: <code>sudo systemctl stop mariadb<\/code><\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">\u0633\u0631\u0648\u0631 \u0631\u0627 \u0628\u0627 \u0641\u0627\u06cc\u0644 init \u0634\u0631\u0648\u0639 \u06a9\u0646\u06cc\u062f (\u0627\u0632 \u062a\u0631\u0645\u06cc\u0646\u0627\u0644 \u0627\u062c\u0631\u0627 \u06a9\u0646\u06cc\u062f\u061b \u0646\u0647 \u0628\u0647\u200c\u0639\u0646\u0648\u0627\u0646 \u06a9\u0627\u0631 \u067e\u0633\u200c\u0632\u0645\u06cc\u0646\u0647 \u062a\u0627 \u0628\u0628\u06cc\u0646\u06cc\u062f \u06a9\u0650\u06cc init \u0631\u0627 \u062a\u0645\u0627\u0645 \u06a9\u0631\u062f\u0647):<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo -u mysql mysqld --init-file=\/tmp\/mysql-init-pwd.sql<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u0645\u0646\u062a\u0638\u0631 \u0628\u0645\u0627\u0646\u06cc\u062f \u0633\u0631\u0648\u0631 \u0634\u0631\u0648\u0639 \u0631\u0627 \u062a\u0645\u0627\u0645 \u06a9\u0646\u062f. \u0686\u0648\u0646 \u067e\u0631\u0648\u0633\u0647 \u062f\u0631 \u067e\u06cc\u0634\u200c\u0632\u0645\u06cc\u0646\u0647 \u0627\u062c\u0631\u0627 \u0645\u06cc\u200c\u0634\u0648\u062f\u060c \u062e\u0631\u0648\u062c\u06cc \u0645\u0633\u062a\u0642\u06cc\u0645 \u062f\u0631 \u062a\u0631\u0645\u06cc\u0646\u0627\u0644\u200c\u062a\u0627\u0646 \u0638\u0627\u0647\u0631 \u0645\u06cc\u200c\u0634\u0648\u062f. \u0628\u0647 \u062f\u0646\u0628\u0627\u0644 \u062e\u0637\u06cc \u0645\u062b\u0644 \u0627\u06cc\u0646 \u0628\u06af\u0631\u062f\u06cc\u062f:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;Note] mysqld: ready for connections.<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u0648\u0642\u062a\u06cc \u062f\u06cc\u062f\u06cc\u062f\u0634\u060c \u0633\u0631\u0648\u0631 \u0631\u0627 \u0628\u0627 \u062f\u0633\u062a\u0648\u0631 \u0645\u0646\u0627\u0633\u0628 \u062a\u0648\u0632\u06cc\u0639\u200c\u062a\u0627\u0646 \u062a\u0645\u06cc\u0632 \u0645\u062a\u0648\u0642\u0641 \u06a9\u0646\u06cc\u062f. \u062a\u0631\u0645\u06cc\u0646\u0627\u0644 \u062f\u0648\u0645\u06cc \u0628\u0627\u0632 \u06a9\u0646\u06cc\u062f \u062a\u0627 \u062f\u0633\u062a\u0648\u0631 \u062a\u0648\u0642\u0641 \u0631\u0627 \u0627\u062c\u0631\u0627 \u06a9\u0646\u06cc\u062f. \u062f\u0631 \u062a\u0631\u0645\u06cc\u0646\u0627\u0644\u06cc \u06a9\u0647 mysqld \u062f\u0631 \u062d\u0627\u0644 \u0627\u062c\u0631\u0627\u0633\u062a\u060c \u0627\u0632 Ctrl+C \u06cc\u0627 SIGINT \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0646\u06a9\u0646\u06cc\u062f.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>MySQL \u0631\u0648\u06cc \u062f\u0628\u06cc\u0627\u0646\/\u0627\u0648\u0628\u0648\u0646\u062a\u0648:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo systemctl stop mysql<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>MySQL \u0631\u0648\u06cc RHEL\/CentOS\/AlmaLinux\/Rocky:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo systemctl stop mysqld<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>MariaDB:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo systemctl stop mariadb<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u0627\u06af\u0631 systemctl \u0646\u062a\u0648\u0627\u0646\u062f \u067e\u0631\u0648\u0633\u0647 \u062f\u0633\u062a\u06cc-\u0634\u0631\u0648\u0639\u200c\u0634\u062f\u0647 \u0631\u0627 \u0645\u062a\u0648\u0642\u0641 \u06a9\u0646\u062f\u060c \u0627\u0632 <code>sudo mysqladmin -u root -p shutdown<\/code> \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u062f (\u0627\u0632 \u0634\u0645\u0627 \u0631\u0645\u0632 \u062c\u062f\u06cc\u062f\u06cc \u06a9\u0647 \u0647\u0645\u06cc\u0646 \u0627\u0644\u0627\u0646 \u062a\u0646\u0638\u06cc\u0645 \u06a9\u0631\u062f\u06cc\u062f \u067e\u0631\u0633\u06cc\u062f\u0647 \u0645\u06cc\u200c\u0634\u0648\u062f)\u061b \u06cc\u0627 \u0645\u0633\u062a\u0642\u06cc\u0645 SIGTERM \u0628\u0641\u0631\u0633\u062a\u06cc\u062f:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo kill $(cat \/var\/run\/mysqld\/mysqld.pid)<\/code><\/pre>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\"><strong>\u0646\u06a9\u062a\u0647:<\/strong> \u0686\u0648\u0646 \u0633\u0631\u0648\u0631 \u0647\u0646\u06af\u0627\u0645 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 <code>--init-file<\/code> \u0628\u0627 \u062c\u062f\u0648\u0644\u200c\u0647\u0627\u06cc Grant \u0628\u0627\u0631\u06af\u0630\u0627\u0631\u06cc\u200c\u0634\u062f\u0647 \u0634\u0631\u0648\u0639 \u0645\u06cc\u200c\u0634\u0648\u062f\u060c \u0644\u0627\u0632\u0645 \u0646\u06cc\u0633\u062a FLUSH PRIVILEGES \u0627\u062c\u0631\u0627 \u06a9\u0646\u06cc\u062f. \u062f\u0633\u062a\u0648\u0631 ALTER USER \u0641\u0648\u0631\u0627\u064b \u0627\u062b\u0631 \u0645\u06cc\u200c\u06af\u0630\u0627\u0631\u062f.<\/p>\n<\/blockquote>\n\n\n\n<p class=\"wp-block-paragraph\">\u0641\u0627\u06cc\u0644 init \u0631\u0627 \u062d\u0630\u0641 \u06a9\u0646\u06cc\u062f \u062a\u0627 \u0631\u0645\u0632 \u0631\u0648\u06cc \u062f\u06cc\u0633\u06a9 \u0628\u0627\u0642\u06cc \u0646\u0645\u0627\u0646\u062f:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo rm \/tmp\/mysql-init-pwd.sql<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u0633\u0631\u0648\u06cc\u0633 \u0631\u0627 \u0645\u0639\u0645\u0648\u0644 \u0634\u0631\u0648\u0639 \u0648 \u0648\u0631\u0648\u062f \u0631\u0627 \u062a\u0633\u062a \u06a9\u0646\u06cc\u062f.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>MySQL \u0631\u0648\u06cc \u062f\u0628\u06cc\u0627\u0646\/\u0627\u0648\u0628\u0648\u0646\u062a\u0648:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo systemctl start mysql<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>MySQL \u0631\u0648\u06cc RHEL\/CentOS\/AlmaLinux\/Rocky:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo systemctl start mysqld<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>MariaDB:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo systemctl start mariadb<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u0633\u067e\u0633 \u062a\u0623\u06cc\u06cc\u062f \u06a9\u0646\u06cc\u062f \u0631\u0645\u0632 \u062c\u062f\u06cc\u062f \u06a9\u0627\u0631 \u0645\u06cc\u200c\u06a9\u0646\u062f:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>mysql -u root -p<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">\u0639\u06cc\u0628\u200c\u06cc\u0627\u0628\u06cc \u062e\u0637\u0627\u0647\u0627\u06cc \u0631\u0627\u06cc\u062c<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">ERROR 1290 (HY000): The MySQL server is running with the &#8211;skip-grant-tables option<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u0627\u06cc\u0646 \u0648\u0642\u062a\u06cc \u0638\u0627\u0647\u0631 \u0645\u06cc\u200c\u0634\u0648\u062f \u06a9\u0647 ALTER USER (\u06cc\u0627 \u0633\u0627\u06cc\u0631 \u062f\u0633\u062a\u0648\u0631\u0627\u062a \u062a\u063a\u06cc\u06cc\u0631-\u062f\u0633\u062a\u0631\u0633\u06cc) \u0631\u0627 \u0642\u0628\u0644 \u0627\u0632 \u0631\u06cc\u0644\u0648\u062f \u062c\u062f\u0648\u0644\u200c\u0647\u0627\u06cc Grant \u0627\u062c\u0631\u0627 \u06a9\u0646\u06cc\u062f. \u0628\u0627 <code>--skip-grant-tables<\/code>\u060c \u0633\u0631\u0648\u0631 \u062a\u0627 \u0648\u0642\u062a\u06cc <code>FLUSH PRIVILEGES;<\/code> \u0631\u0627 \u0627\u062c\u0631\u0627 \u0646\u06a9\u0646\u06cc\u062f \u062a\u063a\u06cc\u06cc\u0631\u0627\u062a \u062f\u0633\u062a\u0631\u0633\u06cc \u0631\u0627 \u0627\u0639\u0645\u0627\u0644 \u0646\u0645\u06cc\u200c\u06a9\u0646\u062f. \u0627\u0648\u0644 <code>FLUSH PRIVILEGES;<\/code> \u0631\u0627 \u0627\u062c\u0631\u0627\u061b \u0633\u067e\u0633 ALTER USER (\u06cc\u0627 SET PASSWORD) \u062e\u0648\u062f \u0631\u0627 \u062f\u0648\u0628\u0627\u0631\u0647 \u0627\u062c\u0631\u0627 \u06a9\u0646\u06cc\u062f.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">ERROR 1524 (HY000): Plugin &#8216;unix_socket&#8217; is not loaded<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u0631\u0648\u06cc MariaDB\u060c root \u0627\u063a\u0644\u0628 \u0637\u0648\u0631\u06cc \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u0634\u062f\u0647 \u06a9\u0647 \u0627\u0632 \u0627\u062d\u0631\u0627\u0632 \u0647\u0648\u06cc\u062a unix_socket \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u062f. \u0627\u06af\u0631 \u067e\u0644\u0627\u06af\u06cc\u0646 socket \u0628\u0627\u0631\u06af\u0630\u0627\u0631\u06cc \u0646\u0634\u062f\u0647 \u06cc\u0627 \u0645\u0633\u0627\u0626\u0644 \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u0648\u062c\u0648\u062f \u062f\u0627\u0631\u062f\u060c \u0627\u06cc\u0646 \u062e\u0637\u0627 \u0631\u0627 \u0645\u06cc\u200c\u0628\u06cc\u0646\u06cc\u062f. \u0645\u0637\u0645\u0626\u0646 \u0634\u0648\u06cc\u062f \u0628\u0647\u200c\u0639\u0646\u0648\u0627\u0646 \u06a9\u0627\u0631\u0628\u0631 root \u0633\u06cc\u0633\u062a\u0645 (\u06cc\u0627 \u0647\u0645\u0627\u0646 \u06a9\u0627\u0631\u0628\u0631 OS \u0627\u06cc \u06a9\u0647 \u0645\u0627\u0644\u06a9 socket \u0627\u0633\u062a) \u0648\u0635\u0644 \u0645\u06cc\u200c\u0634\u0648\u06cc\u062f. \u0628\u0631\u0627\u06cc \u062a\u063a\u06cc\u06cc\u0631 \u0628\u0647 \u0627\u062d\u0631\u0627\u0632 \u0647\u0648\u06cc\u062a \u0645\u0628\u062a\u0646\u06cc \u0628\u0631 \u0631\u0645\u0632\u060c \u0645\u062b\u0644 \u06af\u0627\u0645 \u06f4 \u0627\u0632 <code>ALTER USER 'root'@'localhost' IDENTIFIED VIA mysql_native_password USING PASSWORD('...');<\/code> \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u062f.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">mysqld_safe: command not found<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u0631\u0648\u06cc MySQL 8.0+\u060c \u0628\u0633\u06cc\u0627\u0631\u06cc \u0627\u0632 \u067e\u06a9\u06cc\u062c\u200c\u0647\u0627 \u062f\u06cc\u06af\u0631 mysqld_safe \u0631\u0627 \u0639\u0631\u0636\u0647 \u0646\u0645\u06cc\u200c\u06a9\u0646\u0646\u062f. \u0628\u0647\u200c\u062c\u0627\u06cc\u0634 \u0627\u0632 <code>sudo -u mysql mysqld --skip-grant-tables --skip-networking &amp;<\/code> \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u062f\u061b \u06cc\u0627 \u0627\u0632 \u0631\u0648\u0634 <code>--init-file<\/code>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Access denied for user &#8216;root&#8217;@&#8217;localhost&#8217; \u0628\u0639\u062f \u0627\u0632 \u0631\u06cc\u0633\u062a<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u0627\u06cc\u0646 \u0645\u0639\u0645\u0648\u0644\u0627\u064b \u0639\u062f\u0645 \u062a\u0637\u0627\u0628\u0642 \u067e\u0644\u0627\u06af\u06cc\u0646 \u0627\u062d\u0631\u0627\u0632 \u0647\u0648\u06cc\u062a \u0627\u0633\u062a. \u0645\u062b\u0644\u0627\u064b\u060c \u06a9\u0644\u0627\u06cc\u0646\u062a \u06cc\u0627 \u0633\u0631\u0648\u06cc\u0633 \u062f\u06cc\u06af\u0631\u06cc mysql_native_password \u0627\u0646\u062a\u0638\u0627\u0631 \u062f\u0627\u0631\u062f \u0627\u0645\u0627 \u0633\u0631\u0648\u0631 \u0627\u0644\u0627\u0646 \u0628\u0631\u0627\u06cc root \u0627\u0632 caching_sha2_password \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc\u200c\u06a9\u0646\u062f.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u0627\u06af\u0631 \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u06cc\u062f \u0648\u0627\u0631\u062f \u0634\u0648\u06cc\u062f\u060c \u067e\u0644\u0627\u06af\u06cc\u0646 \u0631\u0627 \u0645\u0633\u062a\u0642\u06cc\u0645 \u0686\u06a9 \u06a9\u0646\u06cc\u062f:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>mysql -u root -p -e \"SELECT user, host, plugin FROM mysql.user WHERE user='root';\"<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u0627\u06af\u0631 \u0627\u0635\u0644\u0627\u064b \u0646\u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u06cc\u062f \u0648\u0627\u0631\u062f \u0634\u0648\u06cc\u062f\u060c \u0628\u0631\u0627\u06cc \u062a\u0634\u062e\u06cc\u0635 \u0628\u062f\u0648\u0646 \u0631\u0645\u0632 \u0628\u0647 \u0646\u0634\u0633\u062a skip-grant-tables \u0628\u0631\u06af\u0631\u062f\u06cc\u062f. \u0633\u0631\u0648\u06cc\u0633 \u0631\u0627 \u0645\u062a\u0648\u0642\u0641\u060c \u0645\u062b\u0644 \u06af\u0627\u0645 \u06f3 \u0628\u0627 <code>--skip-grant-tables --skip-networking<\/code> \u0631\u06cc\u200c\u0627\u0633\u062a\u0627\u0631\u062a\u060c \u0628\u0627 <code>mysql -u root<\/code> \u0648\u0635\u0644 \u0634\u0648\u06cc\u062f\u061b \u0633\u067e\u0633 \u0627\u062c\u0631\u0627 \u06a9\u0646\u06cc\u062f:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>SELECT user, host, plugin FROM mysql.user WHERE user='root';<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u0648\u0642\u062a\u06cc \u067e\u0644\u0627\u06af\u06cc\u0646 \u0631\u0627 \u062f\u0627\u0646\u0633\u062a\u06cc\u062f\u060c \u062f\u0633\u062a\u0648\u0631 ALTER USER \u062f\u0631\u0633\u062a \u0631\u0627 \u0627\u0632 \u06af\u0627\u0645 \u06f4 \u0627\u062c\u0631\u0627 \u06a9\u0646\u06cc\u062f \u062a\u0627 \u0647\u0645 \u0631\u0645\u0632 \u0648 \u0647\u0645 \u067e\u0644\u0627\u06af\u06cc\u0646\u06cc \u06a9\u0647 \u06a9\u0644\u0627\u06cc\u0646\u062a\u200c\u062a\u0627\u0646 \u0627\u0646\u062a\u0638\u0627\u0631 \u062f\u0627\u0631\u062f \u062a\u0646\u0638\u06cc\u0645 \u0634\u0648\u062f\u061b \u0633\u067e\u0633 \u0633\u0631\u0648\u06cc\u0633 \u0631\u0627 \u0645\u0639\u0645\u0648\u0644 \u0631\u06cc\u200c\u0627\u0633\u062a\u0627\u0631\u062a \u06a9\u0646\u06cc\u062f.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u0633\u0648\u0627\u0644\u0627\u062a \u0645\u062a\u062f\u0627\u0648\u0644<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u0633: \u0686\u0637\u0648\u0631 \u0631\u0645\u0632 root \u0645\u0631\u0628\u0648\u0637 \u0628\u0647 MySQL \u0631\u0627 \u0628\u062f\u0648\u0646 \u0631\u0645\u0632 \u0642\u062f\u06cc\u0645\u06cc \u0631\u06cc\u0633\u062a \u06a9\u0646\u0645\u061f<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u062c: \u0633\u0631\u0648\u06cc\u0633 MySQL \u0631\u0627 \u0645\u062a\u0648\u0642\u0641\u060c \u0628\u0627 <code>--skip-grant-tables<\/code> \u0648 <code>--skip-networking<\/code> \u0631\u06cc\u200c\u0627\u0633\u062a\u0627\u0631\u062a\u060c \u0628\u062f\u0648\u0646 \u0631\u0645\u0632 \u0628\u0647\u200c\u0639\u0646\u0648\u0627\u0646 root \u0648\u0635\u0644\u060c <code>FLUSH PRIVILEGES<\/code> \u0631\u0627 \u0627\u062c\u0631\u0627\u061b \u0633\u067e\u0633 \u0627\u0632 ALTER USER \u0628\u0631\u0627\u06cc \u062a\u0646\u0638\u06cc\u0645 \u0631\u0645\u0632 \u062c\u062f\u06cc\u062f \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u062f. \u0645\u0631\u0627\u062d\u0644 \u06a9\u0627\u0645\u0644 \u062f\u0631 \u0627\u06cc\u0646 \u0622\u0645\u0648\u0632\u0634 \u0627\u0633\u062a.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u0633: \u062a\u0641\u0627\u0648\u062a \u0631\u06cc\u0633\u062a \u0631\u0645\u0632 root \u062f\u0631 MySQL \u0648 MariaDB \u0686\u06cc\u0633\u062a\u061f<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u062c: \u0633\u06cc\u0646\u062a\u06a9\u0633 SQL \u0628\u0631\u0627\u06cc \u0646\u0633\u062e\u0647\u200c\u0647\u0627\u06cc \u0627\u062e\u06cc\u0631 \u062a\u0642\u0631\u06cc\u0628\u0627\u064b \u06cc\u06a9\u0633\u0627\u0646 \u0627\u0633\u062a\u061b \u0627\u0645\u0627 MariaDB 10.4+ \u0628\u0647\u200c\u0637\u0648\u0631 \u067e\u06cc\u0634\u200c\u0641\u0631\u0636 \u0627\u0632 \u0627\u062d\u0631\u0627\u0632 \u0647\u0648\u06cc\u062a unix_socket \u0628\u0631\u0627\u06cc root \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc\u200c\u06a9\u0646\u062f\u061b \u06cc\u0639\u0646\u06cc \u0645\u0645\u06a9\u0646 \u0627\u0633\u062a \u0627\u0635\u0644\u0627\u064b \u0628\u0631\u0627\u06cc \u0648\u0631\u0648\u062f \u0645\u062d\u0644\u06cc root \u0631\u0645\u0632\u06cc \u0644\u0627\u0632\u0645 \u0646\u0628\u0627\u0634\u062f. \u0627\u06af\u0631 \u0627\u062d\u0631\u0627\u0632 \u0647\u0648\u06cc\u062a \u0645\u0628\u062a\u0646\u06cc \u0628\u0631 \u0631\u0645\u0632 \u0644\u0627\u0632\u0645 \u062f\u0627\u0631\u06cc\u062f\u060c \u0628\u0627\u06cc\u062f \u0635\u0631\u06cc\u062d\u0627\u064b \u067e\u0644\u0627\u06af\u06cc\u0646 \u0627\u062d\u0631\u0627\u0632 \u0647\u0648\u06cc\u062a \u0631\u0627 \u062a\u063a\u06cc\u06cc\u0631 \u062f\u0647\u06cc\u062f.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u0633: \u0686\u0631\u0627 ALTER USER \u0628\u0639\u062f \u0627\u0632 skip-grant-tables \u0634\u06a9\u0633\u062a \u0645\u06cc\u200c\u062e\u0648\u0631\u062f\u061f<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u062c: \u0648\u0642\u062a\u06cc MySQL \u06cc\u0627 MariaDB \u0628\u0627 <code>--skip-grant-tables<\/code> \u0634\u0631\u0648\u0639 \u0645\u06cc\u200c\u0634\u0648\u062f\u060c \u062a\u0648\u0627\u0628\u0639 SQL\u0650 \u0645\u0631\u062a\u0628\u0637-\u0628\u0627-\u062f\u0633\u062a\u0631\u0633\u06cc \u063a\u06cc\u0631\u0641\u0639\u0627\u0644\u200c\u0627\u0646\u062f. \u0628\u0627\u06cc\u062f \u0627\u0648\u0644 <code>FLUSH PRIVILEGES<\/code> \u0631\u0627 \u0627\u062c\u0631\u0627 \u06a9\u0646\u06cc\u062f \u062a\u0627 \u062c\u062f\u0648\u0644\u200c\u0647\u0627\u06cc Grant \u0642\u0628\u0644 \u0627\u0632 \u0627\u062c\u0631\u0627\u06cc \u0645\u0648\u0641\u0642 ALTER USER \u0631\u06cc\u0644\u0648\u062f \u0634\u0648\u0646\u062f.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u0633: \u0622\u06cc\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 &#8211;skip-grant-tables \u0627\u0645\u0646 \u0627\u0633\u062a\u061f<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u062c: \u0641\u0642\u0637 \u062f\u0631 \u0645\u062d\u06cc\u0637 \u06a9\u0646\u062a\u0631\u0644\u200c\u0634\u062f\u0647. \u06af\u0632\u06cc\u0646\u0647 <code>--skip-grant-tables<\/code> \u0647\u0645\u0647 \u0627\u062d\u0631\u0627\u0632 \u0647\u0648\u06cc\u062a \u0631\u0627 \u063a\u06cc\u0631\u0641\u0639\u0627\u0644 \u0645\u06cc\u200c\u06a9\u0646\u062f \u0648 \u0628\u062f\u0648\u0646 <code>--skip-networking<\/code>\u060c \u062f\u06cc\u062a\u0627\u0628\u06cc\u0633 \u0631\u0627 \u0628\u0631\u0627\u06cc \u0647\u0631 \u06a9\u0644\u0627\u06cc\u0646\u062a \u0634\u0628\u06a9\u0647\u200c\u0627\u06cc \u0627\u0641\u0634\u0627 \u0645\u06cc\u200c\u06a9\u0646\u062f. \u0647\u0645\u06cc\u0634\u0647 \u0622\u0646 \u0631\u0627 \u0628\u0627 <code>--skip-networking<\/code> \u062c\u0641\u062a \u06a9\u0646\u06cc\u062f \u0648 \u0631\u06cc\u0633\u062a \u0631\u0627 \u062a\u0627 \u062c\u0627\u06cc \u0645\u0645\u06a9\u0646 \u0633\u0631\u06cc\u0639 \u0627\u0646\u062c\u0627\u0645 \u062f\u0647\u06cc\u062f. \u0628\u0631\u0627\u06cc \u0633\u0631\u0648\u0631\u0647\u0627\u06cc \u067e\u0631\u0648\u062f\u0627\u06a9\u0634\u0646\u060c \u0631\u0648\u0634 <code>--init-file<\/code> \u0627\u0645\u0646\u200c\u062a\u0631 \u0627\u0633\u062a.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u0633: \u0686\u0637\u0648\u0631 \u0631\u0645\u0632 root \u0645\u0631\u0628\u0648\u0637 \u0628\u0647 MySQL \u0631\u0627 \u0631\u0648\u06cc \u0627\u0648\u0628\u0648\u0646\u062a\u0648 \u0631\u06cc\u0633\u062a \u06a9\u0646\u0645\u061f<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u062c: \u0631\u0648\u06cc \u0627\u0648\u0628\u0648\u0646\u062a\u0648\u060c \u0646\u0627\u0645 \u0633\u0631\u0648\u06cc\u0633 MySQL <code>mysql<\/code> \u0627\u0633\u062a. \u0628\u0627 <code>sudo systemctl stop mysql<\/code> \u0645\u062a\u0648\u0642\u0641\u0634 \u06a9\u0646\u06cc\u062f\u060c \u0645\u0631\u0627\u062d\u0644 skip-grant-tables \u0631\u0627 \u062f\u0631 \u0627\u06cc\u0646 \u0622\u0645\u0648\u0632\u0634 \u062f\u0646\u0628\u0627\u0644 \u06a9\u0646\u06cc\u062f\u061b \u0633\u067e\u0633 \u0628\u0627 <code>sudo systemctl start mysql<\/code> \u0631\u06cc\u200c\u0627\u0633\u062a\u0627\u0631\u062a\u0634 \u06a9\u0646\u06cc\u062f.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u062f\u0631\u0628\u0627\u0631\u0647 \u0646\u0648\u06cc\u0633\u0646\u062f\u0647<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u0627\u06cc\u0646 \u0622\u0645\u0648\u0632\u0634 \u062a\u0648\u0633\u0637 \u0646\u0648\u06cc\u0633\u0646\u062f\u0647 \u0641\u0646\u06cc \u0628\u0627 \u062a\u062c\u0631\u0628\u0647 \u0639\u0645\u0644\u06cc \u062f\u0631 \u0645\u062f\u06cc\u0631\u06cc\u062a MySQL \u0648 MariaDB \u0631\u0648\u06cc \u0633\u06cc\u0633\u062a\u0645\u200c\u0647\u0627\u06cc \u067e\u0631\u0648\u062f\u0627\u06a9\u0634\u0646 \u0644\u06cc\u0646\u0648\u06a9\u0633\u06cc\u2014\u0634\u0627\u0645\u0644 \u0645\u0647\u0627\u062c\u0631\u062a\u200c\u0647\u0627\u06cc \u0646\u0633\u062e\u0647\u060c \u062a\u063a\u06cc\u06cc\u0631\u0627\u062a \u067e\u0644\u0627\u06af\u06cc\u0646 \u0627\u062d\u0631\u0627\u0632 \u0647\u0648\u06cc\u062a \u0648 \u0639\u0645\u0644\u06cc\u0627\u062a \u0628\u0627\u0632\u06cc\u0627\u0628\u06cc \u062f\u06cc\u062a\u0627\u0628\u06cc\u0633\u2014\u0646\u0648\u0634\u062a\u0647 \u0648 \u0627\u0639\u062a\u0628\u0627\u0631\u0633\u0646\u062c\u06cc \u0634\u062f\u0647 \u0627\u0633\u062a. \u0628\u0631\u0627\u06cc \u0645\u0646\u0639\u06a9\u0633 \u06a9\u0631\u062f\u0646 \u0631\u0641\u062a\u0627\u0631 \u0641\u0639\u0644\u06cc \u062f\u0631 MySQL 8.0+ \u0648 MariaDB 10.4+ \u0645\u0631\u0648\u0631 \u0648 \u0628\u0647\u200c\u0631\u0648\u0632 \u0634\u062f\u0647 \u0627\u0633\u062a.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u0646\u062a\u06cc\u062c\u0647\u200c\u06af\u06cc\u0631\u06cc<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u0628\u0639\u062f \u0627\u0632 \u0631\u06cc\u0633\u062a \u06a9\u0631\u062f\u0646 \u0631\u0645\u0632 root\u060c \u0648\u0631\u0648\u062f \u0631\u0627 \u0628\u0627 <code>mysql -u root -p<\/code> \u062a\u0623\u06cc\u06cc\u062f \u06a9\u0646\u06cc\u062f.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0645\u0642\u062f\u0645\u0647 \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u06cc\u062f \u0631\u0645\u0632 \u0639\u0628\u0648\u0631 root \u0645\u0631\u0628\u0648\u0637 \u0628\u0647 MySQL \u06cc\u0627 MariaDB \u0631\u0627 \u0628\u062f\u0648\u0646 \u0631\u0645\u0632 \u0642\u062f\u06cc\u0645\u06cc \u0631\u06cc\u0633\u062a \u06a9\u0646\u06cc\u062f\u061b \u062a\u0627 \u0648\u0642\u062a\u06cc \u06a9\u0647 \u0628\u0647 \u0633\u0631\u0648\u0631 \u0648 \u06a9\u0627\u0631\u0628\u0631 \u062f\u0627\u0631\u0627\u06cc sudo \u062f\u0633\u062a\u0631\u0633\u06cc \u062f\u0627\u0631\u06cc\u062f. \u0627\u06cc\u0646 \u0622\u0645\u0648\u0632\u0634 \u0646\u0634\u0627\u0646 \u0645\u06cc\u200c\u062f\u0647\u062f \u0686\u0637\u0648\u0631 \u0628\u0627 \u062f\u0648 \u0631\u0648\u0634 root \u0631\u0627 \u0628\u0627\u0632\u06cc\u0627\u0628\u06cc \u06a9\u0646\u06cc\u062f: \u0634\u0631\u0648\u0639 \u0633\u0631\u0648\u0631 \u0628\u0627 &#8211;skip-grant-tables (\u0648 \u0627\u062e\u062a\u06cc\u0627\u0631\u06cc &#8211;skip-networking)\u061b \u06cc\u0627 \u0631\u0648\u06cc\u06a9\u0631\u062f \u0627\u0645\u0646\u200c\u062a\u0631 \u06cc\u0639\u0646\u06cc &#8211;init-file. \u0628\u0631\u0627\u06cc MySQL 5.7+\u060c MySQL &hellip;<\/p>\n","protected":false},"author":9,"featured_media":7022,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[376],"tags":[],"class_list":["post-7021","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-376"],"_links":{"self":[{"href":"https:\/\/parmin.cloud\/blog\/wp-json\/wp\/v2\/posts\/7021","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/parmin.cloud\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/parmin.cloud\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/parmin.cloud\/blog\/wp-json\/wp\/v2\/users\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/parmin.cloud\/blog\/wp-json\/wp\/v2\/comments?post=7021"}],"version-history":[{"count":1,"href":"https:\/\/parmin.cloud\/blog\/wp-json\/wp\/v2\/posts\/7021\/revisions"}],"predecessor-version":[{"id":7023,"href":"https:\/\/parmin.cloud\/blog\/wp-json\/wp\/v2\/posts\/7021\/revisions\/7023"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/parmin.cloud\/blog\/wp-json\/wp\/v2\/media\/7022"}],"wp:attachment":[{"href":"https:\/\/parmin.cloud\/blog\/wp-json\/wp\/v2\/media?parent=7021"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/parmin.cloud\/blog\/wp-json\/wp\/v2\/categories?post=7021"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/parmin.cloud\/blog\/wp-json\/wp\/v2\/tags?post=7021"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}