{"id":4354,"date":"2014-08-11T16:30:31","date_gmt":"2014-08-11T13:30:31","guid":{"rendered":"http:\/\/skeletor.org.ua\/?p=4354"},"modified":"2014-08-11T16:43:06","modified_gmt":"2014-08-11T13:43:06","slug":"mysql-%d1%83%d0%b4%d0%b0%d0%bb%d0%b5%d0%bd%d0%b8%d0%b5-%d0%b2%d1%80%d0%b5%d0%bc%d0%b5%d0%bd%d0%bd%d0%be%d0%b9-%d1%82%d0%b0%d0%b1%d0%bb%d0%b8%d1%86%d1%8b-%d0%bf%d1%80%d0%b8-crache","status":"publish","type":"post","link":"https:\/\/skeletor.org.ua\/?p=4354","title":{"rendered":"[mysql] \u0423\u0434\u0430\u043b\u0435\u043d\u0438\u0435 \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u043f\u0440\u0438 crach&#8217;e"},"content":{"rendered":"<p>\u041e\u0434\u0438\u043d \u0440\u0430\u0437 \u0431\u044b\u043b \u043a\u0440\u0443\u043f\u043d\u044b\u0439 <strong>alter<\/strong> \u0447\u0435\u0440\u0435\u0437 \u0440\u0435\u043f\u043b\u0438\u043a\u0430\u0446\u0438\u044e \u043d\u0430 <strong>slave<\/strong> \u0438 \u043e\u043d \u0432 \u044d\u0442\u043e\u0442 \u043c\u043e\u043c\u0435\u043d\u0442 \u0440\u0435\u0431\u0443\u0442\u043d\u0443\u043b\u0441\u044f \u043f\u043e \u043f\u0438\u0442\u0430\u043d\u0438\u044e. \u0421\u0430\u043c <strong>mysql<\/strong> \u0441\u0442\u0430\u0440\u0442\u0443\u0435\u0442 \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e, \u043d\u043e \u043f\u0440\u0438 \u043f\u043e\u043f\u044b\u0442\u043a\u0435 \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u043e\u0434\u043d\u0443 \u0438\u0437 \u0442\u0430\u0431\u043b\u0438\u0446 \u043f\u043e\u043b\u0443\u0447\u0430\u044e \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435:<\/p>\n<p><code>ERROR 1050 (42S01): Table 'pirate\/#sql-ib1293541' already exists<\/code><\/p>\n<p>\u0417\u0430\u0445\u043e\u0436\u0443 \u0432 \u043f\u0430\u043f\u043a\u0443 \u0431\u0430\u0437\u044b <strong>pirate<\/strong> \u0438 \u0432\u0438\u0436\u0443, \u0447\u0442\u043e \u0435\u0441\u0442\u044c \u0444\u0430\u0439\u043b\u0438\u043a\u00a0<strong>#sql-ib1293541.ibd<\/strong> \u0438 \u0431\u043e\u043b\u044c\u0448\u0435 \u043d\u0438\u0447\u0435\u0433\u043e \u043f\u043e\u0434\u043e\u0437\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0433\u043e. \u041f\u0440\u043e\u0431\u0443\u044e \u0443\u0434\u0430\u043b\u0438\u0442\u044c \u0440\u0430\u0437\u043d\u044b\u043c\u0438 \u043c\u0435\u0442\u043e\u0434\u0430\u043c\u0438:<\/p>\n<p><!--more--><\/p>\n<p><code>mysq&gt; drop table `#sql-ib1293541`<br \/>\nmysq&gt; drop temporary table `#sql-ib1293541`<\/code><\/p>\n<p>\u0438 \u0435\u0449\u0451 \u0440\u0430\u0437\u043d\u044b\u0435 \u043c\u0430\u0445\u0438\u043d\u0430\u0446\u0438\u0438 \u0441 \u0437\u0430\u044d\u0441\u043a\u0435\u0439\u043f\u0438\u0442\u044c \u0440\u0435\u0448\u0451\u0442\u043a\u0443, \u043d\u043e \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u0432\u044b\u0445\u043e\u0434\u0438\u0442. \u041f\u043e\u0441\u043b\u0435 \u043f\u0430\u0440\u0443 \u0447\u0430\u0441\u043e\u0432 \u0433\u0443\u0433\u043b\u0435\u043d\u0438\u044f, \u043d\u0430\u0442\u043e\u043b\u043a\u043d\u0443\u043b\u0441\u044f \u043d\u0430 \u0441\u0442\u0430\u0440\u0443\u044e <a rel=\"nofollow\" href=\"http:\/\/docs.oracle.com\/cd\/E17952_01\/refman-5.1-en\/innodb-troubleshooting-datadict.html\" target=\"_blank\">\u0437\u0430\u043c\u0435\u0442\u043a\u0443<\/a>, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0443\u0437\u0440\u0435\u043b \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0439 \u0445\u0430\u043a:<\/p>\n<p><code>DROP TABLE `#mysql50##sql-ib1293541`;<\/code><\/p>\n<p>\u041d\u043e \u0447\u0442\u043e \u0431\u044b \u043e\u043d \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0441\u044f, \u043d\u0443\u0436\u043d\u0430 \u043f\u043e\u043b\u043d\u043e\u0446\u0435\u043d\u043d\u0430\u044f \u0442\u0430\u0431\u043b\u0438\u0446\u0430 \u0441\u043e \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u043e\u0439 (\u0430 \u0443 \u043c\u0435\u043d\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u0430\u043d\u043d\u044b\u0435 &#8211; \u0444\u0430\u0439\u043b <strong>#sql-ib1293541.idb<\/strong>). \u042f \u043a\u043e\u043f\u0438\u0440\u0443\u044e \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u043e\u0442 \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e\u0439 \u0442\u0430\u0431\u043b\u0438\u0446\u044b:<\/p>\n<p><code># cp -p user_message.frm \\#sql-ib1293541.frm<\/code><\/p>\n<p>\u0438 \u0434\u0440\u043e\u043f\u0430\u044e \u0442\u0430\u0431\u043b\u0438\u0446\u0443 &#8220;\u0445\u0430\u043a\u043e\u043c&#8221;:<\/p>\n<p><code>mysq&gt; drop table `#mysql50##sql-ib1293541`;<br \/>\nQuery OK, 0 rows affected (10.85 sec)<\/code><\/p>\n<p>\u0418 \u0447\u0443\u0434\u043e! \u041e\u043d\u0430 \u0434\u0440\u043e\u043f\u043d\u0443\u043b\u0430\u0441\u044c. \u041d\u0430 \u0432\u0441\u044f\u043a\u0438\u0439 \u0441\u043b\u0443\u0447\u0430\u0439, \u0443 \u043c\u0435\u043d\u044f <strong>mysql 5.6.17<\/strong>.<\/p>\n<p>\u0422\u0430\u043a \u0447\u0442\u043e \u0436\u0435 \u0442\u0430\u043a\u043e\u0435 <strong>#mysql50#<\/strong> ? \u041e\u0442\u0432\u0435\u0442 \u043d\u0430\u0448\u0451\u043b \u043d\u0430 \u044d\u0442\u043e\u0439 <a rel=\"nofollow\" href=\"https:\/\/dev.mysql.com\/doc\/refman\/5.6\/en\/identifier-mapping.html\" target=\"_blank\">\u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435<\/a>\u00a0:<\/p>\n<blockquote><p><span style=\"color: #993366;\">If you have databases or tables from a version of MySQL older than 5.1.6 that contain special characters and for which the underlying directory names or file names have not been updated to use the new encoding, the server displays their names with a prefix of #mysql50# in the output from INFORMATION_SCHEMA tables or SHOWstatements. For example, if you have a table named a@b and its name encoding has not been updated, SHOW TABLES displays it like this:<\/span><\/p><\/blockquote>\n<pre>SHOW TABLES;\r\n+----------------+\r\n| Tables_in_test |\r\n+----------------+\r\n| #mysql50#a@b   |\r\n+----------------+<\/pre>\n<blockquote><p><span style=\"color: #993366;\">The #mysql50# prefix is intended only to be used internally by the server. You should not create databases or tables with names that use this prefix.<\/span><\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>\u041e\u0434\u0438\u043d \u0440\u0430\u0437 \u0431\u044b\u043b \u043a\u0440\u0443\u043f\u043d\u044b\u0439 alter \u0447\u0435\u0440\u0435\u0437 \u0440\u0435\u043f\u043b\u0438\u043a\u0430\u0446\u0438\u044e \u043d\u0430 slave \u0438 \u043e\u043d \u0432 \u044d\u0442\u043e\u0442 \u043c\u043e\u043c\u0435\u043d\u0442 \u0440\u0435\u0431\u0443\u0442\u043d\u0443\u043b\u0441\u044f \u043f\u043e \u043f\u0438\u0442\u0430\u043d\u0438\u044e. \u0421\u0430\u043c mysql \u0441\u0442\u0430\u0440\u0442\u0443\u0435\u0442 \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e, \u043d\u043e \u043f\u0440\u0438 \u043f\u043e\u043f\u044b\u0442\u043a\u0435 \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u043e\u0434\u043d\u0443 \u0438\u0437 \u0442\u0430\u0431\u043b\u0438\u0446 \u043f\u043e\u043b\u0443\u0447\u0430\u044e \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435: ERROR 1050 (42S01): Table &#8216;pirate\/#sql-ib1293541&#8217; already exists \u0417\u0430\u0445\u043e\u0436\u0443 \u0432 \u043f\u0430\u043f\u043a\u0443 \u0431\u0430\u0437\u044b pirate \u0438 \u0432\u0438\u0436\u0443, \u0447\u0442\u043e \u0435\u0441\u0442\u044c \u0444\u0430\u0439\u043b\u0438\u043a\u00a0#sql-ib1293541.ibd \u0438 \u0431\u043e\u043b\u044c\u0448\u0435 \u043d\u0438\u0447\u0435\u0433\u043e \u043f\u043e\u0434\u043e\u0437\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0433\u043e. \u041f\u0440\u043e\u0431\u0443\u044e \u0443\u0434\u0430\u043b\u0438\u0442\u044c \u0440\u0430\u0437\u043d\u044b\u043c\u0438 \u043c\u0435\u0442\u043e\u0434\u0430\u043c\u0438:<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[],"class_list":["post-4354","post","type-post","status-publish","format-standard","hentry","category-databases"],"_links":{"self":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/4354","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4354"}],"version-history":[{"count":3,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/4354\/revisions"}],"predecessor-version":[{"id":4358,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/4354\/revisions\/4358"}],"wp:attachment":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4354"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4354"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4354"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}