{"id":1119,"date":"2015-06-19T00:03:01","date_gmt":"2015-06-18T21:03:01","guid":{"rendered":"http:\/\/shkuraev.ru\/?p=1119"},"modified":"2021-12-10T21:22:18","modified_gmt":"2021-12-10T18:22:18","slug":"%d0%bf%d1%80%d0%be%d1%81%d1%82%d0%b0%d1%8f-%d1%80%d0%b0%d0%b1%d0%be%d1%82%d0%b0-%d1%81-mysql-%d0%b8%d0%b7-1%d1%81","status":"publish","type":"post","link":"https:\/\/shkuraev.ru\/?p=1119","title":{"rendered":"\u041f\u0440\u043e\u0441\u0442\u0430\u044f \u0440\u0430\u0431\u043e\u0442\u0430 \u0441 MySQL \u0438\u0437 1\u0421"},"content":{"rendered":"\n<div class=\"wp-block-group is-layout-flow wp-block-group-is-layout-flow\"><div class=\"wp-block-group__inner-container\">\n<p>&#171;\u041a\u043b\u0430\u0441\u0441&#187; \u0434\u043b\u044f \u0443\u043f\u0440\u043e\u0449\u0435\u043d\u0438\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 MySQL \u0438\u0437 1\u0421. \u0414\u043b\u044f \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f <a href=\"https:\/\/dev.mysql.com\/downloads\/connector\/odbc\/\" target=\"_blank\" rel=\"noopener\">MySQL ODBC Connector<\/a>. \u041f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442&nbsp;\u043f\u0440\u043e\u0441\u0442\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c \u043b\u044e\u0431\u044b\u0435 \u0432\u0438\u0434\u044b \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u0432 \u0432\u0438\u0434\u0435 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439.<\/p>\n\n\n\n<!--more-->\n\n\n\n<pre class=\"wp-block-preformatted\"><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\">\/\/ \u0414\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043d\u043e\u0432\u044b\u0445 \u0437\u0430\u043f\u0438\u0441\u0435\u0439 \u0432 \u0442\u0430\u0431\u043b\u0438\u0446\u0443 \u0431\u0430\u0437\u044b MySQL\n\/\/ \u041e\u0434\u0438\u043d\u043e\u0447\u043d\u0430\u044f \u0437\u0430\u043f\u0438\u0441\u044c\n\/\/ \u0421\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0435 \u0441\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f\u043c\u0438 \u043f\u043e\u043b\u0435\u0439 \u0434\u043b\u044f \u043d\u043e\u0432\u043e\u0439 \u0437\u0430\u043f\u0438\u0441\u0438 \u0442\u0430\u0431\u043b\u0438\u0446\u044b\n\u0422\u043e\u0432\u0430\u0440 = \u041d\u043e\u0432\u044b\u0439 \u0421\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0435();\n\u0422\u043e\u0432\u0430\u0440[\"product_id\"] = \"158742\";\n\u0422\u043e\u0432\u0430\u0440[\"product_name\"] = \"1\u0421 \u0423\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0442\u043e\u0440\u0433\u043e\u0432\u043b\u0435\u0439 10.3\";\n\u0422\u043e\u0432\u0430\u0440[\"product_price\"] = 12000;\n\n\/\/ \u041f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u0435 \u0437\u0430\u043f\u0440\u043e\u0441\u0430\nMySQL.\u0421\u043e\u0437\u0434\u0430\u0442\u044c\u0417\u0430\u043f\u0440\u043e\u0441(\"INSERT\", \"table_products\", \u0422\u043e\u0432\u0430\u0440);\n\/\/ \u0412\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435\n\u0415\u0441\u043b\u0438 \u041d\u0415 MySQL.\u0412\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c\u0417\u0430\u043f\u0440\u043e\u0441() \u0422\u043e\u0433\u0434\u0430\n   \u0421\u043e\u043e\u0431\u0449\u0438\u0442\u044c(MySQL.\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435\u041e\u0448\u0438\u0431\u043a\u0438);\n   \u0412\u043e\u0437\u0432\u0440\u0430\u0442 \u041b\u043e\u0436\u044c;\n\u041a\u043e\u043d\u0435\u0446\u0415\u0441\u043b\u0438;\n\n\/\/ \u041d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0437\u0430\u043f\u0438\u0441\u0435\u0439\n\/\/ \u041c\u0430\u0441\u0441\u0438\u0432 \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0438\u044f\n\u041d\u043e\u0432\u044b\u0435\u0422\u043e\u0432\u0430\u0440\u044b = \u041d\u043e\u0432\u044b\u0439 \u041c\u0430\u0441\u0441\u0438\u0432();\n\n\u0422\u043e\u0432\u0430\u0440 = \u041d\u043e\u0432\u044b\u0439 \u0421\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0435();\n\u0422\u043e\u0432\u0430\u0440[\"product_id\"] = \"158742\";\n\u0422\u043e\u0432\u0430\u0440[\"product_name\"] = \"1\u0421 \u0423\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0442\u043e\u0440\u0433\u043e\u0432\u043b\u0435\u0439, \u0440\u0435\u0434\u0430\u043a\u0446\u0438\u044f 10.3\";\n\u0422\u043e\u0432\u0430\u0440[\"product_price\"] = 12000;\n\u041d\u043e\u0432\u044b\u0435\u0422\u043e\u0432\u0430\u0440\u044b.\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c(\u0422\u043e\u0432\u0430\u0440);\n\n\u0422\u043e\u0432\u0430\u0440 = \u041d\u043e\u0432\u044b\u0439 \u0421\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0435();\n\u0422\u043e\u0432\u0430\u0440[\"product_id\"] = \"158743\";\n\u0422\u043e\u0432\u0430\u0440[\"product_name\"] = \"1\u0421 \u0423\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0442\u043e\u0440\u0433\u043e\u0432\u043b\u0435\u0439, \u0440\u0435\u0434\u0430\u043a\u0446\u0438\u044f 11\";\n\u0422\u043e\u0432\u0430\u0440[\"product_price\"] = 12500;\n\u041d\u043e\u0432\u044b\u0435\u0422\u043e\u0432\u0430\u0440\u044b.\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c(\u0422\u043e\u0432\u0430\u0440);\n\nMySQL.\u0421\u043e\u0437\u0434\u0430\u0442\u044c\u0417\u0430\u043f\u0440\u043e\u0441(\"INSERT\", \"table_products\", \u041d\u043e\u0432\u044b\u0435\u0422\u043e\u0432\u0430\u0440\u044b);\n\u0415\u0441\u043b\u0438 \u041d\u0415 MySQL.\u0412\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c\u0417\u0430\u043f\u0440\u043e\u0441() \u0422\u043e\u0433\u0434\u0430\n   \u0421\u043e\u043e\u0431\u0449\u0438\u0442\u044c(MySQL.\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435\u041e\u0448\u0438\u0431\u043a\u0438);\n   \u0412\u043e\u0437\u0432\u0440\u0430\u0442 \u041b\u043e\u0436\u044c;\n\u041a\u043e\u043d\u0435\u0446\u0415\u0441\u043b\u0438;\n<\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\">\/\/ \u041e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u043f\u043e\u043b\u0435\u0439 \u0437\u0430\u043f\u0438\u0441\u0438\n\/\/ \u0421\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0435 \u0441 \u043d\u043e\u0432\u044b\u043c\u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f\u043c\u0438 \u043f\u043e\u043b\u0435\u0439\n\u0422\u043e\u0432\u0430\u0440 = \u041d\u043e\u0432\u044b\u0439 \u0421\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0435();\n\u0422\u043e\u0432\u0430\u0440[\"product_price\"] = 13000;\n\u0422\u043e\u0432\u0430\u0440[\"product_rest\"] = 10;\n\n\/\/ \u0412 \u0447\u0435\u0442\u0432\u0435\u0440\u0442\u043e\u043c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0435 \u043c\u043e\u0436\u043d\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u0443\u0441\u043b\u043e\u0432\u0438\u0435, \u043f\u043e \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043f\u043e\u0438\u0441\u043a \u0437\u0430\u043f\u0438\u0441\u0435\u0439 \u0434\u043b\u044f \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f\nMySQL.\u0421\u043e\u0437\u0434\u0430\u0442\u044c\u0417\u0430\u043f\u0440\u043e\u0441(\"UPDATE\", \"table_products\", \u0422\u043e\u0432\u0430\u0440, \"WHERE product_id='158742'\");\n\u0415\u0441\u043b\u0438 \u041d\u0415 MySQL.\u0412\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c\u0417\u0430\u043f\u0440\u043e\u0441() \u0422\u043e\u0433\u0434\u0430\n   \u0421\u043e\u043e\u0431\u0449\u0438\u0442\u044c(MySQL.\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435\u041e\u0448\u0438\u0431\u043a\u0438);\n   \u0412\u043e\u0437\u0432\u0440\u0430\u0442 \u041b\u043e\u0436\u044c;\n\u0418\u043d\u0430\u0447\u0435\n   \u0421\u043e\u043e\u0431\u0449\u0438\u0442\u044c(\"\u041e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u043e \u0442\u043e\u0432\u0430\u0440\u043e\u0432: \" + MySQL.\u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e\u0418\u0437\u043c\u0435\u043d\u043d\u044b\u0445\u0417\u0430\u043f\u0438\u0441\u0435\u0439);\n\u041a\u043e\u043d\u0435\u0446\u0415\u0441\u043b\u0438;\n<\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\">\/\/ \u0412\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u043b\u044c\u043d\u043e\u0433\u043e \u0437\u0430\u043f\u0440\u043e\u0441\u0430\n\u0417\u0430\u043f\u0440\u043e\u0441 = \"DELETE FROM table_products WHERE product_id='158742'\";\n\n\u0415\u0441\u043b\u0438 \u041d\u0415 MySQL.\u0412\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c\u0417\u0430\u043f\u0440\u043e\u0441(\u0417\u0430\u043f\u0440\u043e\u0441) \u0422\u043e\u0433\u0434\u0430\n   \u0421\u043e\u043e\u0431\u0449\u0438\u0442\u044c(MySQL.\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435\u041e\u0448\u0438\u0431\u043a\u0438);\n   \u0412\u043e\u0437\u0432\u0440\u0430\u0442 \u041b\u043e\u0436\u044c;\n\u041a\u043e\u043d\u0435\u0446\u0415\u0441\u043b\u0438;\n<\/pre>\n\n\n\n<p>\u0415\u0441\u0442\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0440\u0430\u0437\u0431\u0438\u0442\u044c INSERT \u0437\u0430\u043f\u0440\u043e\u0441 \u0441 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u043c\u0438 \u0437\u0430\u043f\u0438\u0441\u044f\u043c\u0438 \u043d\u0430 \u043f\u043e\u0434\u0437\u0430\u043f\u0440\u043e\u0441\u044b, \u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u0432\u0441\u0442\u0430\u0432\u043b\u044f\u0442\u044c \u0437\u0430 \u0440\u0430\u0437 \u043c\u043d\u043e\u0433\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043f\u0440\u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0438 \u0432 \u0442\u0430\u0431\u043b\u0438\u0446\u0443 \u0431\u043e\u043b\u0435\u0435 1000 \u0437\u0430\u043f\u0438\u0441\u0435\u0439, \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u044d\u0442\u043e 10-\u044e \u0437\u0430\u043f\u0440\u043e\u0441\u0430\u043c\u0438 \u043f\u043e 100 \u0437\u0430\u043f\u0438\u0441\u0435\u0439 \u0432 \u043a\u0430\u0436\u0434\u043e\u043c. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0432\u044b\u0437\u0432\u0430\u0442\u044c \u043a\u043e\u0434:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">   MySQL.\u042d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432\u0412\u0417\u0430\u043f\u0440\u043e\u0441\u0435 = 100;\n<\/pre>\n\n\n\n<p>\u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u0432\u0441\u0435 \u043c\u0430\u0441\u0441\u0438\u0432\u043d\u044b\u0435 INSERT\u044b \u0431\u0443\u0434\u0443\u0442 \u0434\u0435\u043b\u0430\u0442\u044c\u0441\u044f \u043f\u043e 100 \u0437\u0430\u043f\u0438\u0441\u0435\u0439 \u0437\u0430 \u0440\u0430\u0437.<br>\u041f\u043e\u043b\u043d\u044b\u0439 \u0442\u0435\u043a\u0441\u0442 \u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0442\u0430\u043a:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">   MySQL.\u0421\u043e\u0437\u0434\u0430\u0442\u044c\u0417\u0430\u043f\u0440\u043e\u0441(\"INSERT\", \"table_products\", \u041d\u043e\u0432\u044b\u0435\u0422\u043e\u0432\u0430\u0440\u044b);\n   \u0421\u043e\u043e\u0431\u0449\u0438\u0442\u044c(MySQL.\u0422\u0435\u043a\u0441\u0442\u0417\u0430\u043f\u0440\u043e\u0441\u0430());\n<\/pre>\n\n\n\n<p>\u0412 \u0441\u043b\u0443\u0447\u0430\u0435, \u043a\u043e\u0433\u0434\u0430 \u043f\u0440\u044f\u043c\u043e\u0439 \u0434\u043e\u0441\u0442\u0443\u043f \u043a MySQL \u0437\u0430\u043f\u0440\u0435\u0449\u0435\u043d, \u043c\u043e\u0436\u043d\u043e \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f <a href=\"http:\/\/putty.org.ru\/articles\/putty-ssh-tunnels.html\" target=\"_blank\" rel=\"noopener\">ssh-\u0442\u0443\u043d\u043d\u0435\u043b\u0435\u043c<\/a>. \u0412 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0435 \u0435\u0441\u0442\u044c \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0434\u043b\u044f \u0437\u0430\u043f\u0443\u0441\u043a\u0430 Putty.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>MySQL.Putty = \"c:\\Program Files\\PuTTY\\putty.exe\"; \/\/ \u041f\u0443\u0442\u044c \u043a \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0435 Putty (Kitty)\nMySQL.User_put = \"ssh_user\"; \/\/ \u0418\u043c\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0434\u043b\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 ssh-\u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f\nMySQL.Pass_put = \"******\"; \/\/ \u041f\u0430\u0440\u043e\u043b\nMySQL.Name_put = \"session_name\"; \/\/ \u0418\u043c\u044f \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u043d\u043e\u0439 \u0441\u0435\u0441\u0438\u0438 Putty \u0441 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u043c\u0438 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f\n<\/code><\/pre>\n\n\n<p>[stextbox id=&#187;download&#187;]<\/p>\n<p style=\"text-align: left;\"><strong><a href=\"http:\/\/shkuraev.ru\/wp-content\/uploads\/files\/MySQL.zip\">MySQL.epf<\/a><\/strong><\/p>\n<p>[\/stextbox]<\/p>\n<\/div><\/div>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>&#171;\u041a\u043b\u0430\u0441\u0441&#187; \u0434\u043b\u044f \u0443\u043f\u0440\u043e\u0449\u0435\u043d\u0438\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 MySQL \u0438\u0437 1\u0421. \u0414\u043b\u044f \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f MySQL ODBC Connector. \u041f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442&nbsp;\u043f\u0440\u043e\u0441\u0442\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c \u043b\u044e\u0431\u044b\u0435 \u0432\u0438\u0434\u044b \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u0432 \u0432\u0438\u0434\u0435 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439.<\/p>\n","protected":false},"author":1,"featured_media":1143,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[64,63,66,65],"_links":{"self":[{"href":"https:\/\/shkuraev.ru\/index.php?rest_route=\/wp\/v2\/posts\/1119"}],"collection":[{"href":"https:\/\/shkuraev.ru\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/shkuraev.ru\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/shkuraev.ru\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/shkuraev.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1119"}],"version-history":[{"count":44,"href":"https:\/\/shkuraev.ru\/index.php?rest_route=\/wp\/v2\/posts\/1119\/revisions"}],"predecessor-version":[{"id":1278,"href":"https:\/\/shkuraev.ru\/index.php?rest_route=\/wp\/v2\/posts\/1119\/revisions\/1278"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/shkuraev.ru\/index.php?rest_route=\/wp\/v2\/media\/1143"}],"wp:attachment":[{"href":"https:\/\/shkuraev.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1119"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/shkuraev.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1119"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/shkuraev.ru\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1119"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}