{"id":15847,"date":"2024-07-06T20:32:58","date_gmt":"2024-07-06T17:02:58","guid":{"rendered":"https:\/\/www.itpiran.net\/blog\/?p=15847"},"modified":"2024-07-06T20:32:58","modified_gmt":"2024-07-06T17:02:58","slug":"how-to-set-up-a-remote-database-to-optimize-site-performance-with-mysql-on-ubuntu-18-04","status":"publish","type":"post","link":"https:\/\/www.itpiran.net\/blog\/zh\/tutorials\/how-to-set-up-a-remote-database-to-optimize-site-performance-with-mysql-on-ubuntu-18-04\/","title":{"rendered":"\u5982\u4f55\u5728 Ubuntu 18.04 \u4e0a\u4f7f\u7528 MySQL \u8bbe\u7f6e\u8fdc\u7a0b\u6570\u636e\u5e93\u4ee5\u4f18\u5316\u7f51\u7ad9\u6027\u80fd"},"content":{"rendered":"<h2 id=\"%d9%85%d9%82%d8%af%d9%85%d9%87\">\u0645\u0642\u062f\u0645\u0647<\/h2>\n<p>\u0647\u0645\u0627\u0646\u0637\u0648\u0631 \u06a9\u0647 \u0628\u0631\u0646\u0627\u0645\u0647 \u06cc\u0627 \u0648\u0628 \u0633\u0627\u06cc\u062a \u0634\u0645\u0627 \u0631\u0634\u062f \u0645\u06cc \u06a9\u0646\u062f\u060c \u0645\u0645\u06a9\u0646 \u0627\u0633\u062a \u0628\u0647 \u0646\u0642\u0637\u0647 \u0627\u06cc \u0628\u0631\u0633\u062f \u06a9\u0647 \u0627\u0632 \u062a\u0646\u0638\u06cc\u0645\u0627\u062a \u0633\u0631\u0648\u0631 \u0641\u0639\u0644\u06cc \u062e\u0648\u062f \u067e\u06cc\u0634\u06cc \u0628\u06af\u06cc\u0631\u06cc\u062f. \u0627\u06af\u0631 \u0633\u0631\u0648\u0631 \u0648\u0628 \u0648 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 \u062e\u0648\u062f \u0631\u0627 \u0631\u0648\u06cc \u06cc\u06a9 \u062f\u0633\u062a\u06af\u0627\u0647 \u0645\u06cc\u0632\u0628\u0627\u0646\u06cc \u0645\u06cc \u06a9\u0646\u06cc\u062f\u060c \u0645\u0645\u06a9\u0646 \u0627\u0633\u062a \u0627\u06cc\u062f\u0647 \u062e\u0648\u0628\u06cc \u0628\u0627\u0634\u062f \u06a9\u0647 \u0627\u06cc\u0646 \u062f\u0648 \u0639\u0645\u0644\u06a9\u0631\u062f \u0631\u0627 \u0627\u0632 \u0647\u0645 \u062c\u062f\u0627 \u06a9\u0646\u06cc\u062f \u062a\u0627 \u0647\u0631 \u06a9\u062f\u0627\u0645 \u0628\u062a\u0648\u0627\u0646\u0646\u062f \u0628\u0631 \u0631\u0648\u06cc \u0633\u062e\u062a \u0627\u0641\u0632\u0627\u0631 \u062e\u0648\u062f \u06a9\u0627\u0631 \u06a9\u0646\u0646\u062f \u0648 \u0628\u0627\u0631 \u067e\u0627\u0633\u062e\u06af\u0648\u06cc\u06cc \u0628\u0647 \u062f\u0631\u062e\u0648\u0627\u0633\u062a \u0647\u0627\u06cc \u0628\u0627\u0632\u062f\u06cc\u062f\u06a9\u0646\u0646\u062f\u06af\u0627\u0646 \u0634\u0645\u0627 \u0631\u0627 \u0628\u0647 \u0627\u0634\u062a\u0631\u0627\u06a9 \u0628\u06af\u0630\u0627\u0631\u0646\u062f.<\/p>\n<p>\u062f\u0631 \u0627\u06cc\u0646 \u0631\u0627\u0647\u0646\u0645\u0627\u060c \u0646\u062d\u0648\u0647 \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u06cc\u06a9 \u0633\u0631\u0648\u0631 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 MySQL \u0627\u0632 \u0631\u0627\u0647 \u062f\u0648\u0631 \u06a9\u0647 \u0628\u0631\u0646\u0627\u0645\u0647 \u0648\u0628 \u0634\u0645\u0627 \u0645\u06cc \u062a\u0648\u0627\u0646\u062f \u0628\u0647 \u0622\u0646 \u0645\u062a\u0635\u0644 \u0634\u0648\u062f \u0631\u0627 \u0628\u0631\u0631\u0633\u06cc \u062e\u0648\u0627\u0647\u06cc\u0645 \u06a9\u0631\u062f. \u0645\u0627 \u0627\u0632 \u0648\u0631\u062f\u067e\u0631\u0633 \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 \u0645\u062b\u0627\u0644 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc \u06a9\u0646\u06cc\u0645 \u062a\u0627 \u0628\u062a\u0648\u0627\u0646\u06cc\u0645 \u0628\u0627 \u0622\u0646 \u06a9\u0627\u0631 \u06a9\u0646\u06cc\u0645\u060c \u0627\u0645\u0627 \u0627\u06cc\u0646 \u062a\u06a9\u0646\u06cc\u06a9 \u0628\u0647 \u0637\u0648\u0631 \u06af\u0633\u062a\u0631\u062f\u0647 \u0628\u0631\u0627\u06cc \u0647\u0631 \u0628\u0631\u0646\u0627\u0645\u0647 \u0627\u06cc \u06a9\u0647 \u062a\u0648\u0633\u0637 MySQL \u067e\u0634\u062a\u06cc\u0628\u0627\u0646\u06cc \u0645\u06cc \u0634\u0648\u062f \u0642\u0627\u0628\u0644 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0633\u062a.<\/p>\n<h5 id=\"%d9%be%db%8c%d8%b4-%d9%86%db%8c%d8%a7%d8%b2%d9%87%d8%a7\">\u067e\u06cc\u0634 \u0646\u06cc\u0627\u0632\u0647\u0627<\/h5>\n<ul>\n<li>\u062f\u0648 \u0633\u0631\u0648\u0631 \u0627\u0648\u0628\u0648\u0646\u062a\u0648 18.04. \u0647\u0645\u0627\u0646\u0637\u0648\u0631 \u06a9\u0647 \u062f\u0631 \u0622\u0645\u0648\u0632\u0634 Initial Server Setup with Ubuntu 18.04 \u062a\u0648\u0636\u06cc\u062d \u062f\u0627\u062f\u0647 \u0634\u062f\u060c \u0647\u0631 \u06a9\u062f\u0627\u0645 \u0628\u0627\u06cc\u062f \u06cc\u06a9 \u06a9\u0627\u0631\u0628\u0631 \u063a\u06cc\u0631 \u0631\u06cc\u0634\u0647 \u0628\u0627 \u0627\u0645\u062a\u06cc\u0627\u0632\u0627\u062a sudo \u0648 \u0641\u0627\u06cc\u0631\u0648\u0627\u0644 UFW \u0641\u0639\u0627\u0644 \u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u0646\u062f. \u06cc\u06a9\u06cc \u0627\u0632 \u0627\u06cc\u0646 \u0633\u0631\u0648\u0631\u0647\u0627 \u0645\u06cc\u0632\u0628\u0627\u0646 \u0628\u0627\u0637\u0646 MySQL \u0634\u0645\u0627 \u062e\u0648\u0627\u0647\u062f \u0628\u0648\u062f \u0648 \u062f\u0631 \u0633\u0631\u0627\u0633\u0631 \u0627\u06cc\u0646 \u0631\u0627\u0647\u0646\u0645\u0627 \u0628\u0647 \u0622\u0646 \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 \u0633\u0631\u0648\u0631 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 \u0627\u0634\u0627\u0631\u0647 \u062e\u0648\u0627\u0647\u06cc\u0645 \u06a9\u0631\u062f. \u062f\u06cc\u06af\u0631\u06cc \u0627\u0632 \u0631\u0627\u0647 \u062f\u0648\u0631 \u0628\u0647 \u0633\u0631\u0648\u0631 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 \u0634\u0645\u0627 \u0645\u062a\u0635\u0644 \u0645\u06cc \u0634\u0648\u062f \u0648 \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 \u0648\u0628 \u0633\u0631\u0648\u0631 \u0634\u0645\u0627 \u0639\u0645\u0644 \u0645\u06cc \u06a9\u0646\u062f. \u0628\u0647 \u0647\u0645\u06cc\u0646 \u062a\u0631\u062a\u06cc\u0628\u060c \u062f\u0631 \u0637\u0648\u0644 \u0627\u06cc\u0646 \u0631\u0627\u0647\u0646\u0645\u0627 \u0628\u0647 \u0622\u0646 \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 \u0648\u0628 \u0633\u0631\u0648\u0631 \u0627\u0634\u0627\u0631\u0647 \u062e\u0648\u0627\u0647\u06cc\u0645 \u06a9\u0631\u062f.<\/li>\n<li>Nginx \u0648 PHP \u0631\u0648\u06cc \u0648\u0628 \u0633\u0631\u0648\u0631 \u0634\u0645\u0627 \u0646\u0635\u0628 \u0634\u062f\u0647 \u0627\u0633\u062a. \u0622\u0645\u0648\u0632\u0634 \u0645\u0627 \u0646\u062d\u0648\u0647 \u0646\u0635\u0628 \u0644\u06cc\u0646\u0648\u06a9\u0633\u060c Nginx\u060c MySQL\u060c PHP (\u067e\u0634\u062a\u0647 LEMP) \u062f\u0631 \u0627\u0648\u0628\u0648\u0646\u062a\u0648 18.04 \u0634\u0645\u0627 \u0631\u0627 \u062f\u0631 \u0627\u06cc\u0646 \u0641\u0631\u0622\u06cc\u0646\u062f \u0631\u0627\u0647\u0646\u0645\u0627\u06cc\u06cc \u0645\u06cc \u06a9\u0646\u062f\u060c \u0627\u0645\u0627 \u062a\u0648\u062c\u0647 \u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u06cc\u062f \u06a9\u0647 \u0628\u0627\u06cc\u062f \u0645\u0631\u062d\u0644\u0647 2 \u0627\u06cc\u0646 \u0622\u0645\u0648\u0632\u0634 \u0631\u0627 \u06a9\u0647 \u0628\u0631 \u0646\u0635\u0628 MySQL \u062a\u0645\u0631\u06a9\u0632 \u062f\u0627\u0631\u062f\u060c \u0646\u0627\u062f\u06cc\u062f\u0647 \u0628\u06af\u06cc\u0631\u06cc\u062f\u060c \u0632\u06cc\u0631\u0627 MySQL \u0631\u0627 \u0628\u0631 \u0631\u0648\u06cc \u0622\u0646 \u0646\u0635\u0628 \u062e\u0648\u0627\u0647\u06cc\u062f \u06a9\u0631\u062f. \u0633\u0631\u0648\u0631 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 \u0634\u0645\u0627<\/li>\n<li>MySQL \u0631\u0648\u06cc \u0633\u0631\u0648\u0631 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 \u0634\u0645\u0627 \u0646\u0635\u0628 \u0634\u062f\u0647 \u0627\u0633\u062a. \u0646\u062d\u0648\u0647 \u0646\u0635\u0628 MySQL \u062f\u0631 \u0627\u0648\u0628\u0648\u0646\u062a\u0648 18.04 \u0631\u0627 \u0628\u0631\u0627\u06cc \u062a\u0646\u0638\u06cc\u0645 \u0622\u0646 \u062f\u0646\u0628\u0627\u0644 \u06a9\u0646\u06cc\u062f.<\/li>\n<li>\u0628\u0647 \u0635\u0648\u0631\u062a \u0627\u062e\u062a\u06cc\u0627\u0631\u06cc (\u0627\u0645\u0627 \u0628\u0647 \u0634\u062f\u062a \u062a\u0648\u0635\u06cc\u0647 \u0645\u06cc \u0634\u0648\u062f)\u060c \u06af\u0648\u0627\u0647\u06cc \u0647\u0627\u06cc TLS\/SSL \u0627\u0632 Let\u2019s Encrypt \u0631\u0648\u06cc \u0633\u0631\u0648\u0631 \u0648\u0628 \u0634\u0645\u0627 \u0646\u0635\u0628 \u0634\u062f\u0647 \u0627\u0633\u062a. \u0634\u0645\u0627 \u0628\u0627\u06cc\u062f \u06cc\u06a9 \u0646\u0627\u0645 \u062f\u0627\u0645\u0646\u0647 \u0628\u062e\u0631\u06cc\u062f \u0648 \u0633\u0648\u0627\u0628\u0642 DNS \u0631\u0627 \u0628\u0631\u0627\u06cc \u0633\u0631\u0648\u0631 \u062e\u0648\u062f \u062a\u0646\u0638\u06cc\u0645 \u06a9\u0646\u06cc\u062f\u060c \u0627\u0645\u0627 \u062e\u0648\u062f \u06af\u0648\u0627\u0647\u06cc \u0647\u0627 \u0631\u0627\u06cc\u06af\u0627\u0646 \u0647\u0633\u062a\u0646\u062f. \u0631\u0627\u0647\u0646\u0645\u0627\u06cc \u0645\u0627 \u0646\u062d\u0648\u0647 \u0627\u06cc\u0645\u0646 \u06a9\u0631\u062f\u0646 Nginx \u0628\u0627 Let\u2019s Encrypt \u062f\u0631 \u0627\u0648\u0628\u0648\u0646\u062a\u0648 18.04 \u0628\u0647 \u0634\u0645\u0627 \u0646\u0634\u0627\u0646 \u0645\u06cc \u062f\u0647\u062f \u06a9\u0647 \u0686\u06af\u0648\u0646\u0647 \u0627\u06cc\u0646 \u06af\u0648\u0627\u0647\u06cc \u0647\u0627 \u0631\u0627 \u062f\u0631\u06cc\u0627\u0641\u062a \u06a9\u0646\u06cc\u062f.<\/li>\n<\/ul>\n<h2 id=\"%d9%85%d8%b1%d8%ad%d9%84%d9%87-1-%d9%be%db%8c%da%a9%d8%b1%d8%a8%d9%86%d8%af%db%8c-mysql-%d8%a8%d8%b1%d8%a7%db%8c-%da%af%d9%88%d8%b4-%d8%af%d8%a7%d8%af%d9%86-%d8%a8%d9%87-%d8%a7%d8%aa%d8%b5\">\u0645\u0631\u062d\u0644\u0647 1 &#8211; \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc MySQL \u0628\u0631\u0627\u06cc \u06af\u0648\u0634 \u062f\u0627\u062f\u0646 \u0628\u0647 \u0627\u062a\u0635\u0627\u0644\u0627\u062a \u0627\u0632 \u0631\u0627\u0647 \u062f\u0648\u0631<\/h2>\n<p>\u067e\u0633 \u0627\u0632 \u0631\u0633\u06cc\u062f\u0646 \u0628\u0647 \u0633\u0642\u0641 \u0639\u0645\u0644\u06a9\u0631\u062f \u06cc\u06a9 \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u06cc\u06a9 \u0645\u0627\u0634\u06cc\u0646\u060c \u0630\u062e\u06cc\u0631\u0647 \u062f\u0627\u062f\u0647\u200c\u0647\u0627\u06cc \u0634\u062e\u0635 \u062f\u0631 \u06cc\u06a9 \u0633\u0631\u0648\u0631 \u062c\u062f\u0627\u06af\u0627\u0646\u0647\u060c \u0631\u0627\u0647 \u062e\u0648\u0628\u06cc \u0628\u0631\u0627\u06cc \u06af\u0633\u062a\u0631\u0634 \u062f\u0644\u067e\u0630\u06cc\u0631 \u0627\u0633\u062a. \u0647\u0645\u0686\u0646\u06cc\u0646 \u0633\u0627\u062e\u062a\u0627\u0631 \u0627\u0633\u0627\u0633\u06cc \u0644\u0627\u0632\u0645 \u0628\u0631\u0627\u06cc \u062a\u0639\u0627\u062f\u0644 \u0628\u0627\u0631 \u0648 \u06af\u0633\u062a\u0631\u0634 \u0632\u06cc\u0631\u0633\u0627\u062e\u062a \u0634\u0645\u0627 \u0631\u0627 \u062f\u0631 \u0632\u0645\u0627\u0646 \u0628\u0639\u062f\u06cc \u0641\u0631\u0627\u0647\u0645 \u0645\u06cc \u06a9\u0646\u062f. \u067e\u0633 \u0627\u0632 \u0646\u0635\u0628 MySQL \u0628\u0627 \u062f\u0646\u0628\u0627\u0644 \u06a9\u0631\u062f\u0646 \u0622\u0645\u0648\u0632\u0634 \u067e\u06cc\u0634 \u0646\u06cc\u0627\u0632\u060c \u0628\u0627\u06cc\u062f \u0628\u0631\u062e\u06cc \u0627\u0632 \u0645\u0642\u0627\u062f\u06cc\u0631 \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u0631\u0627 \u062a\u063a\u06cc\u06cc\u0631 \u062f\u0647\u06cc\u062f \u062a\u0627 \u0627\u0645\u06a9\u0627\u0646 \u0627\u062a\u0635\u0627\u0644 \u0627\u0632 \u0631\u0627\u06cc\u0627\u0646\u0647\u200c\u0647\u0627\u06cc \u062f\u06cc\u06af\u0631 \u0641\u0631\u0627\u0647\u0645 \u0634\u0648\u062f.<\/p>\n<p>\u0628\u06cc\u0634\u062a\u0631 \u062a\u063a\u06cc\u06cc\u0631\u0627\u062a \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u0633\u0631\u0648\u0631 MySQL \u0631\u0627 \u0645\u06cc \u062a\u0648\u0627\u0646 \u062f\u0631 \u0641\u0627\u06cc\u0644 mysqld.cnf \u0627\u0646\u062c\u0627\u0645 \u062f\u0627\u062f \u06a9\u0647 \u0628\u0647 \u0637\u0648\u0631 \u067e\u06cc\u0634 \u0641\u0631\u0636 \u062f\u0631 \u0641\u0647\u0631\u0633\u062a \/etc\/mysql\/mysql.conf.d\/ \u0630\u062e\u06cc\u0631\u0647 \u0645\u06cc \u0634\u0648\u062f. \u0627\u06cc\u0646 \u0641\u0627\u06cc\u0644 \u0631\u0627 \u0631\u0648\u06cc \u0633\u0631\u0648\u0631 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 \u062e\u0648\u062f \u0628\u0627 \u0627\u0645\u062a\u06cc\u0627\u0632\u0627\u062a \u0631\u06cc\u0634\u0647 \u062f\u0631 \u0648\u06cc\u0631\u0627\u06cc\u0634\u06af\u0631 \u062f\u0644\u062e\u0648\u0627\u0647 \u062e\u0648\u062f \u0628\u0627\u0632 \u06a9\u0646\u06cc\u062f. \u062f\u0631 \u0627\u06cc\u0646\u062c\u0627 \u0627\u0632 \u0646\u0627\u0646\u0648 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u062e\u0648\u0627\u0647\u06cc\u0645 \u06a9\u0631\u062f:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>sudo nano \/etc\/mysql\/mysql.conf.d\/mysqld.cnf<\/code><\/pre>\n<\/div>\n<p>\u0627\u06cc\u0646 \u0641\u0627\u06cc\u0644 \u0628\u0647 \u0628\u062e\u0634 \u0647\u0627\u06cc\u06cc \u062a\u0642\u0633\u06cc\u0645 \u0645\u06cc \u0634\u0648\u062f \u06a9\u0647 \u0628\u0627 \u0628\u0631\u0686\u0633\u0628 \u0647\u0627\u06cc\u06cc \u062f\u0631 \u06a9\u0631\u0648\u0634\u0647 \u0647\u0627\u06cc \u0645\u0631\u0628\u0639 ([ \u0648 ]) \u0645\u0634\u062e\u0635 \u0645\u06cc \u0634\u0648\u0646\u062f. \u0628\u062e\u0634 \u0628\u0627 \u0639\u0646\u0648\u0627\u0646 mysqld \u0631\u0627 \u067e\u06cc\u062f\u0627 \u06a9\u0646\u06cc\u062f:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-sql\" data-lang=\"SQL\"><code>. . .\r\n[mysqld]\r\n. . .\r\n<\/code><\/pre>\n<\/div>\n<p>\u062f\u0631 \u0627\u06cc\u0646 \u0628\u062e\u0634 \u0628\u0647 \u062f\u0646\u0628\u0627\u0644 \u067e\u0627\u0631\u0627\u0645\u062a\u0631\u06cc \u0628\u0647 \u0646\u0627\u0645 bind-address \u0628\u06af\u0631\u062f\u06cc\u062f. \u0627\u06cc\u0646 \u0628\u0647 \u0646\u0631\u0645 \u0627\u0641\u0632\u0627\u0631 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 \u0645\u06cc \u06af\u0648\u06cc\u062f \u06a9\u0647 \u062f\u0631 \u06a9\u062f\u0627\u0645 \u0622\u062f\u0631\u0633 \u0634\u0628\u06a9\u0647 \u0628\u0631\u0627\u06cc \u0627\u062a\u0635\u0627\u0644\u0627\u062a \u06af\u0648\u0634 \u062f\u0647\u062f.<\/p>\n<p>\u0628\u0647 \u0637\u0648\u0631 \u067e\u06cc\u0634 \u0641\u0631\u0636\u060c \u0627\u06cc\u0646 \u0631\u0648\u06cc 127.0.0.1 \u062a\u0646\u0638\u06cc\u0645 \u0634\u062f\u0647 \u0627\u0633\u062a\u060c \u0628\u0647 \u0627\u06cc\u0646 \u0645\u0639\u0646\u06cc \u06a9\u0647 MySQL \u0628\u0647 \u06af\u0648\u0646\u0647 \u0627\u06cc \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u0634\u062f\u0647 \u0627\u0633\u062a \u06a9\u0647 \u0641\u0642\u0637 \u0628\u0647 \u062f\u0646\u0628\u0627\u0644 \u0627\u062a\u0635\u0627\u0644\u0627\u062a \u0645\u062d\u0644\u06cc \u0628\u0627\u0634\u062f. \u0634\u0645\u0627 \u0628\u0627\u06cc\u062f \u0627\u06cc\u0646 \u0631\u0627 \u062a\u063a\u06cc\u06cc\u0631 \u062f\u0647\u06cc\u062f \u062a\u0627 \u0628\u0647 \u06cc\u06a9 \u0622\u062f\u0631\u0633 IP \u062e\u0627\u0631\u062c\u06cc \u06a9\u0647 \u062f\u0631 \u0622\u0646 \u0645\u06cc \u062a\u0648\u0627\u0646 \u0628\u0647 \u0633\u0631\u0648\u0631 \u0634\u0645\u0627 \u062f\u0633\u062a\u0631\u0633\u06cc \u062f\u0627\u0634\u062a \u0627\u0634\u0627\u0631\u0647 \u06a9\u0631\u062f.<\/p>\n<p>\u0627\u06af\u0631 \u0647\u0631 \u062f\u0648 \u0633\u0631\u0648\u0631 \u0634\u0645\u0627 \u062f\u0631 \u06cc\u06a9 \u0645\u0631\u06a9\u0632 \u062f\u0627\u062f\u0647 \u0628\u0627 \u0642\u0627\u0628\u0644\u06cc\u062a \u0634\u0628\u06a9\u0647 \u062e\u0635\u0648\u0635\u06cc \u0647\u0633\u062a\u0646\u062f\u060c \u0627\u0632 IP \u0634\u0628\u06a9\u0647 \u062e\u0635\u0648\u0635\u06cc \u0633\u0631\u0648\u0631 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 \u062e\u0648\u062f \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u062f. \u062f\u0631 \u063a\u06cc\u0631 \u0627\u06cc\u0646 \u0635\u0648\u0631\u062a\u060c \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f \u0627\u0632 \u0622\u062f\u0631\u0633 IP \u0639\u0645\u0648\u0645\u06cc \u0622\u0646 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u062f:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-sql\" data-lang=\"SQL\"><code>[mysqld]\r\n. . .\r\nbind-address = db_server_ip<\/code><\/pre>\n<\/div>\n<p>\u0627\u0632 \u0622\u0646\u062c\u0627\u06cc\u06cc \u06a9\u0647 \u0627\u0632 \u0637\u0631\u06cc\u0642 \u0627\u06cc\u0646\u062a\u0631\u0646\u062a \u0628\u0647 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 \u062e\u0648\u062f \u0645\u062a\u0635\u0644 \u062e\u0648\u0627\u0647\u06cc\u062f \u0634\u062f\u060c \u062a\u0648\u0635\u06cc\u0647 \u0645\u06cc \u0634\u0648\u062f \u0628\u0631\u0627\u06cc \u0627\u06cc\u0645\u0646 \u0646\u06af\u0647 \u062f\u0627\u0634\u062a\u0646 \u062f\u0627\u062f\u0647 \u0647\u0627\u06cc \u062e\u0648\u062f \u0628\u0647 \u0627\u062a\u0635\u0627\u0644\u0627\u062a \u0631\u0645\u0632\u06af\u0630\u0627\u0631\u06cc \u0634\u062f\u0647 \u0646\u06cc\u0627\u0632 \u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u06cc\u062f. \u0627\u06af\u0631 \u0627\u062a\u0635\u0627\u0644 MySQL \u062e\u0648\u062f \u0631\u0627 \u0631\u0645\u0632\u06af\u0630\u0627\u0631\u06cc \u0646\u06a9\u0646\u06cc\u062f\u060c \u0647\u0631 \u06a9\u0633\u06cc \u062f\u0631 \u0634\u0628\u06a9\u0647 \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u062f \u0627\u0637\u0644\u0627\u0639\u0627\u062a \u062d\u0633\u0627\u0633 \u0631\u0627 \u0628\u06cc\u0646 \u0648\u0628 \u0648 \u0633\u0631\u0648\u0631\u0647\u0627\u06cc \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 \u0634\u0645\u0627 \u0634\u0646\u0627\u0633\u0627\u06cc\u06cc \u06a9\u0646\u062f. \u0628\u0631\u0627\u06cc \u0631\u0645\u0632\u06af\u0630\u0627\u0631\u06cc \u0627\u062a\u0635\u0627\u0644\u0627\u062a MySQL\u060c \u062e\u0637 \u0632\u06cc\u0631 \u0631\u0627 \u0628\u0639\u062f \u0627\u0632 \u062e\u0637 bind-address \u06a9\u0647 \u0628\u0647\u200c\u0631\u0648\u0632\u0631\u0633\u0627\u0646\u06cc \u06a9\u0631\u062f\u0647\u200c\u0627\u06cc\u062f \u0627\u0636\u0627\u0641\u0647 \u06a9\u0646\u06cc\u062f:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-sql\" data-lang=\"SQL\"><code>[mysqld]\r\n. . .\r\nrequire_secure_transport = on\r\n. . .<\/code><\/pre>\n<\/div>\n<p>\u067e\u0633 \u0627\u0632 \u0627\u062a\u0645\u0627\u0645 \u06a9\u0627\u0631 \u0641\u0627\u06cc\u0644 \u0631\u0627 \u0630\u062e\u06cc\u0631\u0647 \u06a9\u0631\u062f\u0647 \u0648 \u0628\u0628\u0646\u062f\u06cc\u062f. \u0627\u06af\u0631 \u0627\u0632 \u0646\u0627\u0646\u0648 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc \u06a9\u0646\u06cc\u062f\u060c \u0627\u06cc\u0646 \u06a9\u0627\u0631 \u0631\u0627 \u0628\u0627 \u0641\u0634\u0627\u0631 \u062f\u0627\u062f\u0646 CTRL+X\u060c Y \u0648 \u0633\u067e\u0633 ENTER \u0627\u0646\u062c\u0627\u0645 \u062f\u0647\u06cc\u062f.<\/p>\n<p>\u0628\u0631\u0627\u06cc \u0627\u06cc\u0646\u06a9\u0647 \u0627\u062a\u0635\u0627\u0644\u0627\u062a SSL \u06a9\u0627\u0631 \u06a9\u0646\u0646\u062f\u060c \u0628\u0627\u06cc\u062f \u0686\u0646\u062f \u06a9\u0644\u06cc\u062f \u0648 \u06af\u0648\u0627\u0647\u06cc \u0627\u06cc\u062c\u0627\u062f \u06a9\u0646\u06cc\u062f. MySQL \u0628\u0627 \u062f\u0633\u062a\u0648\u0631\u06cc \u0647\u0645\u0631\u0627\u0647 \u0627\u0633\u062a \u06a9\u0647 \u0628\u0647 \u0637\u0648\u0631 \u062e\u0648\u062f\u06a9\u0627\u0631 \u0627\u06cc\u0646\u0647\u0627 \u0631\u0627 \u062a\u0646\u0638\u06cc\u0645 \u0645\u06cc \u06a9\u0646\u062f. \u062f\u0633\u062a\u0648\u0631 \u0632\u06cc\u0631 \u0631\u0627 \u0627\u062c\u0631\u0627 \u06a9\u0646\u06cc\u062f \u06a9\u0647 \u0641\u0627\u06cc\u0644 \u0647\u0627\u06cc \u0644\u0627\u0632\u0645 \u0631\u0627 \u0627\u06cc\u062c\u0627\u062f \u0645\u06cc \u06a9\u0646\u062f. \u0647\u0645\u0686\u0646\u06cc\u0646 \u0628\u0627 \u062a\u0639\u06cc\u06cc\u0646 UID \u06a9\u0627\u0631\u0628\u0631 mysql \u0622\u0646\u0647\u0627 \u0631\u0627 \u062a\u0648\u0633\u0637 \u0633\u0631\u0648\u0631 MySQL \u0642\u0627\u0628\u0644 \u062e\u0648\u0627\u0646\u062f\u0646 \u0645\u06cc \u06a9\u0646\u062f:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>sudo mysql_ssl_rsa_setup --uid=mysql<\/code><\/pre>\n<\/div>\n<p>\u0628\u0631\u0627\u06cc \u0648\u0627\u062f\u0627\u0631 \u06a9\u0631\u062f\u0646 MySQL \u0628\u0647 \u0628\u0647 \u0631\u0648\u0632 \u0631\u0633\u0627\u0646\u06cc \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u0648 \u062e\u0648\u0627\u0646\u062f\u0646 \u0627\u0637\u0644\u0627\u0639\u0627\u062a SSL \u062c\u062f\u06cc\u062f\u060c \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 \u0631\u0627 \u0645\u062c\u062f\u062f\u0627 \u0631\u0627\u0647 \u0627\u0646\u062f\u0627\u0632\u06cc \u06a9\u0646\u06cc\u062f:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>sudo systemctl restart mysql<\/code><\/pre>\n<\/div>\n<p>\u0628\u0631\u0627\u06cc \u062a\u0623\u06cc\u06cc\u062f \u0627\u06cc\u0646\u06a9\u0647 \u0633\u0631\u0648\u0631 \u0627\u06a9\u0646\u0648\u0646 \u0628\u0647 \u0631\u0627\u0628\u0637 \u062e\u0627\u0631\u062c\u06cc \u06af\u0648\u0634 \u0645\u06cc \u062f\u0647\u062f\u060c \u062f\u0633\u062a\u0648\u0631 netstat \u0632\u06cc\u0631 \u0631\u0627 \u0627\u062c\u0631\u0627 \u06a9\u0646\u06cc\u062f:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>sudo netstat -plunt | grep mysqld<\/code><\/pre>\n<\/div>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-plain\" data-lang=\"Plain Text\"><code>Output\r\ntcp 0 0 db_server_ip:3306 0.0.0.0:* LISTEN 27328\/mysqld<\/code><\/pre>\n<\/div>\n<p>netstat \u0622\u0645\u0627\u0631 \u0645\u0631\u0628\u0648\u0637 \u0628\u0647 \u0633\u06cc\u0633\u062a\u0645 \u0634\u0628\u06a9\u0647 \u0633\u0631\u0648\u0631 \u0634\u0645\u0627 \u0631\u0627 \u0686\u0627\u067e \u0645\u06cc \u06a9\u0646\u062f. \u0627\u06cc\u0646 \u062e\u0631\u0648\u062c\u06cc \u0628\u0647 \u0645\u0627 \u0646\u0634\u0627\u0646 \u0645\u06cc \u062f\u0647\u062f \u06a9\u0647 \u0641\u0631\u0622\u06cc\u0646\u062f\u06cc \u0628\u0647 \u0646\u0627\u0645 mysqld \u0628\u0647 db_server_ip \u062f\u0631 \u067e\u0648\u0631\u062a 3306\u060c \u067e\u0648\u0631\u062a \u0627\u0633\u062a\u0627\u0646\u062f\u0627\u0631\u062f MySQL \u0645\u062a\u0635\u0644 \u0634\u062f\u0647 \u0627\u0633\u062a \u0648 \u062a\u0623\u06cc\u06cc\u062f \u0645\u06cc \u06a9\u0646\u062f \u06a9\u0647 \u0633\u0631\u0648\u0631 \u062f\u0631 \u062d\u0627\u0644 \u06af\u0648\u0634 \u062f\u0627\u062f\u0646 \u0628\u0647 \u0631\u0627\u0628\u0637 \u0645\u0646\u0627\u0633\u0628 \u0627\u0633\u062a.<\/p>\n<p>\u062f\u0631 \u0645\u0631\u062d\u0644\u0647 \u0628\u0639\u062f\u060c \u0622\u0646 \u067e\u0648\u0631\u062a \u0631\u0627 \u0631\u0648\u06cc \u0641\u0627\u06cc\u0631\u0648\u0627\u0644 \u0628\u0627\u0632 \u06a9\u0646\u06cc\u062f \u062a\u0627 \u062a\u0631\u0627\u0641\u06cc\u06a9 \u0627\u0632 \u0637\u0631\u06cc\u0642:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>sudo ufw allow mysql<\/code><\/pre>\n<\/div>\n<p>\u0627\u06cc\u0646\u0647\u0627 \u0647\u0645\u0647 \u062a\u063a\u06cc\u06cc\u0631\u0627\u062a \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u0647\u0633\u062a\u0646\u062f \u06a9\u0647 \u0628\u0627\u06cc\u062f \u062f\u0631 MySQL \u0627\u06cc\u062c\u0627\u062f \u06a9\u0646\u06cc\u062f. \u062f\u0631 \u0645\u0631\u062d\u0644\u0647 \u0628\u0639\u062f\u060c \u0646\u062d\u0648\u0647 \u0631\u0627\u0647 \u0627\u0646\u062f\u0627\u0632\u06cc \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 \u0648 \u0628\u0631\u062e\u06cc \u0627\u0632 \u067e\u0631\u0648\u0641\u0627\u06cc\u0644 \u0647\u0627\u06cc \u06a9\u0627\u0631\u0628\u0631 \u0631\u0627 \u0628\u0631\u0631\u0633\u06cc \u062e\u0648\u0627\u0647\u06cc\u0645 \u06a9\u0631\u062f \u06a9\u0647 \u0627\u0632 \u06cc\u06a9\u06cc \u0627\u0632 \u0622\u0646\u0647\u0627 \u0628\u0631\u0627\u06cc \u062f\u0633\u062a\u0631\u0633\u06cc \u0627\u0632 \u0631\u0627\u0647 \u062f\u0648\u0631 \u0628\u0647 \u0633\u0631\u0648\u0631 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u062e\u0648\u0627\u0647\u06cc\u062f \u06a9\u0631\u062f.<\/p>\n<h2 id=\"%d9%85%d8%b1%d8%ad%d9%84%d9%87-2-%d8%b1%d8%a7%d9%87-%d8%a7%d9%86%d8%af%d8%a7%d8%b2%db%8c-%db%8c%da%a9-%d9%be%d8%a7%db%8c%da%af%d8%a7%d9%87-%d8%af%d8%a7%d8%af%d9%87-%d9%88%d8%b1%d8%af%d9%be\">\u0645\u0631\u062d\u0644\u0647 2 &#8211; \u0631\u0627\u0647 \u0627\u0646\u062f\u0627\u0632\u06cc \u06cc\u06a9 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 \u0648\u0631\u062f\u067e\u0631\u0633 \u0648 \u0627\u0639\u062a\u0628\u0627\u0631\u0646\u0627\u0645\u0647 \u0627\u0632 \u0631\u0627\u0647 \u062f\u0648\u0631<\/h2>\n<p>\u062d\u062a\u06cc \u0627\u06af\u0631 MySQL \u062f\u0631 \u062d\u0627\u0644 \u062d\u0627\u0636\u0631 \u0628\u0647 \u06cc\u06a9 \u0622\u062f\u0631\u0633 IP \u062e\u0627\u0631\u062c\u06cc \u06af\u0648\u0634 \u0645\u06cc \u062f\u0647\u062f\u060c \u062f\u0631 \u062d\u0627\u0644 \u062d\u0627\u0636\u0631 \u0647\u06cc\u0686 \u06a9\u0627\u0631\u0628\u0631 \u06cc\u0627 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 \u0627\u06cc \u06a9\u0647 \u0627\u0632 \u0631\u0627\u0647 \u062f\u0648\u0631 \u0641\u0639\u0627\u0644 \u0634\u062f\u0647 \u0628\u0627\u0634\u062f \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u0646\u0634\u062f\u0647 \u0627\u0633\u062a. \u0628\u06cc\u0627\u06cc\u06cc\u062f \u06cc\u06a9 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 \u0628\u0631\u0627\u06cc \u0648\u0631\u062f\u067e\u0631\u0633 \u0627\u06cc\u062c\u0627\u062f \u06a9\u0646\u06cc\u0645\u060c \u0648 \u06cc\u06a9 \u062c\u0641\u062a \u06a9\u0627\u0631\u0628\u0631 \u06a9\u0647 \u0645\u06cc \u062a\u0648\u0627\u0646\u0646\u062f \u0628\u0647 \u0622\u0646 \u062f\u0633\u062a\u0631\u0633\u06cc \u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u0646\u062f.<\/p>\n<p>\u0628\u0627 \u0627\u062a\u0635\u0627\u0644 \u0628\u0647 MySQL \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 \u06a9\u0627\u0631\u0628\u0631 \u0631\u06cc\u0634\u0647 MySQL \u0634\u0631\u0648\u0639 \u06a9\u0646\u06cc\u062f:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>sudo mysql<\/code><\/pre>\n<\/div>\n<p>\u0627\u0632 \u0627\u0639\u0644\u0627\u0646 MySQL\u060c \u06cc\u06a9 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 \u0627\u06cc\u062c\u0627\u062f \u06a9\u0646\u06cc\u062f \u06a9\u0647 \u0648\u0631\u062f\u067e\u0631\u0633 \u0627\u0632 \u0622\u0646 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u062f. \u062f\u0627\u062f\u0646 \u06cc\u06a9 \u0646\u0627\u0645 \u0642\u0627\u0628\u0644 \u062a\u0634\u062e\u06cc\u0635 \u0628\u0647 \u0627\u06cc\u0646 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 \u0645\u0645\u06a9\u0646 \u0627\u0633\u062a \u0645\u0641\u06cc\u062f \u0628\u0627\u0634\u062f \u062a\u0627 \u0628\u062a\u0648\u0627\u0646\u06cc\u062f \u0628\u0639\u062f\u0627\u064b \u0628\u0647 \u0631\u0627\u062d\u062a\u06cc \u0622\u0646 \u0631\u0627 \u0634\u0646\u0627\u0633\u0627\u06cc\u06cc \u06a9\u0646\u06cc\u062f. \u062f\u0631 \u0627\u06cc\u0646\u062c\u0627 \u0646\u0627\u0645 \u0622\u0646 \u0631\u0627 \u0648\u0631\u062f\u067e\u0631\u0633 \u0645\u06cc \u06af\u0630\u0627\u0631\u06cc\u0645:<\/p>\n<div class=\"hcb_wrap\">CREATE DATABASE wordpress;<\/div>\n<p>\u0627\u06a9\u0646\u0648\u0646 \u06a9\u0647 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 \u062e\u0648\u062f \u0631\u0627 \u0627\u06cc\u062c\u0627\u062f \u06a9\u0631\u062f\u0647 \u0627\u06cc\u062f\u060c \u062f\u0631 \u0645\u0631\u062d\u0644\u0647 \u0628\u0639\u062f \u0628\u0627\u06cc\u062f \u06cc\u06a9 \u062c\u0641\u062a \u06a9\u0627\u0631\u0628\u0631 \u0627\u06cc\u062c\u0627\u062f \u06a9\u0646\u06cc\u062f. \u0645\u0627 \u06cc\u06a9 \u06a9\u0627\u0631\u0628\u0631 \u0641\u0642\u0637 \u0645\u062d\u0644\u06cc \u0648 \u0647\u0645\u0686\u0646\u06cc\u0646 \u06cc\u06a9 \u06a9\u0627\u0631\u0628\u0631 \u0631\u0627\u0647 \u062f\u0648\u0631 \u0645\u0631\u062a\u0628\u0637 \u0628\u0627 \u0622\u062f\u0631\u0633 IP \u0633\u0631\u0648\u0631 \u0648\u0628 \u0627\u06cc\u062c\u0627\u062f \u062e\u0648\u0627\u0647\u06cc\u0645 \u06a9\u0631\u062f.<\/p>\n<p>\u0627\u0628\u062a\u062f\u0627\u060c \u06a9\u0627\u0631\u0628\u0631 \u0645\u062d\u0644\u06cc \u062e\u0648\u062f\u060c wpuser \u0631\u0627 \u0627\u06cc\u062c\u0627\u062f \u06a9\u0646\u06cc\u062f \u0648 \u0627\u06cc\u0646 \u062d\u0633\u0627\u0628 \u0631\u0627 \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0644\u0648\u06a9\u0627\u0644 \u0647\u0627\u0633\u062a \u062f\u0631 \u0627\u0639\u0644\u0627\u0646\u060c \u062a\u0646\u0647\u0627 \u0628\u0627 \u062a\u0644\u0627\u0634 \u0647\u0627\u06cc \u0627\u062a\u0635\u0627\u0644 \u0645\u062d\u0644\u06cc \u0645\u0637\u0627\u0628\u0642\u062a \u062f\u0647\u06cc\u062f:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-sql\" data-lang=\"SQL\"><code>CREATE USER 'wpuser'@'localhost' IDENTIFIED BY 'password';<\/code><\/pre>\n<\/div>\n<p>\u0633\u067e\u0633 \u0628\u0647 \u0627\u06cc\u0646 \u062d\u0633\u0627\u0628 \u062f\u0633\u062a\u0631\u0633\u06cc \u06a9\u0627\u0645\u0644 \u0628\u0647 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 \u0648\u0631\u062f\u067e\u0631\u0633 \u0628\u062f\u0647\u06cc\u062f:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-sql\" data-lang=\"SQL\"><code>GRANT ALL PRIVILEGES ON wordpress.* TO 'wpuser'@'localhost';<\/code><\/pre>\n<\/div>\n<p>\u0627\u06cc\u0646 \u06a9\u0627\u0631\u0628\u0631 \u0627\u06a9\u0646\u0648\u0646 \u0645\u06cc \u062a\u0648\u0627\u0646\u062f \u0647\u0631 \u0639\u0645\u0644\u06cc\u0627\u062a\u06cc \u0631\u0627 \u0628\u0631 \u0631\u0648\u06cc \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 \u0628\u0631\u0627\u06cc \u0648\u0631\u062f\u067e\u0631\u0633 \u0627\u0646\u062c\u0627\u0645 \u062f\u0647\u062f\u060c \u0627\u0645\u0627 \u0627\u06cc\u0646 \u062d\u0633\u0627\u0628 \u0646\u0645\u06cc \u062a\u0648\u0627\u0646\u062f \u0627\u0632 \u0631\u0627\u0647 \u062f\u0648\u0631 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0634\u0648\u062f\u060c \u0632\u06cc\u0631\u0627 \u0641\u0642\u0637 \u0628\u0627 \u0627\u062a\u0635\u0627\u0644\u0627\u062a \u062f\u0633\u062a\u06af\u0627\u0647 \u0645\u062d\u0644\u06cc \u0645\u0637\u0627\u0628\u0642\u062a \u062f\u0627\u0631\u062f. \u0628\u0627 \u062f\u0631 \u0646\u0638\u0631 \u06af\u0631\u0641\u062a\u0646 \u0627\u06cc\u0646 \u0645\u0648\u0636\u0648\u0639\u060c \u06cc\u06a9 \u062d\u0633\u0627\u0628 \u0647\u0645\u0631\u0627\u0647 \u0627\u06cc\u062c\u0627\u062f \u06a9\u0646\u06cc\u062f \u06a9\u0647 \u0627\u062a\u0635\u0627\u0644\u0627\u062a \u0645\u0646\u062d\u0635\u0631\u0627\u064b \u0627\u0632 \u0633\u0631\u0648\u0631 \u0648\u0628 \u0634\u0645\u0627 \u0645\u0637\u0627\u0628\u0642\u062a \u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u062f. \u0628\u0631\u0627\u06cc \u0627\u06cc\u0646 \u06a9\u0627\u0631 \u0628\u0647 \u0622\u062f\u0631\u0633 IP \u0633\u0631\u0648\u0631 \u0648\u0628 \u062e\u0648\u062f \u0646\u06cc\u0627\u0632 \u062f\u0627\u0631\u06cc\u062f.<\/p>\n<p>\u0644\u0637\u0641\u0627\u064b \u062a\u0648\u062c\u0647 \u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u06cc\u062f \u06a9\u0647 \u0628\u0627\u06cc\u062f \u0627\u0632 \u06cc\u06a9 \u0622\u062f\u0631\u0633 IP \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u062f \u06a9\u0647 \u0627\u0632 \u0647\u0645\u0627\u0646 \u0634\u0628\u06a9\u0647 \u0627\u06cc \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc \u06a9\u0646\u062f \u06a9\u0647 \u062f\u0631 \u0641\u0627\u06cc\u0644 mysqld.cnf \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u06a9\u0631\u062f\u0647 \u0627\u06cc\u062f. \u0627\u06cc\u0646 \u0628\u062f\u0627\u0646 \u0645\u0639\u0646\u06cc \u0627\u0633\u062a \u06a9\u0647 \u0627\u06af\u0631 \u06cc\u06a9 IP \u0634\u0628\u06a9\u0647 \u062e\u0635\u0648\u0635\u06cc \u062f\u0631 \u0641\u0627\u06cc\u0644 mysqld.cnf \u0645\u0634\u062e\u0635 \u06a9\u0631\u062f\u0647 \u0627\u06cc\u062f\u060c \u0628\u0627\u06cc\u062f IP \u062e\u0635\u0648\u0635\u06cc \u0648\u0628 \u0633\u0631\u0648\u0631 \u062e\u0648\u062f \u0631\u0627 \u062f\u0631 \u062f\u0648 \u062f\u0633\u062a\u0648\u0631 \u0632\u06cc\u0631 \u0648\u0627\u0631\u062f \u06a9\u0646\u06cc\u062f. \u0627\u06af\u0631 MySQL \u0631\u0627 \u0628\u0631\u0627\u06cc \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0627\u06cc\u0646\u062a\u0631\u0646\u062a \u0639\u0645\u0648\u0645\u06cc \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u06a9\u0631\u062f\u0647 \u0627\u06cc\u062f\u060c \u0628\u0627\u06cc\u062f \u0622\u0646 \u0631\u0627 \u0628\u0627 \u0622\u062f\u0631\u0633 IP \u0639\u0645\u0648\u0645\u06cc \u0648\u0628 \u0633\u0631\u0648\u0631 \u0645\u0637\u0627\u0628\u0642\u062a \u062f\u0647\u06cc\u062f.<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-sql\" data-lang=\"SQL\"><code>CREATE USER 'remotewpuser'@'web_server_ip' IDENTIFIED BY 'password';<\/code><\/pre>\n<\/div>\n<p>\u067e\u0633 \u0627\u0632 \u0627\u06cc\u062c\u0627\u062f \u062d\u0633\u0627\u0628 \u0631\u0627\u0647 \u062f\u0648\u0631 \u062e\u0648\u062f\u060c \u0647\u0645\u0627\u0646 \u0627\u0645\u062a\u06cc\u0627\u0632\u0627\u062a \u06a9\u0627\u0631\u0628\u0631 \u0645\u062d\u0644\u06cc \u062e\u0648\u062f \u0631\u0627 \u0628\u0647 \u0622\u0646 \u0628\u062f\u0647\u06cc\u062f:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-sql\" data-lang=\"SQL\"><code>GRANT ALL PRIVILEGES ON wordpress.* TO 'remotewpuser'@'web_server_ip';<\/code><\/pre>\n<\/div>\n<p>\u062f\u0631 \u0646\u0647\u0627\u06cc\u062a\u060c \u0627\u0645\u062a\u06cc\u0627\u0632\u0627\u062a \u0631\u0627 \u067e\u0627\u06a9 \u06a9\u0646\u06cc\u062f \u062a\u0627 MySQL \u0628\u062f\u0627\u0646\u062f \u0634\u0631\u0648\u0639 \u0628\u0647 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0622\u0646\u0647\u0627 \u06a9\u0646\u062f:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-sql\" data-lang=\"SQL\"><code>FLUSH PRIVILEGES;<\/code><\/pre>\n<\/div>\n<p>\u0633\u067e\u0633 \u0628\u0627 \u062a\u0627\u06cc\u067e \u06a9\u0631\u062f\u0646 \u0627\u0632 \u062f\u0633\u062a\u0648\u0631 MySQL \u062e\u0627\u0631\u062c \u0634\u0648\u06cc\u062f:<\/p>\n<div class=\"hcb_wrap\">\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>exit<\/code><\/pre>\n<\/div>\n<\/div>\n<p>\u0627\u06a9\u0646\u0648\u0646 \u06a9\u0647 \u06cc\u06a9 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 \u062c\u062f\u06cc\u062f \u0648 \u06cc\u06a9 \u06a9\u0627\u0631\u0628\u0631 \u0641\u0639\u0627\u0644 \u0627\u0632 \u0631\u0627\u0647 \u062f\u0648\u0631 \u0631\u0627\u0647\u200c\u0627\u0646\u062f\u0627\u0632\u06cc \u06a9\u0631\u062f\u0647\u200c\u0627\u06cc\u062f\u060c \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u06cc\u062f \u0622\u0632\u0645\u0627\u06cc\u0634 \u06a9\u0646\u06cc\u062f \u06a9\u0647 \u0622\u06cc\u0627 \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u06cc\u062f \u0627\u0632 \u0633\u0631\u0648\u0631 \u0648\u0628 \u062e\u0648\u062f \u0628\u0647 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 \u0645\u062a\u0635\u0644 \u0634\u0648\u06cc\u062f \u06cc\u0627 \u062e\u06cc\u0631.<\/p>\n<h2 id=\"%d9%85%d8%b1%d8%ad%d9%84%d9%87-3-%d8%aa%d8%b3%d8%aa-%d8%a7%d8%aa%d8%b5%d8%a7%d9%84%d8%a7%d8%aa-%d8%a7%d8%b2-%d8%b1%d8%a7%d9%87-%d8%af%d9%88%d8%b1-%d9%88-%d9%85%d8%ad%d9%84%db%8c\">\u0645\u0631\u062d\u0644\u0647 3 &#8211; \u062a\u0633\u062a \u0627\u062a\u0635\u0627\u0644\u0627\u062a \u0627\u0632 \u0631\u0627\u0647 \u062f\u0648\u0631 \u0648 \u0645\u062d\u0644\u06cc<\/h2>\n<p>\u0642\u0628\u0644 \u0627\u0632 \u0627\u062f\u0627\u0645\u0647\u060c \u0628\u0647\u062a\u0631 \u0627\u0633\u062a \u0628\u0631\u0631\u0633\u06cc \u06a9\u0646\u06cc\u062f \u06a9\u0647 \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f \u0647\u0645 \u0627\u0632 \u062f\u0633\u062a\u06af\u0627\u0647 \u0645\u062d\u0644\u06cc &#8211; \u0633\u0631\u0648\u0631 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 \u062e\u0648\u062f &#8211; \u0648 \u0647\u0645 \u0627\u0632 \u0648\u0628 \u0633\u0631\u0648\u0631 \u062e\u0648\u062f \u0628\u0647 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 \u062e\u0648\u062f \u0645\u062a\u0635\u0644 \u0634\u0648\u06cc\u062f.<\/p>\n<p>\u0627\u0628\u062a\u062f\u0627\u060c \u0627\u062a\u0635\u0627\u0644 \u0645\u062d\u0644\u06cc \u0631\u0627 \u0627\u0632 \u0633\u0631\u0648\u0631 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 \u062e\u0648\u062f \u0628\u0627 \u062a\u0644\u0627\u0634 \u0628\u0631\u0627\u06cc \u0648\u0631\u0648\u062f \u0628\u0647 \u062d\u0633\u0627\u0628 \u062c\u062f\u06cc\u062f \u062e\u0648\u062f \u0622\u0632\u0645\u0627\u06cc\u0634 \u06a9\u0646\u06cc\u062f:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>mysql -u wpuser -p<\/code><\/pre>\n<\/div>\n<p>\u0648\u0642\u062a\u06cc \u0627\u0632 \u0634\u0645\u0627 \u062e\u0648\u0627\u0633\u062a\u0647 \u0634\u062f\u060c \u0631\u0645\u0632 \u0639\u0628\u0648\u0631\u06cc \u0631\u0627 \u06a9\u0647 \u0628\u0631\u0627\u06cc \u0627\u06cc\u0646 \u062d\u0633\u0627\u0628 \u062a\u0646\u0638\u06cc\u0645 \u06a9\u0631\u062f\u0647 \u0627\u06cc\u062f \u0648\u0627\u0631\u062f \u06a9\u0646\u06cc\u062f.<\/p>\n<p>\u0627\u06af\u0631 \u0628\u0647 \u0634\u0645\u0627 \u062f\u0631\u062e\u0648\u0627\u0633\u062a MySQL \u062f\u0627\u062f\u0647 \u0634\u0648\u062f\u060c \u0627\u062a\u0635\u0627\u0644 \u0645\u062d\u0644\u06cc \u0645\u0648\u0641\u0642\u06cc\u062a \u0622\u0645\u06cc\u0632 \u0628\u0648\u062f\u0647 \u0627\u0633\u062a. \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f \u0628\u0627 \u062a\u0627\u06cc\u067e \u06a9\u0631\u062f\u0646 \u062f\u0648\u0628\u0627\u0631\u0647 \u0627\u0632 \u062e\u0627\u0631\u062c \u0634\u0648\u06cc\u062f:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>exit<\/code><\/pre>\n<\/div>\n<p>\u0633\u067e\u0633 \u0628\u0631\u0627\u06cc \u0622\u0632\u0645\u0627\u06cc\u0634 \u0627\u062a\u0635\u0627\u0644\u0627\u062a \u0631\u0627\u0647 \u062f\u0648\u0631 \u0648\u0627\u0631\u062f \u0633\u0631\u0648\u0631 \u0648\u0628 \u062e\u0648\u062f \u0634\u0648\u06cc\u062f:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>ssh sammy@web_server_ip<\/code><\/pre>\n<\/div>\n<p>\u0628\u0631\u0627\u06cc \u062f\u0633\u062a\u0631\u0633\u06cc \u0628\u0647 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 \u0631\u0627\u0647 \u062f\u0648\u0631\u060c \u0628\u0627\u06cc\u062f \u0628\u0631\u062e\u06cc \u0627\u0632 \u0627\u0628\u0632\u0627\u0631\u0647\u0627\u06cc \u0633\u0631\u0648\u06cc\u0633 \u06af\u06cc\u0631\u0646\u062f\u0647 MySQL \u0631\u0627 \u0631\u0648\u06cc \u0633\u0631\u0648\u0631 \u0648\u0628 \u062e\u0648\u062f \u0646\u0635\u0628 \u06a9\u0646\u06cc\u062f. \u0627\u0628\u062a\u062f\u0627\u060c \u0627\u06af\u0631 \u0627\u062e\u06cc\u0631\u0627\u064b \u0627\u06cc\u0646 \u06a9\u0627\u0631 \u0631\u0627 \u0646\u06a9\u0631\u062f\u0647 \u0627\u06cc\u062f\u060c \u06a9\u0634 \u0628\u0633\u062a\u0647 \u0645\u062d\u0644\u06cc \u062e\u0648\u062f \u0631\u0627 \u0628\u0647 \u0631\u0648\u0632 \u06a9\u0646\u06cc\u062f:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>sudo apt update<\/code><\/pre>\n<\/div>\n<p>\u0633\u067e\u0633 \u0627\u0628\u0632\u0627\u0631\u0647\u0627\u06cc \u0633\u0631\u0648\u06cc\u0633 \u06af\u06cc\u0631\u0646\u062f\u0647 MySQL \u0631\u0627 \u0646\u0635\u0628 \u06a9\u0646\u06cc\u062f:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>sudo apt install mysql-client<\/code><\/pre>\n<\/div>\n<p>\u067e\u0633 \u0627\u0632 \u0627\u06cc\u0646\u060c \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u062f\u0633\u062a\u0648\u0631 \u0632\u06cc\u0631 \u0628\u0647 \u0633\u0631\u0648\u0631 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 \u062e\u0648\u062f \u0645\u062a\u0635\u0644 \u0634\u0648\u06cc\u062f:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>mysql -u remotewpuser -h db_server_ip -p<\/code><\/pre>\n<\/div>\n<p>\u0645\u062c\u062f\u062f\u0627\u064b\u060c \u0628\u0627\u06cc\u062f \u0645\u0637\u0645\u0626\u0646 \u0634\u0648\u06cc\u062f \u06a9\u0647 \u0627\u0632 \u0622\u062f\u0631\u0633 IP \u0635\u062d\u06cc\u062d \u0628\u0631\u0627\u06cc \u0633\u0631\u0648\u0631 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc \u06a9\u0646\u06cc\u062f. \u0627\u06af\u0631 MySQL \u0631\u0627 \u0628\u0631\u0627\u06cc \u06af\u0648\u0634 \u062f\u0627\u062f\u0646 \u062f\u0631 \u0634\u0628\u06a9\u0647 \u062e\u0635\u0648\u0635\u06cc \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u06a9\u0631\u062f\u0647 \u0627\u06cc\u062f\u060c IP \u0634\u0628\u06a9\u0647 \u062e\u0635\u0648\u0635\u06cc \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 \u062e\u0648\u062f \u0631\u0627 \u0648\u0627\u0631\u062f \u06a9\u0646\u06cc\u062f. \u062f\u0631 \u063a\u06cc\u0631 \u0627\u06cc\u0646 \u0635\u0648\u0631\u062a\u060c \u0622\u062f\u0631\u0633 IP \u0639\u0645\u0648\u0645\u06cc \u0633\u0631\u0648\u0631 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 \u062e\u0648\u062f \u0631\u0627 \u0648\u0627\u0631\u062f \u06a9\u0646\u06cc\u062f.<\/p>\n<p>\u0631\u0645\u0632 \u0639\u0628\u0648\u0631 \u062d\u0633\u0627\u0628 remotewpuser \u0627\u0632 \u0634\u0645\u0627 \u062e\u0648\u0627\u0633\u062a\u0647 \u0645\u06cc \u0634\u0648\u062f. \u067e\u0633 \u0627\u0632 \u0648\u0627\u0631\u062f \u06a9\u0631\u062f\u0646 \u0622\u0646\u060c \u0648 \u0627\u06af\u0631 \u0647\u0645\u0647 \u0686\u06cc\u0632 \u0645\u0637\u0627\u0628\u0642 \u0627\u0646\u062a\u0638\u0627\u0631 \u06a9\u0627\u0631 \u06a9\u0646\u062f\u060c \u0627\u0639\u0644\u0627\u0646 MySQL \u0631\u0627 \u0645\u0634\u0627\u0647\u062f\u0647 \u062e\u0648\u0627\u0647\u06cc\u062f \u06a9\u0631\u062f. \u0628\u0627 \u062f\u0633\u062a\u0648\u0631 \u0632\u06cc\u0631 \u0628\u0631\u0631\u0633\u06cc \u06a9\u0646\u06cc\u062f \u06a9\u0647 \u0627\u062a\u0635\u0627\u0644 \u0627\u0632 SSL \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc \u06a9\u0646\u062f:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-sql\" data-lang=\"SQL\"><code>status<\/code><\/pre>\n<\/div>\n<p>\u0627\u06af\u0631 \u0627\u062a\u0635\u0627\u0644 \u0648\u0627\u0642\u0639\u0627\u064b \u0627\u0632 SSL \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc \u06a9\u0646\u062f\u060c \u062e\u0637 SSL: \u0627\u06cc\u0646 \u0631\u0627 \u0646\u0634\u0627\u0646 \u0645\u06cc \u062f\u0647\u062f\u060c \u0647\u0645\u0627\u0646\u0637\u0648\u0631 \u06a9\u0647 \u062f\u0631 \u0627\u06cc\u0646\u062c\u0627 \u0646\u0634\u0627\u0646 \u062f\u0627\u062f\u0647 \u0634\u062f\u0647 \u0627\u0633\u062a:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-plain\" data-lang=\"Plain Text\"><code>Output\r\n--------------\r\nmysql Ver 14.14 Distrib 5.7.18, for Linux (x86_64) using EditLine wrapper\r\nConnection id: 52\r\nCurrent database:\r\nCurrent user: remotewpuser@203.0.113.111\r\nSSL: Cipher in use is DHE-RSA-AES256-SHA\r\nCurrent pager: stdout\r\nUsing outfile: ''\r\nUsing delimiter: ;\r\nServer version: 5.7.18-0ubuntu0.16.04.1 (Ubuntu)\r\nProtocol version: 10\r\nConnection: 203.0.113.111 via TCP\/IP\r\nServer characterset: latin1\r\nDb characterset: latin1\r\nClient characterset: utf8\r\nConn. characterset: utf8\r\nTCP port: 3306\r\nUptime: 3 hours 43 min 40 sec\r\nThreads: 1 Questions: 1858 Slow queries: 0 Opens: 276 Flush tables: 1 Open tables: 184 Queries per second avg: 0.138\r\n--------------<\/code><\/pre>\n<\/div>\n<p>\u067e\u0633 \u0627\u0632 \u062a\u0623\u06cc\u06cc\u062f \u0627\u06cc\u0646\u06a9\u0647 \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f \u0627\u0632 \u0631\u0627\u0647 \u062f\u0648\u0631 \u0645\u062a\u0635\u0644 \u0634\u0648\u06cc\u062f\u060c \u0627\u062f\u0627\u0645\u0647 \u062f\u0647\u06cc\u062f \u0648 \u0627\u0632 \u062f\u0633\u062a\u0648\u0631 \u062e\u0627\u0631\u062c \u0634\u0648\u06cc\u062f:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-sql\" data-lang=\"SQL\"><code>exit<\/code><\/pre>\n<\/div>\n<p>\u0628\u0627 \u0622\u0646\u060c \u0634\u0645\u0627 \u062f\u0633\u062a\u0631\u0633\u06cc \u0645\u062d\u0644\u06cc \u0648 \u062f\u0633\u062a\u0631\u0633\u06cc \u0627\u0632 \u0633\u0631\u0648\u0631 \u0648\u0628 \u0631\u0627 \u062a\u0623\u06cc\u06cc\u062f \u06a9\u0631\u062f\u0647 \u0627\u06cc\u062f\u060c \u0627\u0645\u0627 \u062a\u0623\u06cc\u06cc\u062f \u0646\u06a9\u0631\u062f\u0647 \u0627\u06cc\u062f \u06a9\u0647 \u0633\u0627\u06cc\u0631 \u0627\u062a\u0635\u0627\u0644\u0627\u062a \u0631\u062f \u0645\u06cc \u0634\u0648\u0646\u062f. \u0628\u0631\u0627\u06cc \u0628\u0631\u0631\u0633\u06cc \u0628\u06cc\u0634\u062a\u0631\u060c \u0647\u0645\u06cc\u0646 \u06a9\u0627\u0631 \u0631\u0627 \u0627\u0632 \u0633\u0631\u0648\u0631 \u0633\u0648\u0645\u06cc \u06a9\u0647 \u062d\u0633\u0627\u0628 \u06a9\u0627\u0631\u0628\u0631\u06cc \u062e\u0627\u0635\u06cc \u0631\u0627 \u0628\u0631\u0627\u06cc \u0622\u0646 \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u0646\u06a9\u0631\u062f\u0647\u200c\u0627\u06cc\u062f \u0627\u0646\u062c\u0627\u0645 \u062f\u0647\u06cc\u062f \u062a\u0627 \u0645\u0637\u0645\u0626\u0646 \u0634\u0648\u06cc\u062f \u06a9\u0647 \u0628\u0647 \u0633\u0631\u0648\u0631 \u062f\u06cc\u06af\u0631 \u0627\u062c\u0627\u0632\u0647 \u062f\u0633\u062a\u0631\u0633\u06cc \u062f\u0627\u062f\u0647 \u0646\u0634\u062f\u0647 \u0627\u0633\u062a.<\/p>\n<p>\u062a\u0648\u062c\u0647 \u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u06cc\u062f \u06a9\u0647 \u0642\u0628\u0644 \u0627\u0632 \u0627\u062c\u0631\u0627\u06cc \u062f\u0633\u062a\u0648\u0631 \u0632\u06cc\u0631 \u0628\u0631\u0627\u06cc \u062a\u0644\u0627\u0634 \u0628\u0631\u0627\u06cc \u0627\u062a\u0635\u0627\u0644\u060c \u0645\u0645\u06a9\u0646 \u0627\u0633\u062a \u0645\u062c\u0628\u0648\u0631 \u0634\u0648\u06cc\u062f \u0628\u0631\u0646\u0627\u0645\u0647 \u0647\u0627\u06cc \u0633\u0631\u0648\u06cc\u0633 \u06af\u06cc\u0631\u0646\u062f\u0647 MySQL \u0631\u0627 \u0647\u0645\u0627\u0646\u0637\u0648\u0631 \u06a9\u0647 \u062f\u0631 \u0628\u0627\u0644\u0627 \u0627\u0646\u062c\u0627\u0645 \u062f\u0627\u062f\u06cc\u062f \u0646\u0635\u0628 \u06a9\u0646\u06cc\u062f:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-sql\" data-lang=\"SQL\"><code>mysql -u wordpressuser -h db_server_ip -p<\/code><\/pre>\n<\/div>\n<p>\u0627\u06cc\u0646 \u0646\u0628\u0627\u06cc\u062f \u0628\u0627 \u0645\u0648\u0641\u0642\u06cc\u062a \u06a9\u0627\u0645\u0644 \u0634\u0648\u062f\u060c \u0648 \u0628\u0627\u06cc\u062f \u062e\u0637\u0627\u06cc \u0634\u0628\u06cc\u0647 \u0628\u0647 \u0627\u06cc\u0646 \u0631\u0627 \u0628\u0631\u06af\u0631\u062f\u0627\u0646\u062f:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-plain\" data-lang=\"Plain Text\"><code>Output\r\nERROR 1130 (HY000): Host '203.0.113.12' is not allowed to connect to this MySQL server<\/code><\/pre>\n<\/div>\n<p>\u0627\u06cc\u0646 \u0645\u0648\u0631\u062f \u0627\u0646\u062a\u0638\u0627\u0631 \u0627\u0633\u062a\u060c \u0632\u06cc\u0631\u0627 \u0634\u0645\u0627 \u06cc\u06a9 \u06a9\u0627\u0631\u0628\u0631 MySQL \u0627\u06cc\u062c\u0627\u062f \u0646\u06a9\u0631\u062f\u0647 \u0627\u06cc\u062f \u06a9\u0647 \u0645\u062c\u0627\u0632 \u0628\u0647 \u0627\u062a\u0635\u0627\u0644 \u0627\u0632 \u0627\u06cc\u0646 \u0633\u0631\u0648\u0631 \u0628\u0627\u0634\u062f\u060c \u0648 \u0647\u0645\u0686\u0646\u06cc\u0646 \u0645\u0648\u0631\u062f \u0646\u0638\u0631 \u0627\u0633\u062a\u060c \u0632\u06cc\u0631\u0627 \u0645\u06cc \u062e\u0648\u0627\u0647\u06cc\u062f \u0645\u0637\u0645\u0626\u0646 \u0628\u0627\u0634\u06cc\u062f \u06a9\u0647 \u0633\u0631\u0648\u0631 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 \u0634\u0645\u0627 \u062f\u0633\u062a\u0631\u0633\u06cc \u06a9\u0627\u0631\u0628\u0631\u0627\u0646 \u063a\u06cc\u0631\u0645\u062c\u0627\u0632 \u0628\u0647 \u0633\u0631\u0648\u0631 MySQL \u0634\u0645\u0627 \u0631\u0627 \u0645\u0645\u0646\u0648\u0639 \u0645\u06cc \u06a9\u0646\u062f.<\/p>\n<p>\u067e\u0633 \u0627\u0632 \u0622\u0632\u0645\u0627\u06cc\u0634 \u0645\u0648\u0641\u0642\u06cc\u062a \u0622\u0645\u06cc\u0632 \u0627\u062a\u0635\u0627\u0644 \u0627\u0632 \u0631\u0627\u0647 \u062f\u0648\u0631 \u062e\u0648\u062f\u060c \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f \u0628\u0647 \u0646\u0635\u0628 \u0648\u0631\u062f\u067e\u0631\u0633 \u0631\u0648\u06cc \u0648\u0628 \u0633\u0631\u0648\u0631 \u062e\u0648\u062f \u0627\u062f\u0627\u0645\u0647 \u062f\u0647\u06cc\u062f.<\/p>\n<h2 id=\"%d9%85%d8%b1%d8%ad%d9%84%d9%87-4-%d9%86%d8%b5%d8%a8-%d9%88%d8%b1%d8%af%d9%be%d8%b1%d8%b3\">\u0645\u0631\u062d\u0644\u0647 4 &#8211; \u0646\u0635\u0628 \u0648\u0631\u062f\u067e\u0631\u0633<\/h2>\n<p>\u0628\u0631\u0627\u06cc \u0646\u0634\u0627\u0646 \u062f\u0627\u062f\u0646 \u0642\u0627\u0628\u0644\u06cc\u062a\u200c\u0647\u0627\u06cc \u0633\u0631\u0648\u0631 MySQL \u062c\u062f\u06cc\u062f \u0634\u0645\u0627 \u0628\u0627 \u0642\u0627\u0628\u0644\u06cc\u062a \u06a9\u0646\u062a\u0631\u0644 \u0627\u0632 \u0631\u0627\u0647 \u062f\u0648\u0631\u060c \u0645\u0631\u0627\u062d\u0644 \u0646\u0635\u0628 \u0648 \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc WordPress \u2013 \u0633\u06cc\u0633\u062a\u0645 \u0645\u062f\u06cc\u0631\u06cc\u062a \u0645\u062d\u062a\u0648\u0627\u06cc \u0645\u062d\u0628\u0648\u0628 \u2013 \u0631\u0627 \u062f\u0631 \u0633\u0631\u0648\u0631 \u0648\u0628 \u0634\u0645\u0627 \u0627\u0646\u062c\u0627\u0645 \u0645\u06cc\u200c\u062f\u0647\u06cc\u0645. \u0628\u0631\u0627\u06cc \u0627\u06cc\u0646 \u06a9\u0627\u0631 \u0628\u0627\u06cc\u062f \u0646\u0631\u0645 \u0627\u0641\u0632\u0627\u0631 \u0631\u0627 \u062f\u0627\u0646\u0644\u0648\u062f \u0648 \u0627\u0633\u062a\u062e\u0631\u0627\u062c \u06a9\u0646\u06cc\u062f\u060c \u0627\u0637\u0644\u0627\u0639\u0627\u062a \u0627\u062a\u0635\u0627\u0644 \u062e\u0648\u062f \u0631\u0627 \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u06a9\u0646\u06cc\u062f \u0648 \u0633\u067e\u0633 \u0627\u0632 \u0637\u0631\u06cc\u0642 \u0646\u0635\u0628 \u0645\u0628\u062a\u0646\u06cc \u0628\u0631 \u0648\u0628 \u0648\u0631\u062f\u067e\u0631\u0633 \u0627\u062c\u0631\u0627 \u06a9\u0646\u06cc\u062f.<\/p>\n<p>\u062f\u0631 \u0648\u0628 \u0633\u0631\u0648\u0631 \u062e\u0648\u062f\u060c \u0622\u062e\u0631\u06cc\u0646 \u0646\u0633\u062e\u0647 \u0648\u0631\u062f\u067e\u0631\u0633 \u0631\u0627 \u062f\u0631 \u0641\u0647\u0631\u0633\u062a \u0627\u0635\u0644\u06cc \u062e\u0648\u062f \u062f\u0627\u0646\u0644\u0648\u062f \u06a9\u0646\u06cc\u062f:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>cd ~\r\ncurl -O https:\/\/wordpress.org\/latest.tar.gz<\/code><\/pre>\n<\/div>\n<p>\u0641\u0627\u06cc\u0644 \u0647\u0627 \u0631\u0627 \u0627\u0633\u062a\u062e\u0631\u0627\u062c \u06a9\u0646\u06cc\u062f\u060c \u06a9\u0647 \u06cc\u06a9 \u062f\u0627\u06cc\u0631\u06a9\u062a\u0648\u0631\u06cc \u0628\u0647 \u0646\u0627\u0645 wordpress \u062f\u0631 \u0641\u0647\u0631\u0633\u062a \u0627\u0635\u0644\u06cc \u0634\u0645\u0627 \u0627\u06cc\u062c\u0627\u062f \u0645\u06cc \u06a9\u0646\u062f:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\">tar xzvf latest.tar.gz<\/pre>\n<\/div>\n<p>\u0648\u0631\u062f\u067e\u0631\u0633 \u0634\u0627\u0645\u0644 \u06cc\u06a9 \u0641\u0627\u06cc\u0644 \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u0646\u0645\u0648\u0646\u0647 \u0627\u0633\u062a \u06a9\u0647 \u0645\u0627 \u0627\u0632 \u0622\u0646 \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 \u0646\u0642\u0637\u0647 \u0634\u0631\u0648\u0639 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u062e\u0648\u0627\u0647\u06cc\u0645 \u06a9\u0631\u062f. \u06cc\u06a9 \u06a9\u067e\u06cc \u0627\u0632 \u0627\u06cc\u0646 \u0641\u0627\u06cc\u0644 \u062a\u0647\u06cc\u0647 \u06a9\u0646\u06cc\u062f\u060c \u0646\u0645\u0648\u0646\u0647 &#8211; \u0631\u0627 \u0627\u0632 \u0646\u0627\u0645 \u0641\u0627\u06cc\u0644 \u062d\u0630\u0641 \u06a9\u0646\u06cc\u062f \u062a\u0627 \u062a\u0648\u0633\u0637 \u0648\u0631\u062f\u067e\u0631\u0633 \u0628\u0627\u0631\u06af\u0630\u0627\u0631\u06cc \u0634\u0648\u062f:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>cp ~\/wordpress\/wp-config-sample.php ~\/wordpress\/wp-config.php<\/code><\/pre>\n<\/div>\n<p>\u0647\u0646\u06af\u0627\u0645\u06cc \u06a9\u0647 \u0641\u0627\u06cc\u0644 \u0631\u0627 \u0628\u0627\u0632 \u0645\u06cc \u06a9\u0646\u06cc\u062f\u060c \u0627\u0648\u0644\u06cc\u0646 \u06a9\u0627\u0631 \u0634\u0645\u0627 \u062a\u0646\u0638\u06cc\u0645 \u0628\u0631\u062e\u06cc \u0627\u0632 \u06a9\u0644\u06cc\u062f\u0647\u0627\u06cc \u0645\u062e\u0641\u06cc \u0628\u0631\u0627\u06cc \u0627\u06cc\u062c\u0627\u062f \u0627\u0645\u0646\u06cc\u062a \u0628\u06cc\u0634\u062a\u0631 \u0628\u0631\u0627\u06cc \u0646\u0635\u0628 \u0634\u0645\u0627 \u062e\u0648\u0627\u0647\u062f \u0628\u0648\u062f. \u0648\u0631\u062f\u067e\u0631\u0633 \u06cc\u06a9 \u0645\u0648\u0644\u062f \u0627\u0645\u0646 \u0628\u0631\u0627\u06cc \u0627\u06cc\u0646 \u0645\u0642\u0627\u062f\u06cc\u0631 \u0641\u0631\u0627\u0647\u0645 \u0645\u06cc \u06a9\u0646\u062f \u062a\u0627 \u0645\u062c\u0628\u0648\u0631 \u0646\u0628\u0627\u0634\u06cc\u062f \u0628\u0647 \u062a\u0646\u0647\u0627\u06cc\u06cc \u0628\u0647 \u0627\u0631\u0632\u0634 \u0647\u0627\u06cc \u062e\u0648\u0628 \u062f\u0633\u062a \u067e\u06cc\u062f\u0627 \u06a9\u0646\u06cc\u062f. \u0627\u06cc\u0646\u0647\u0627 \u0641\u0642\u0637 \u0628\u0647 \u0635\u0648\u0631\u062a \u062f\u0627\u062e\u0644\u06cc \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc \u0634\u0648\u0646\u062f\u060c \u0628\u0646\u0627\u0628\u0631\u0627\u06cc\u0646 \u062f\u0627\u0634\u062a\u0646 \u0645\u0642\u0627\u062f\u06cc\u0631 \u067e\u06cc\u0686\u06cc\u062f\u0647 \u0648 \u0627\u0645\u0646 \u062f\u0631 \u0627\u06cc\u0646\u062c\u0627 \u0628\u0647 \u0642\u0627\u0628\u0644\u06cc\u062a \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0622\u0633\u06cc\u0628\u06cc \u0646\u0645\u06cc \u0631\u0633\u0627\u0646\u062f.<\/p>\n<p>\u0628\u0631\u0627\u06cc \u06af\u0631\u0641\u062a\u0646 \u0645\u0642\u0627\u062f\u06cc\u0631 \u0627\u06cc\u0645\u0646 \u0627\u0632 \u0645\u0648\u0644\u062f \u06a9\u0644\u06cc\u062f \u0645\u062e\u0641\u06cc \u0648\u0631\u062f\u067e\u0631\u0633\u060c \u062a\u0627\u06cc\u067e \u06a9\u0646\u06cc\u062f:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>curl -s https:\/\/api.wordpress.org\/secret-key\/1.1\/salt\/<\/code><\/pre>\n<\/div>\n<p>\u0628\u0627 \u0627\u06cc\u0646 \u06a9\u0627\u0631 \u062a\u0639\u062f\u0627\u062f\u06cc \u06a9\u0644\u06cc\u062f \u062f\u0631 \u062e\u0631\u0648\u062c\u06cc \u0634\u0645\u0627 \u0686\u0627\u067e \u0645\u06cc \u0634\u0648\u062f. \u0634\u0645\u0627 \u0627\u06cc\u0646 \u0645\u0648\u0627\u0631\u062f \u0631\u0627 \u0628\u0647 \u0635\u0648\u0631\u062a \u0644\u062d\u0638\u0647 \u0627\u06cc \u0628\u0647 \u0641\u0627\u06cc\u0644 wp-config.php \u062e\u0648\u062f \u0627\u0636\u0627\u0641\u0647 \u062e\u0648\u0627\u0647\u06cc\u062f \u06a9\u0631\u062f:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-plain\" data-lang=\"Plain Text\"><code>Output\r\ndefine('AUTH_KEY', 'L4|2Yh(giOtMLHg3#] DO NOT COPY THESE VALUES %G00o|te^5YG@)');\r\ndefine('SECURE_AUTH_KEY', 'DCs-k+MwB90\/-E(=!\/ DO NOT COPY THESE VALUES +WBzDq:7U[#Wn9');\r\ndefine('LOGGED_IN_KEY', '*0kP!|VS.K=;#fPMlO DO NOT COPY THESE VALUES +&amp;[%8xF*,18c @');\r\ndefine('NONCE_KEY', 'fmFPF?UJi&amp;(j-{8=$- DO NOT COPY THESE VALUES CCZ?Q+_~1ZU~;G');\r\ndefine('AUTH_SALT', '@qA7f}2utTEFNdnbEa DO NOT COPY THESE VALUES t}Vw+8=K%20s=a');\r\ndefine('SECURE_AUTH_SALT', '%BW6s+d:7K?-`C%zw4 DO NOT COPY THESE VALUES 70U}PO1ejW+7|8');\r\ndefine('LOGGED_IN_SALT', '-l&gt;F:-dbcWof%4kKmj DO NOT COPY THESE VALUES 8Ypslin3~d|wLD');\r\ndefine('NONCE_SALT', '4J(&lt;`4&amp;&amp;F (WiK9K#] DO NOT COPY THESE VALUES ^ZikS`es#Fo:V6');<\/code><\/pre>\n<\/div>\n<p>\u062e\u0631\u0648\u062c\u06cc \u062f\u0631\u06cc\u0627\u0641\u062a\u06cc \u0631\u0627 \u062f\u0631 \u06a9\u0644\u06cc\u067e \u0628\u0648\u0631\u062f \u062e\u0648\u062f \u06a9\u067e\u06cc \u06a9\u0646\u06cc\u062f\u060c \u0633\u067e\u0633 \u0641\u0627\u06cc\u0644 \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u0631\u0627 \u062f\u0631 \u0648\u06cc\u0631\u0627\u06cc\u0634\u06af\u0631 \u0645\u062a\u0646 \u062e\u0648\u062f \u0628\u0627\u0632 \u06a9\u0646\u06cc\u062f:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>nano ~\/wordpress\/wp-config.php<\/code><\/pre>\n<\/div>\n<p>\u0628\u062e\u0634\u06cc \u0631\u0627 \u067e\u06cc\u062f\u0627 \u06a9\u0646\u06cc\u062f \u06a9\u0647 \u062d\u0627\u0648\u06cc \u0645\u0642\u0627\u062f\u06cc\u0631 \u0633\u0627\u062e\u062a\u06af\u06cc \u0628\u0631\u0627\u06cc \u0622\u0646 \u062a\u0646\u0638\u06cc\u0645\u0627\u062a \u0627\u0633\u062a. \u0686\u06cc\u0632\u06cc \u0634\u0628\u06cc\u0647 \u0628\u0647 \u0627\u06cc\u0646 \u062e\u0648\u0627\u0647\u062f \u0628\u0648\u062f:<\/p>\n<div class=\"hcb_wrap\">\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-php\" data-lang=\"PHP\"><code>. . .\r\ndefine('AUTH_KEY', 'put your unique phrase here');\r\ndefine('SECURE_AUTH_KEY', 'put your unique phrase here');\r\ndefine('LOGGED_IN_KEY', 'put your unique phrase here');\r\ndefine('NONCE_KEY', 'put your unique phrase here');\r\ndefine('AUTH_SALT', 'put your unique phrase here');\r\ndefine('SECURE_AUTH_SALT', 'put your unique phrase here');\r\ndefine('LOGGED_IN_SALT', 'put your unique phrase here');\r\ndefine('NONCE_SALT', 'put your unique phrase here');\r\n. . .<\/code><\/pre>\n<\/div>\n<\/div>\n<p>\u0622\u0646 \u062e\u0637\u0648\u0637 \u0631\u0627 \u062d\u0630\u0641 \u06a9\u0646\u06cc\u062f \u0648 \u0645\u0642\u0627\u062f\u06cc\u0631\u06cc \u0631\u0627 \u06a9\u0647 \u0627\u0632 \u062e\u0637 \u0641\u0631\u0645\u0627\u0646 \u06a9\u067e\u06cc \u06a9\u0631\u062f\u0647 \u0627\u06cc\u062f\u060c \u0642\u0631\u0627\u0631 \u062f\u0647\u06cc\u062f.<\/p>\n<p>\u062f\u0631 \u0645\u0631\u062d\u0644\u0647 \u0628\u0639\u062f\u060c \u0627\u0637\u0644\u0627\u0639\u0627\u062a \u0627\u062a\u0635\u0627\u0644 \u0631\u0627 \u0628\u0631\u0627\u06cc \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 \u0631\u0627\u0647 \u062f\u0648\u0631 \u062e\u0648\u062f \u0648\u0627\u0631\u062f \u06a9\u0646\u06cc\u062f. \u0627\u06cc\u0646 \u062e\u0637\u0648\u0637 \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u062f\u0631 \u0628\u0627\u0644\u0627\u06cc \u0641\u0627\u06cc\u0644 \u0642\u0631\u0627\u0631 \u062f\u0627\u0631\u0646\u062f\u060c \u062f\u0631\u0633\u062a \u0628\u0627\u0644\u0627\u06cc \u062c\u0627\u06cc\u06cc \u06a9\u0647 \u06a9\u0644\u06cc\u062f\u0647\u0627\u06cc \u062e\u0648\u062f \u0631\u0627 \u0686\u0633\u0628\u0627\u0646\u062f\u0647 \u0627\u06cc\u062f. \u0628\u0647 \u06cc\u0627\u062f \u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u06cc\u062f \u06a9\u0647 \u0627\u0632 \u0647\u0645\u0627\u0646 \u0622\u062f\u0631\u0633 IP \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u062f \u06a9\u0647 \u0642\u0628\u0644\u0627\u064b \u062f\u0631 \u0622\u0632\u0645\u0627\u06cc\u0634 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 \u0631\u0627\u0647 \u062f\u0648\u0631 \u062e\u0648\u062f \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0631\u062f\u0647 \u0628\u0648\u062f\u06cc\u062f:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-php\" data-lang=\"PHP\"><code>. . .\r\n\/** The name of the database for WordPress *\/\r\ndefine('DB_NAME', 'wordpress');\r\n\/** MySQL database username *\/\r\ndefine('DB_USER', 'remotewpuser');\r\n\/** MySQL database password *\/\r\ndefine('DB_PASSWORD', 'password');\r\n\/** MySQL hostname *\/\r\ndefine('DB_HOST', 'db_server_ip');\r\n. . .<\/code><\/pre>\n<\/div>\n<p>\u0648 \u062f\u0631 \u0646\u0647\u0627\u06cc\u062a\u060c \u062f\u0631 \u0647\u0631 \u062c\u0627\u06cc\u06cc \u0627\u0632 \u0641\u0627\u06cc\u0644\u060c \u062e\u0637 \u0632\u06cc\u0631 \u0631\u0627 \u0627\u0636\u0627\u0641\u0647 \u06a9\u0646\u06cc\u062f \u06a9\u0647 \u0628\u0647 \u0648\u0631\u062f\u067e\u0631\u0633 \u0645\u06cc\u200c\u06af\u0648\u06cc\u062f \u0627\u0632 \u0627\u062a\u0635\u0627\u0644 SSL \u0628\u0647 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 MySQL \u0645\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u062f:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-php\" data-lang=\"PHP\"><code>define('MYSQL_CLIENT_FLAGS', MYSQLI_CLIENT_SSL);\r\n<\/code><\/pre>\n<\/div>\n<p>\u0630\u062e\u06cc\u0631\u0647 \u06a9\u0646\u06cc\u062f \u0648 \u0641\u0627\u06cc\u0644 \u0631\u0627 \u0628\u0628\u0646\u062f\u06cc\u062f.<\/p>\n<p>\u0633\u067e\u0633\u060c \u0641\u0627\u06cc\u0644\u200c\u0647\u0627 \u0648 \u062f\u0627\u06cc\u0631\u06a9\u062a\u0648\u0631\u06cc\u200c\u0647\u0627\u06cc \u0645\u0648\u062c\u0648\u062f \u062f\u0631 \u0641\u0647\u0631\u0633\u062a ~\/wordpress \u062e\u0648\u062f \u0631\u0627 \u062f\u0631 \u0631\u06cc\u0634\u0647 \u0633\u0646\u062f Nginx \u06a9\u067e\u06cc \u06a9\u0646\u06cc\u062f. \u062a\u0648\u062c\u0647 \u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u06cc\u062f \u06a9\u0647 \u0627\u06cc\u0646 \u062f\u0633\u062a\u0648\u0631 \u0634\u0627\u0645\u0644 \u067e\u0631\u0686\u0645 -a \u0627\u0633\u062a \u062a\u0627 \u0627\u0637\u0645\u06cc\u0646\u0627\u0646 \u062d\u0627\u0635\u0644 \u0634\u0648\u062f \u06a9\u0647 \u062a\u0645\u0627\u0645 \u0645\u062c\u0648\u0632\u0647\u0627\u06cc \u0645\u0648\u062c\u0648\u062f \u0645\u0646\u062a\u0642\u0644 \u0645\u06cc \u0634\u0648\u0646\u062f:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\">sudo cp -a ~\/wordpress\/* \/var\/www\/html<\/pre>\n<\/div>\n<p>\u067e\u0633 \u0627\u0632 \u0627\u06cc\u0646\u060c \u062a\u0646\u0647\u0627 \u06a9\u0627\u0631\u06cc \u06a9\u0647 \u0628\u0627\u06cc\u062f \u0627\u0646\u062c\u0627\u0645 \u062f\u0647\u06cc\u062f \u0627\u06cc\u0646 \u0627\u0633\u062a \u06a9\u0647 \u0645\u0627\u0644\u06a9\u06cc\u062a \u0641\u0627\u06cc\u0644 \u0631\u0627 \u062a\u063a\u06cc\u06cc\u0631 \u062f\u0647\u06cc\u062f. \u0645\u0627\u0644\u06a9\u06cc\u062a \u0647\u0645\u0647 \u0641\u0627\u06cc\u0644\u200c\u0647\u0627\u06cc \u0645\u0648\u062c\u0648\u062f \u062f\u0631 \u0631\u06cc\u0634\u0647 \u0633\u0646\u062f \u0631\u0627 \u0628\u0647 www-data\u060c \u06a9\u0627\u0631\u0628\u0631 \u067e\u06cc\u0634\u200c\u0641\u0631\u0636 \u0648\u0628 \u0633\u0631\u0648\u0631 \u0627\u0648\u0628\u0648\u0646\u062a\u0648 \u062a\u063a\u06cc\u06cc\u0631 \u062f\u0647\u06cc\u062f:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>sudo chown -R www-data:www-data \/var\/www\/html<\/code><\/pre>\n<\/div>\n<p>\u0628\u0627 \u0622\u0646\u060c \u0648\u0631\u062f\u067e\u0631\u0633 \u0646\u0635\u0628 \u0634\u062f\u0647 \u0627\u0633\u062a \u0648 \u0634\u0645\u0627 \u0622\u0645\u0627\u062f\u0647 \u0647\u0633\u062a\u06cc\u062f \u062a\u0627 \u0627\u0632 \u0637\u0631\u06cc\u0642 \u0631\u0648\u0627\u0644 \u0631\u0627\u0647 \u0627\u0646\u062f\u0627\u0632\u06cc \u0645\u0628\u062a\u0646\u06cc \u0628\u0631 \u0648\u0628 \u0622\u0646 \u0631\u0627 \u0627\u062c\u0631\u0627 \u06a9\u0646\u06cc\u062f.<\/p>\n<h2 id=\"%d9%85%d8%b1%d8%ad%d9%84%d9%87-5-%d8%b1%d8%a7%d9%87-%d8%a7%d9%86%d8%af%d8%a7%d8%b2%db%8c-%d9%88%d8%b1%d8%af%d9%be%d8%b1%d8%b3-%d8%a7%d8%b2-%d8%b7%d8%b1%db%8c%d9%82-%d8%b1%d8%a7%d8%a8%d8%b7\">\u0645\u0631\u062d\u0644\u0647 5 &#8211; \u0631\u0627\u0647 \u0627\u0646\u062f\u0627\u0632\u06cc \u0648\u0631\u062f\u067e\u0631\u0633 \u0627\u0632 \u0637\u0631\u06cc\u0642 \u0631\u0627\u0628\u0637 \u0648\u0628<\/h2>\n<p>\u0648\u0631\u062f\u067e\u0631\u0633 \u06cc\u06a9 \u0641\u0631\u0622\u06cc\u0646\u062f \u0631\u0627\u0647 \u0627\u0646\u062f\u0627\u0632\u06cc \u0645\u0628\u062a\u0646\u06cc \u0628\u0631 \u0648\u0628 \u062f\u0627\u0631\u062f. \u0647\u0645\u0627\u0646\u0637\u0648\u0631 \u06a9\u0647 \u0622\u0646 \u0631\u0627 \u0645\u0631\u0648\u0631 \u0645\u06cc \u06a9\u0646\u06cc\u062f\u060c \u0686\u0646\u062f \u0633\u0648\u0627\u0644 \u0645\u06cc \u067e\u0631\u0633\u062f \u0648 \u062a\u0645\u0627\u0645 \u062c\u062f\u0627\u0648\u0644 \u0645\u0648\u0631\u062f \u0646\u06cc\u0627\u0632 \u062e\u0648\u062f \u0631\u0627 \u062f\u0631 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 \u0634\u0645\u0627 \u0646\u0635\u0628 \u0645\u06cc \u06a9\u0646\u062f. \u062f\u0631 \u0627\u06cc\u0646\u062c\u0627\u060c \u0645\u0627 \u0645\u0631\u0627\u062d\u0644 \u0627\u0648\u0644\u06cc\u0647 \u0631\u0627\u0647 \u0627\u0646\u062f\u0627\u0632\u06cc \u0648\u0631\u062f\u067e\u0631\u0633 \u0631\u0627 \u0645\u0631\u0648\u0631 \u0645\u06cc \u06a9\u0646\u06cc\u0645\u060c \u06a9\u0647 \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f \u0627\u0632 \u0622\u0646 \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 \u0646\u0642\u0637\u0647 \u0634\u0631\u0648\u0639 \u0628\u0631\u0627\u06cc \u0633\u0627\u062e\u062a \u0648\u0628 \u0633\u0627\u06cc\u062a \u0633\u0641\u0627\u0631\u0634\u06cc \u062e\u0648\u062f \u06a9\u0647 \u0627\u0632 \u06cc\u06a9 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 \u0627\u0632 \u0631\u0627\u0647 \u062f\u0648\u0631 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc \u06a9\u0646\u062f\u060c \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u062f.<\/p>\n<p>\u0628\u0647 \u0646\u0627\u0645 \u062f\u0627\u0645\u0646\u0647 (\u06cc\u0627 \u0622\u062f\u0631\u0633 IP \u0639\u0645\u0648\u0645\u06cc) \u0645\u0631\u062a\u0628\u0637 \u0628\u0627 \u0648\u0628 \u0633\u0631\u0648\u0631 \u062e\u0648\u062f \u0628\u0631\u0648\u06cc\u062f:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-plain\" data-lang=\"Plain Text\"><code>http:\/\/example.com<\/code><\/pre>\n<\/div>\n<p>\u06cc\u06a9 \u0635\u0641\u062d\u0647 \u0627\u0646\u062a\u062e\u0627\u0628 \u0632\u0628\u0627\u0646 \u0628\u0631\u0627\u06cc \u0646\u0635\u0628 \u06a9\u0646\u0646\u062f\u0647 \u0648\u0631\u062f\u067e\u0631\u0633 \u062e\u0648\u0627\u0647\u06cc\u062f \u062f\u06cc\u062f. \u0632\u0628\u0627\u0646 \u0645\u0646\u0627\u0633\u0628 \u0631\u0627 \u0627\u0646\u062a\u062e\u0627\u0628 \u06a9\u0646\u06cc\u062f \u0648 \u0631\u0648\u06cc \u0635\u0641\u062d\u0647 \u0646\u0635\u0628 \u0627\u0635\u0644\u06cc \u06a9\u0644\u06cc\u06a9 \u06a9\u0646\u06cc\u062f:<\/p>\n<p><img  loading=\"lazy\"  decoding=\"async\"  src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEUAAP+KeNJXAAAAAXRSTlMAQObYZgAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAApJREFUCNdjYAAAAAIAAeIhvDMAAAAASUVORK5CYII=\"  alt=\"\"  width=\"666\"  height=\"700\"  class=\"aligncenter wp-image-15849 size-full pk-lazyload\"  data-pk-sizes=\"auto\"  data-ls-sizes=\"auto, (max-width: 666px) 100vw, 666px\"  data-pk-src=\"https:\/\/cdn.itpiran.net\/2024\/07\/06203143\/1-1.png\"  data-pk-srcset=\"https:\/\/cdn.itpiran.net\/2024\/07\/06203143\/1-1.png 666w, https:\/\/cdn.itpiran.net\/2024\/07\/06203143\/1-1-285x300.png 285w, https:\/\/cdn.itpiran.net\/2024\/07\/06203143\/1-1-110x116.png 110w, https:\/\/cdn.itpiran.net\/2024\/07\/06203143\/1-1-200x210.png 200w, https:\/\/cdn.itpiran.net\/2024\/07\/06203143\/1-1-380x399.png 380w, https:\/\/cdn.itpiran.net\/2024\/07\/06203143\/1-1-255x268.png 255w, https:\/\/cdn.itpiran.net\/2024\/07\/06203143\/1-1-300x315.png 300w, https:\/\/cdn.itpiran.net\/2024\/07\/06203143\/1-1-550x578.png 550w\" ><\/p>\n<p>\u0647\u0646\u06af\u0627\u0645\u06cc \u06a9\u0647 \u0627\u0637\u0644\u0627\u0639\u0627\u062a \u062e\u0648\u062f \u0631\u0627 \u0627\u0631\u0633\u0627\u0644 \u06a9\u0631\u062f\u06cc\u062f\u060c \u0628\u0627\u06cc\u062f \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u062d\u0633\u0627\u0628 \u06a9\u0627\u0631\u0628\u0631\u06cc \u06a9\u0647 \u0627\u06cc\u062c\u0627\u062f \u06a9\u0631\u062f\u0647 \u0627\u06cc\u062f \u0648\u0627\u0631\u062f \u0631\u0627\u0628\u0637 \u0645\u062f\u06cc\u0631\u06cc\u062a \u0648\u0631\u062f\u067e\u0631\u0633 \u0634\u0648\u06cc\u062f. \u0633\u067e\u0633 \u0628\u0647 \u062f\u0627\u0634\u0628\u0648\u0631\u062f\u06cc \u0647\u062f\u0627\u06cc\u062a \u062e\u0648\u0627\u0647\u06cc\u062f \u0634\u062f \u06a9\u0647 \u062f\u0631 \u0622\u0646 \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f \u0633\u0627\u06cc\u062a \u062c\u062f\u06cc\u062f \u0648\u0631\u062f\u067e\u0631\u0633 \u062e\u0648\u062f \u0631\u0627 \u0633\u0641\u0627\u0631\u0634\u06cc \u06a9\u0646\u06cc\u062f.<\/p>\n<h2 id=\"%d9%86%d8%aa%db%8c%d8%ac%d9%87\">\u0646\u062a\u06cc\u062c\u0647<\/h2>\n<p>\u0628\u0627 \u062f\u0646\u0628\u0627\u0644 \u06a9\u0631\u062f\u0646 \u0627\u06cc\u0646 \u0622\u0645\u0648\u0632\u0634\u060c \u0634\u0645\u0627 \u06cc\u06a9 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 MySQL \u0631\u0627 \u0628\u0631\u0627\u06cc \u067e\u0630\u06cc\u0631\u0634 \u0627\u062a\u0635\u0627\u0644\u0627\u062a \u0645\u062d\u0627\u0641\u0638\u062a \u0634\u062f\u0647 \u0628\u0627 SSL \u0627\u0632 \u0646\u0635\u0628 \u0648\u0631\u062f\u067e\u0631\u0633 \u0631\u0627\u0647 \u062f\u0648\u0631 \u0631\u0627\u0647 \u0627\u0646\u062f\u0627\u0632\u06cc \u06a9\u0631\u062f\u0647 \u0627\u06cc\u062f. \u062f\u0633\u062a\u0648\u0631\u0627\u062a \u0648 \u062a\u06a9\u0646\u06cc\u06a9 \u0647\u0627\u06cc \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0634\u062f\u0647 \u062f\u0631 \u0627\u06cc\u0646 \u0631\u0627\u0647\u0646\u0645\u0627 \u0628\u0631\u0627\u06cc \u0647\u0631 \u0628\u0631\u0646\u0627\u0645\u0647 \u0648\u0628 \u06a9\u0647 \u0628\u0647 \u0647\u0631 \u0632\u0628\u0627\u0646 \u0628\u0631\u0646\u0627\u0645\u0647 \u0646\u0648\u06cc\u0633\u06cc \u0646\u0648\u0634\u062a\u0647 \u0634\u062f\u0647 \u0627\u0633\u062a \u0642\u0627\u0628\u0644 \u0627\u062c\u0631\u0627 \u0627\u0633\u062a\u060c \u0627\u0645\u0627 \u062c\u0632\u0626\u06cc\u0627\u062a \u067e\u06cc\u0627\u062f\u0647 \u0633\u0627\u0632\u06cc \u062e\u0627\u0635 \u0645\u062a\u0641\u0627\u0648\u062a \u062e\u0648\u0627\u0647\u062f \u0628\u0648\u062f. \u0628\u0631\u0627\u06cc \u0627\u0637\u0644\u0627\u0639\u0627\u062a \u0628\u06cc\u0634\u062a\u0631 \u0628\u0647 \u0645\u0633\u062a\u0646\u062f\u0627\u062a \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 \u0628\u0631\u0646\u0627\u0645\u0647 \u06cc\u0627 \u0632\u0628\u0627\u0646 \u062e\u0648\u062f \u0645\u0631\u0627\u062c\u0639\u0647 \u06a9\u0646\u06cc\u062f.<\/p>\n","protected":false},"excerpt":{"rendered":"\u5f15\u8a00 \u968f\u7740\u60a8\u7684\u5e94\u7528\u6216\u7f51\u7ad9\u7684\u53d1\u5c55\uff0c\u5b83\u53ef\u80fd\u4f1a\u8fbe\u5230\u8fd9\u6837\u4e00\u4e2a\u9636\u6bb5\u2026\u2026","protected":false},"author":1,"featured_media":15848,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_yoast_wpseo_focuskw":"\u0646\u062d\u0648\u0647 \u0631\u0627\u0647 \u0627\u0646\u062f\u0627\u0632\u06cc \u06cc\u06a9 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 \u0627\u0632 \u0631\u0627\u0647 \u062f\u0648\u0631 \u0628\u0631\u0627\u06cc \u0628\u0647\u06cc\u0646\u0647 \u0633\u0627\u0632\u06cc \u0639\u0645\u0644\u06a9\u0631\u062f \u0633\u0627\u06cc\u062a \u0628\u0627 MySQL \u062f\u0631 \u0627\u0648\u0628\u0648\u0646\u062a\u0648 18.04","_yoast_wpseo_title":"","_yoast_wpseo_metadesc":"","_yoast_wpseo_canonical":"","_yoast_wpseo_opengraph-description":"","_yoast_wpseo_opengraph-image":"","_yoast_wpseo_twitter-description":"","_yoast_wpseo_twitter-image":"","_yoast_wpseo_focuskeywords":"","_yoast_wpseo_primary_category":"193","footnotes":""},"categories":[193,363,349,369,248],"tags":[403,391,368,246],"class_list":{"0":"post-15847","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-tutorials","8":"category-programming","9":"category-database","10":"category-os","11":"category-wordpress","12":"tag-data-base","13":"tag-mysql","14":"tag-ubuntu","15":"tag-wordpress"},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>\u0646\u062d\u0648\u0647 \u0631\u0627\u0647 \u0627\u0646\u062f\u0627\u0632\u06cc \u06cc\u06a9 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 \u0627\u0632 \u0631\u0627\u0647 \u062f\u0648\u0631 \u0628\u0631\u0627\u06cc \u0628\u0647\u06cc\u0646\u0647 \u0633\u0627\u0632\u06cc \u0639\u0645\u0644\u06a9\u0631\u062f \u0633\u0627\u06cc\u062a \u0628\u0627 MySQL \u062f\u0631 \u0627\u0648\u0628\u0648\u0646\u062a\u0648 18.04 - \u0628\u0644\u0627\u06af ITPiran<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.itpiran.net\/blog\/zh\/tutorials\/how-to-set-up-a-remote-database-to-optimize-site-performance-with-mysql-on-ubuntu-18-04\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u0646\u062d\u0648\u0647 \u0631\u0627\u0647 \u0627\u0646\u062f\u0627\u0632\u06cc \u06cc\u06a9 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 \u0627\u0632 \u0631\u0627\u0647 \u062f\u0648\u0631 \u0628\u0631\u0627\u06cc \u0628\u0647\u06cc\u0646\u0647 \u0633\u0627\u0632\u06cc \u0639\u0645\u0644\u06a9\u0631\u062f \u0633\u0627\u06cc\u062a \u0628\u0627 MySQL \u062f\u0631 \u0627\u0648\u0628\u0648\u0646\u062a\u0648 18.04 - \u0628\u0644\u0627\u06af ITPiran\" \/>\n<meta property=\"og:description\" content=\"\u0645\u0642\u062f\u0645\u0647 \u0647\u0645\u0627\u0646\u0637\u0648\u0631 \u06a9\u0647 \u0628\u0631\u0646\u0627\u0645\u0647 \u06cc\u0627 \u0648\u0628 \u0633\u0627\u06cc\u062a \u0634\u0645\u0627 \u0631\u0634\u062f \u0645\u06cc \u06a9\u0646\u062f\u060c \u0645\u0645\u06a9\u0646 \u0627\u0633\u062a \u0628\u0647 \u0646\u0642\u0637\u0647 \u0627\u06cc \u0628\u0631\u0633\u062f \u06a9\u0647&hellip;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.itpiran.net\/blog\/zh\/tutorials\/how-to-set-up-a-remote-database-to-optimize-site-performance-with-mysql-on-ubuntu-18-04\/\" \/>\n<meta property=\"og:site_name\" content=\"\u0628\u0644\u0627\u06af ITPiran\" \/>\n<meta property=\"article:published_time\" content=\"2024-07-06T17:02:58+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.itpiran.net\/2024\/07\/06195312\/ssqq.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1793\" \/>\n\t<meta property=\"og:image:height\" content=\"1110\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/tutorials\\\/how-to-set-up-a-remote-database-to-optimize-site-performance-with-mysql-on-ubuntu-18-04\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/tutorials\\\/how-to-set-up-a-remote-database-to-optimize-site-performance-with-mysql-on-ubuntu-18-04\\\/\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/#\\\/schema\\\/person\\\/04ed27b919baca468a2273f8e4318f81\"},\"headline\":\"\u0646\u062d\u0648\u0647 \u0631\u0627\u0647 \u0627\u0646\u062f\u0627\u0632\u06cc \u06cc\u06a9 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 \u0627\u0632 \u0631\u0627\u0647 \u062f\u0648\u0631 \u0628\u0631\u0627\u06cc \u0628\u0647\u06cc\u0646\u0647 \u0633\u0627\u0632\u06cc \u0639\u0645\u0644\u06a9\u0631\u062f \u0633\u0627\u06cc\u062a \u0628\u0627 MySQL \u062f\u0631 \u0627\u0648\u0628\u0648\u0646\u062a\u0648 18.04\",\"datePublished\":\"2024-07-06T17:02:58+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/tutorials\\\/how-to-set-up-a-remote-database-to-optimize-site-performance-with-mysql-on-ubuntu-18-04\\\/\"},\"wordCount\":129,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/tutorials\\\/how-to-set-up-a-remote-database-to-optimize-site-performance-with-mysql-on-ubuntu-18-04\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/cdn.itpiran.net\\\/2024\\\/07\\\/06195312\\\/ssqq.jpg\",\"keywords\":[\"data base\",\"MySQL\",\"Ubuntu\",\"wordpress\"],\"articleSection\":[\"\u0622\u0645\u0648\u0632\u0634\u06cc\",\"\u0628\u0631\u0646\u0627\u0645\u0647 \u0646\u0648\u06cc\u0633\u06cc\",\"\u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647\",\"\u0633\u06cc\u0633\u062a\u0645 \u0639\u0627\u0645\u0644\",\"\u0648\u0631\u062f\u067e\u0631\u0633\"],\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/tutorials\\\/how-to-set-up-a-remote-database-to-optimize-site-performance-with-mysql-on-ubuntu-18-04\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/tutorials\\\/how-to-set-up-a-remote-database-to-optimize-site-performance-with-mysql-on-ubuntu-18-04\\\/\",\"url\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/tutorials\\\/how-to-set-up-a-remote-database-to-optimize-site-performance-with-mysql-on-ubuntu-18-04\\\/\",\"name\":\"\u0646\u062d\u0648\u0647 \u0631\u0627\u0647 \u0627\u0646\u062f\u0627\u0632\u06cc \u06cc\u06a9 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 \u0627\u0632 \u0631\u0627\u0647 \u062f\u0648\u0631 \u0628\u0631\u0627\u06cc \u0628\u0647\u06cc\u0646\u0647 \u0633\u0627\u0632\u06cc \u0639\u0645\u0644\u06a9\u0631\u062f \u0633\u0627\u06cc\u062a \u0628\u0627 MySQL \u062f\u0631 \u0627\u0648\u0628\u0648\u0646\u062a\u0648 18.04 - \u0628\u0644\u0627\u06af ITPiran\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/tutorials\\\/how-to-set-up-a-remote-database-to-optimize-site-performance-with-mysql-on-ubuntu-18-04\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/tutorials\\\/how-to-set-up-a-remote-database-to-optimize-site-performance-with-mysql-on-ubuntu-18-04\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/cdn.itpiran.net\\\/2024\\\/07\\\/06195312\\\/ssqq.jpg\",\"datePublished\":\"2024-07-06T17:02:58+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/tutorials\\\/how-to-set-up-a-remote-database-to-optimize-site-performance-with-mysql-on-ubuntu-18-04\\\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/tutorials\\\/how-to-set-up-a-remote-database-to-optimize-site-performance-with-mysql-on-ubuntu-18-04\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/tutorials\\\/how-to-set-up-a-remote-database-to-optimize-site-performance-with-mysql-on-ubuntu-18-04\\\/#primaryimage\",\"url\":\"https:\\\/\\\/cdn.itpiran.net\\\/2024\\\/07\\\/06195312\\\/ssqq.jpg\",\"contentUrl\":\"https:\\\/\\\/cdn.itpiran.net\\\/2024\\\/07\\\/06195312\\\/ssqq.jpg\",\"width\":1793,\"height\":1110},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/tutorials\\\/how-to-set-up-a-remote-database-to-optimize-site-performance-with-mysql-on-ubuntu-18-04\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u0622\u0645\u0648\u0632\u0634\u06cc\",\"item\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/category\\\/tutorials\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"\u0646\u062d\u0648\u0647 \u0631\u0627\u0647 \u0627\u0646\u062f\u0627\u0632\u06cc \u06cc\u06a9 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 \u0627\u0632 \u0631\u0627\u0647 \u062f\u0648\u0631 \u0628\u0631\u0627\u06cc \u0628\u0647\u06cc\u0646\u0647 \u0633\u0627\u0632\u06cc \u0639\u0645\u0644\u06a9\u0631\u062f \u0633\u0627\u06cc\u062a \u0628\u0627 MySQL \u062f\u0631 \u0627\u0648\u0628\u0648\u0646\u062a\u0648 18.04\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/\",\"name\":\"\u0628\u0644\u0627\u06af ITPiran\",\"description\":\"\u0627\u062e\u0628\u0627\u0631 \u0648 \u0645\u0642\u0627\u0644\u0627\u062a \u062a\u062c\u0627\u0631\u062a \u067e\u0627\u06cc\u062f\u0627\u0631 \u0627\u06cc\u0631\u0627\u0646\u06cc\u0627\u0646\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/#organization\",\"name\":\"\u0628\u0644\u0627\u06af \u062a\u062c\u0627\u0631\u062a \u067e\u0627\u06cc\u062f\u0627\u0631 \u0627\u06cc\u0631\u0627\u0646\u06cc\u0627\u0646\",\"alternateName\":\"ITPIran Blog\",\"url\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/cdn.itpiran.net\\\/2023\\\/12\\\/27150508\\\/cropped-ITPIRAN-BLOG-LOGO-2.png\",\"contentUrl\":\"https:\\\/\\\/cdn.itpiran.net\\\/2023\\\/12\\\/27150508\\\/cropped-ITPIRAN-BLOG-LOGO-2.png\",\"width\":512,\"height\":512,\"caption\":\"\u0628\u0644\u0627\u06af \u062a\u062c\u0627\u0631\u062a \u067e\u0627\u06cc\u062f\u0627\u0631 \u0627\u06cc\u0631\u0627\u0646\u06cc\u0627\u0646\"},\"image\":{\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/#\\\/schema\\\/person\\\/04ed27b919baca468a2273f8e4318f81\",\"name\":\"admin\",\"url\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/zh\\\/author\\\/admin\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u5982\u4f55\u5728 Ubuntu 18.04 \u4e0a\u4f7f\u7528 MySQL \u8bbe\u7f6e\u8fdc\u7a0b\u6570\u636e\u5e93\u4ee5\u4f18\u5316\u7f51\u7ad9\u6027\u80fd - ITPiran \u535a\u5ba2","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.itpiran.net\/blog\/zh\/tutorials\/how-to-set-up-a-remote-database-to-optimize-site-performance-with-mysql-on-ubuntu-18-04\/","og_locale":"zh_CN","og_type":"article","og_title":"\u0646\u062d\u0648\u0647 \u0631\u0627\u0647 \u0627\u0646\u062f\u0627\u0632\u06cc \u06cc\u06a9 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 \u0627\u0632 \u0631\u0627\u0647 \u062f\u0648\u0631 \u0628\u0631\u0627\u06cc \u0628\u0647\u06cc\u0646\u0647 \u0633\u0627\u0632\u06cc \u0639\u0645\u0644\u06a9\u0631\u062f \u0633\u0627\u06cc\u062a \u0628\u0627 MySQL \u062f\u0631 \u0627\u0648\u0628\u0648\u0646\u062a\u0648 18.04 - \u0628\u0644\u0627\u06af ITPiran","og_description":"\u0645\u0642\u062f\u0645\u0647 \u0647\u0645\u0627\u0646\u0637\u0648\u0631 \u06a9\u0647 \u0628\u0631\u0646\u0627\u0645\u0647 \u06cc\u0627 \u0648\u0628 \u0633\u0627\u06cc\u062a \u0634\u0645\u0627 \u0631\u0634\u062f \u0645\u06cc \u06a9\u0646\u062f\u060c \u0645\u0645\u06a9\u0646 \u0627\u0633\u062a \u0628\u0647 \u0646\u0642\u0637\u0647 \u0627\u06cc \u0628\u0631\u0633\u062f \u06a9\u0647&hellip;","og_url":"https:\/\/www.itpiran.net\/blog\/zh\/tutorials\/how-to-set-up-a-remote-database-to-optimize-site-performance-with-mysql-on-ubuntu-18-04\/","og_site_name":"\u0628\u0644\u0627\u06af ITPiran","article_published_time":"2024-07-06T17:02:58+00:00","og_image":[{"width":1793,"height":1110,"url":"https:\/\/cdn.itpiran.net\/2024\/07\/06195312\/ssqq.jpg","type":"image\/jpeg"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.itpiran.net\/blog\/tutorials\/how-to-set-up-a-remote-database-to-optimize-site-performance-with-mysql-on-ubuntu-18-04\/#article","isPartOf":{"@id":"https:\/\/www.itpiran.net\/blog\/tutorials\/how-to-set-up-a-remote-database-to-optimize-site-performance-with-mysql-on-ubuntu-18-04\/"},"author":{"name":"admin","@id":"https:\/\/www.itpiran.net\/blog\/#\/schema\/person\/04ed27b919baca468a2273f8e4318f81"},"headline":"\u0646\u062d\u0648\u0647 \u0631\u0627\u0647 \u0627\u0646\u062f\u0627\u0632\u06cc \u06cc\u06a9 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 \u0627\u0632 \u0631\u0627\u0647 \u062f\u0648\u0631 \u0628\u0631\u0627\u06cc \u0628\u0647\u06cc\u0646\u0647 \u0633\u0627\u0632\u06cc \u0639\u0645\u0644\u06a9\u0631\u062f \u0633\u0627\u06cc\u062a \u0628\u0627 MySQL \u062f\u0631 \u0627\u0648\u0628\u0648\u0646\u062a\u0648 18.04","datePublished":"2024-07-06T17:02:58+00:00","mainEntityOfPage":{"@id":"https:\/\/www.itpiran.net\/blog\/tutorials\/how-to-set-up-a-remote-database-to-optimize-site-performance-with-mysql-on-ubuntu-18-04\/"},"wordCount":129,"commentCount":0,"publisher":{"@id":"https:\/\/www.itpiran.net\/blog\/#organization"},"image":{"@id":"https:\/\/www.itpiran.net\/blog\/tutorials\/how-to-set-up-a-remote-database-to-optimize-site-performance-with-mysql-on-ubuntu-18-04\/#primaryimage"},"thumbnailUrl":"https:\/\/cdn.itpiran.net\/2024\/07\/06195312\/ssqq.jpg","keywords":["data base","MySQL","Ubuntu","wordpress"],"articleSection":["\u0622\u0645\u0648\u0632\u0634\u06cc","\u0628\u0631\u0646\u0627\u0645\u0647 \u0646\u0648\u06cc\u0633\u06cc","\u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647","\u0633\u06cc\u0633\u062a\u0645 \u0639\u0627\u0645\u0644","\u0648\u0631\u062f\u067e\u0631\u0633"],"inLanguage":"zh-Hans","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.itpiran.net\/blog\/tutorials\/how-to-set-up-a-remote-database-to-optimize-site-performance-with-mysql-on-ubuntu-18-04\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.itpiran.net\/blog\/tutorials\/how-to-set-up-a-remote-database-to-optimize-site-performance-with-mysql-on-ubuntu-18-04\/","url":"https:\/\/www.itpiran.net\/blog\/tutorials\/how-to-set-up-a-remote-database-to-optimize-site-performance-with-mysql-on-ubuntu-18-04\/","name":"\u5982\u4f55\u5728 Ubuntu 18.04 \u4e0a\u4f7f\u7528 MySQL \u8bbe\u7f6e\u8fdc\u7a0b\u6570\u636e\u5e93\u4ee5\u4f18\u5316\u7f51\u7ad9\u6027\u80fd - ITPiran \u535a\u5ba2","isPartOf":{"@id":"https:\/\/www.itpiran.net\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.itpiran.net\/blog\/tutorials\/how-to-set-up-a-remote-database-to-optimize-site-performance-with-mysql-on-ubuntu-18-04\/#primaryimage"},"image":{"@id":"https:\/\/www.itpiran.net\/blog\/tutorials\/how-to-set-up-a-remote-database-to-optimize-site-performance-with-mysql-on-ubuntu-18-04\/#primaryimage"},"thumbnailUrl":"https:\/\/cdn.itpiran.net\/2024\/07\/06195312\/ssqq.jpg","datePublished":"2024-07-06T17:02:58+00:00","breadcrumb":{"@id":"https:\/\/www.itpiran.net\/blog\/tutorials\/how-to-set-up-a-remote-database-to-optimize-site-performance-with-mysql-on-ubuntu-18-04\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.itpiran.net\/blog\/tutorials\/how-to-set-up-a-remote-database-to-optimize-site-performance-with-mysql-on-ubuntu-18-04\/"]}]},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.itpiran.net\/blog\/tutorials\/how-to-set-up-a-remote-database-to-optimize-site-performance-with-mysql-on-ubuntu-18-04\/#primaryimage","url":"https:\/\/cdn.itpiran.net\/2024\/07\/06195312\/ssqq.jpg","contentUrl":"https:\/\/cdn.itpiran.net\/2024\/07\/06195312\/ssqq.jpg","width":1793,"height":1110},{"@type":"BreadcrumbList","@id":"https:\/\/www.itpiran.net\/blog\/tutorials\/how-to-set-up-a-remote-database-to-optimize-site-performance-with-mysql-on-ubuntu-18-04\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.itpiran.net\/blog\/"},{"@type":"ListItem","position":2,"name":"\u0622\u0645\u0648\u0632\u0634\u06cc","item":"https:\/\/www.itpiran.net\/blog\/category\/tutorials\/"},{"@type":"ListItem","position":3,"name":"\u0646\u062d\u0648\u0647 \u0631\u0627\u0647 \u0627\u0646\u062f\u0627\u0632\u06cc \u06cc\u06a9 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 \u0627\u0632 \u0631\u0627\u0647 \u062f\u0648\u0631 \u0628\u0631\u0627\u06cc \u0628\u0647\u06cc\u0646\u0647 \u0633\u0627\u0632\u06cc \u0639\u0645\u0644\u06a9\u0631\u062f \u0633\u0627\u06cc\u062a \u0628\u0627 MySQL \u062f\u0631 \u0627\u0648\u0628\u0648\u0646\u062a\u0648 18.04"}]},{"@type":"WebSite","@id":"https:\/\/www.itpiran.net\/blog\/#website","url":"https:\/\/www.itpiran.net\/blog\/","name":"ITPiran\u535a\u5ba2","description":"\u4f0a\u6717\u53ef\u6301\u7eed\u8d38\u6613\u65b0\u95fb\u548c\u6587\u7ae0","publisher":{"@id":"https:\/\/www.itpiran.net\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.itpiran.net\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"zh-Hans"},{"@type":"Organization","@id":"https:\/\/www.itpiran.net\/blog\/#organization","name":"\u4f0a\u6717\u53ef\u6301\u7eed\u5546\u4e1a\u535a\u5ba2","alternateName":"ITPIran Blog","url":"https:\/\/www.itpiran.net\/blog\/","logo":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.itpiran.net\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/cdn.itpiran.net\/2023\/12\/27150508\/cropped-ITPIRAN-BLOG-LOGO-2.png","contentUrl":"https:\/\/cdn.itpiran.net\/2023\/12\/27150508\/cropped-ITPIRAN-BLOG-LOGO-2.png","width":512,"height":512,"caption":"\u0628\u0644\u0627\u06af \u062a\u062c\u0627\u0631\u062a \u067e\u0627\u06cc\u062f\u0627\u0631 \u0627\u06cc\u0631\u0627\u0646\u06cc\u0627\u0646"},"image":{"@id":"https:\/\/www.itpiran.net\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.itpiran.net\/blog\/#\/schema\/person\/04ed27b919baca468a2273f8e4318f81","name":"\u884c\u653f","url":"https:\/\/www.itpiran.net\/blog\/zh\/author\/admin\/"}]}},"_links":{"self":[{"href":"https:\/\/www.itpiran.net\/blog\/zh\/wp-json\/wp\/v2\/posts\/15847","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.itpiran.net\/blog\/zh\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.itpiran.net\/blog\/zh\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.itpiran.net\/blog\/zh\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.itpiran.net\/blog\/zh\/wp-json\/wp\/v2\/comments?post=15847"}],"version-history":[{"count":1,"href":"https:\/\/www.itpiran.net\/blog\/zh\/wp-json\/wp\/v2\/posts\/15847\/revisions"}],"predecessor-version":[{"id":15850,"href":"https:\/\/www.itpiran.net\/blog\/zh\/wp-json\/wp\/v2\/posts\/15847\/revisions\/15850"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.itpiran.net\/blog\/zh\/wp-json\/wp\/v2\/media\/15848"}],"wp:attachment":[{"href":"https:\/\/www.itpiran.net\/blog\/zh\/wp-json\/wp\/v2\/media?parent=15847"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.itpiran.net\/blog\/zh\/wp-json\/wp\/v2\/categories?post=15847"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.itpiran.net\/blog\/zh\/wp-json\/wp\/v2\/tags?post=15847"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}