{"id":4694,"date":"2021-03-27T09:44:39","date_gmt":"2021-03-27T09:44:39","guid":{"rendered":"https:\/\/tst-amo.net.ua\/blog\/?p=4694"},"modified":"2021-03-27T09:54:18","modified_gmt":"2021-03-27T09:54:18","slug":"mysql-%d0%be%d1%88%d0%b8%d0%b1%d0%ba%d0%b0-%d1%80%d0%b5%d1%81%d1%82%d0%be%d1%80%d0%b5","status":"publish","type":"post","link":"https:\/\/tst-amo.net.ua\/blog\/?p=4694","title":{"rendered":"MySQL \u043e\u0448\u0438\u0431\u043a\u0430 \u043f\u0440\u0438 \u0432\u043e\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0438 \u0438\u0437 \u0431\u044d\u043a\u0430\u043f\u0430"},"content":{"rendered":"<p>\u041f\u043e\u0441\u043b\u0435 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0438 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0437\u0430\u043c\u0435\u0442\u0438\u043b, \u0447\u0442\u043e \u0432 roundcub \u043d\u043e\u0432\u043e\u0435 \u043f\u0438\u0441\u044c\u043c\u043e \u0441\u043e\u0437\u0434\u0430\u0435\u0442\u0441\u044f \u0431\u0435\u0437 \u0430\u0434\u0440\u0435\u0441\u0430 \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u0435\u043b\u044f, \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u043f\u0440\u043e\u0444\u0438\u043b\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u043f\u0443\u0441\u0442. \u0417\u0430 \u044d\u0442\u0443 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 \u0442\u0430\u0431\u043b\u0438\u0446\u0430 identities. \u0417\u0430\u0439\u0434\u044f \u0447\u0435\u0440\u0435\u0437 phpmyadmin \u0432 \u0411\u0414 roundcubemail \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u043b, \u0447\u0442\u043e \u043f\u043e\u0432\u0440\u0435\u0436\u0434\u0435\u043d\u0430 \u0442\u0430\u0431\u043b\u0438\u0446\u0430 identities. \u0411\u044d\u043a\u0430\u043f \u0411\u0414 \u0435\u0441\u0442\u044c, \u0432\u043a\u043b\u044e\u0447\u0430\u044f \u044d\u0442\u0443 \u0442\u0430\u0431\u043b\u0438\u0446\u0443.<\/p>\n<p>\u0421\u043e\u0437\u0434\u0430\u044e \u0442\u0430\u0431\u043b\u0438\u0446\u0443:<\/p>\n<pre>CREATE TABLE `identities` (\r\n`identity_id` int(10) unsigned NOT NULL AUTO_INCREMENT,\r\n`user_id` int(10) unsigned NOT NULL,\r\n`changed` datetime NOT NULL DEFAULT '1000-01-01 00:00:00',\r\n`del` tinyint(1) NOT NULL DEFAULT '0',\r\n`standard` tinyint(1) NOT NULL DEFAULT '0',\r\n`name` varchar(128) NOT NULL,\r\n`organization` varchar(128) NOT NULL DEFAULT '',\r\n`email` varchar(128) NOT NULL,\r\n`reply-to` varchar(128) NOT NULL DEFAULT '',\r\n`bcc` varchar(128) NOT NULL DEFAULT '',\r\n`signature` longtext,\r\n`html_signature` tinyint(1) NOT NULL DEFAULT '0',\r\nPRIMARY KEY (`identity_id`),\r\nKEY `user_identities_index` (`user_id`,`del`),\r\nKEY `email_identities_index` (`email`,`del`),\r\nCONSTRAINT `user_id_fk_identities` FOREIGN KEY (`user_id`) REFERENCES `users` (`user_id`) ON DELETE CASCADE ON UPDATE CASCADE\r\n) ENGINE=InnoDB AUTO_INCREMENT=147 DEFAULT CHARSET=utf8;\r\n\/*!40101 SET character_set_client = @saved_cs_client *\/;<\/pre>\n<p>\u0412\u044b\u0431\u0438\u0440\u0430\u044e \u0438\u0437 \u0431\u044d\u043a\u0430\u043f\u0430 \u0411\u0414 \u043d\u0443\u0436\u043d\u0443\u044e \u0442\u0430\u0431\u043b\u0438\u0446\u0443 \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u043c:<\/p>\n<pre># sed -n -e '\/CREATE TABLE.*`<span style=\"color: #ff0000;\">identities<\/span>`\/,\/CREATE TABLE\/p' <span style=\"color: #ff0000;\">2021-03-27.mail_roundcube.sql<\/span> &gt; <span style=\"color: #ff0000;\">identities.dump<\/span><\/pre>\n<p>\u0433\u0434\u0435 <em>identities<\/em> \u0438\u043c\u044f \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0432 \u0431\u044d\u043a\u0430\u043f\u0435 <em>2021-03-27.mail_roundcube.sql<\/em> \u0438 \u0437\u0430\u043f\u0438\u0441\u044c \u0434\u0430\u043d\u043d\u044b\u0445 \u0432 \u0444\u0430\u0439\u043b <em>identities.dump<\/em>.<\/p>\n<p>\u041d\u041e! \u041f\u0440\u0438 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 \u0440\u0435\u0441\u0442\u043e\u0440\u0435, \u0447\u0435\u0440\u0435\u0437 phpmyadmin \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u043b\u0430 \u043e\u0448\u0438\u0431\u043a\u0430, \u0447\u0442\u043e \u043b\u043e\u0433\u0438\u0447\u043d\u043e.<\/p>\n<p>\u041f\u043e\u044d\u0442\u043e\u043c\u0443, \u043f\u043e\u0447\u0438\u0441\u0442\u0438\u043b <em>identities.dump <\/em>\u043e\u0442 CREATE TABLE, DROP TABLE \u043e\u0442\u0441\u0442\u0430\u0432\u0438\u0432 \u0442\u043e\u043b\u044c\u043a\u043e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043c\u0435\u0436\u0434\u0443 \u0441\u0442\u0440\u043e\u043a\u0430\u043c\u0438:<\/p>\n<pre><span style=\"color: #ff0000;\">LOCK TABLES `identities` WRITE;<\/span>\r\n\/*!40000 ALTER TABLE `identities` DISABLE KEYS *\/;\r\nINSERT INTO `identities` VALUES (1,1,'2017-12-19 06:43:36',0,1,'acc','','acc@localhost','','',NULL,0),(2,2,'2017-12-19 06:44:09',0,1,'user','','user@lo...................................\r\n\/*!40000 ALTER TABLE `identities` ENABLE KEYS *\/;\r\n<span style=\"color: #ff0000;\">UNLOCK TABLES;<\/span><\/pre>\n<p>\u0417\u0430\u0442\u0435\u043c \u0447\u0435\u0440\u0435\u0437 phpmyadmin \u0432\u044b\u0431\u0440\u0430\u0432 \u0411\u0414 \u0438 \u0442\u0430\u0431\u043b\u0438\u0446\u0443 \u0434\u0435\u043b\u0430\u044e \u0418\u043c\u043f\u043e\u0440\u0442 \u0444\u0430\u0439\u043b\u0430 identities.dump. \u0412\u0441\u0435.<\/p>\n<div class=\"pdfprnt-buttons pdfprnt-buttons-post pdfprnt-bottom-right\"><a href=\"https:\/\/tst-amo.net.ua\/blog\/index.php?rest_route=wpv2posts4694&print=pdf\" class=\"pdfprnt-button pdfprnt-button-pdf\" target=\"_blank\"><img decoding=\"async\" src=\"https:\/\/tst-amo.net.ua\/blog\/wp-content\/plugins\/pdf-print\/images\/pdf.png\" alt=\"image_pdf\" title=\"View PDF\" \/><\/a><a href=\"https:\/\/tst-amo.net.ua\/blog\/index.php?rest_route=wpv2posts4694&print=print\" class=\"pdfprnt-button pdfprnt-button-print\" target=\"_blank\"><img decoding=\"async\" src=\"https:\/\/tst-amo.net.ua\/blog\/wp-content\/plugins\/pdf-print\/images\/print.png\" alt=\"image_print\" title=\"Print Content\" \/><\/a><\/div>","protected":false},"excerpt":{"rendered":"<p>\u041f\u043e\u0441\u043b\u0435 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0438 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0437\u0430\u043c\u0435\u0442\u0438\u043b, \u0447\u0442\u043e \u0432 roundcub \u043d\u043e\u0432\u043e\u0435 \u043f\u0438\u0441\u044c\u043c\u043e \u0441\u043e\u0437\u0434\u0430\u0435\u0442\u0441\u044f \u0431\u0435\u0437 \u0430\u0434\u0440\u0435\u0441\u0430 \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u0435\u043b\u044f, \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u043f\u0440\u043e\u0444\u0438\u043b\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u043f\u0443\u0441\u0442. \u0417\u0430 \u044d\u0442\u0443 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 \u0442\u0430\u0431\u043b\u0438\u0446\u0430 identities. \u0417\u0430\u0439\u0434\u044f \u0447\u0435\u0440\u0435\u0437 phpmyadmin \u0432 \u0411\u0414 roundcubemail \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u043b, \u0447\u0442\u043e \u043f\u043e\u0432\u0440\u0435\u0436\u0434\u0435\u043d\u0430 \u0442\u0430\u0431\u043b\u0438\u0446\u0430 identities. \u0411\u044d\u043a\u0430\u043f \u0411\u0414 \u0435\u0441\u0442\u044c, \u0432\u043a\u043b\u044e\u0447\u0430\u044f \u044d\u0442\u0443 \u0442\u0430\u0431\u043b\u0438\u0446\u0443. \u0421\u043e\u0437\u0434\u0430\u044e \u0442\u0430\u0431\u043b\u0438\u0446\u0443: CREATE TABLE `identities` ( `identity_id` int(10) unsigned NOT NULL AUTO_INCREMENT, `user_id` &#8230;<\/p>\n<p><a href=\"https:\/\/tst-amo.net.ua\/blog\/?p=4694\" class=\"more-link\">Continue reading &lsquo;MySQL \u043e\u0448\u0438\u0431\u043a\u0430 \u043f\u0440\u0438 \u0432\u043e\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0438 \u0438\u0437 \u0431\u044d\u043a\u0430\u043f\u0430&rsquo; &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[282,50,47,7,126,15,73],"tags":[],"class_list":["post-4694","post","type-post","status-publish","format-standard","hentry","category-backup","category-freebsd","category-linux","category-mail","category-mariadb","category-mysql","category-restore"],"_links":{"self":[{"href":"https:\/\/tst-amo.net.ua\/blog\/index.php?rest_route=\/wp\/v2\/posts\/4694"}],"collection":[{"href":"https:\/\/tst-amo.net.ua\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tst-amo.net.ua\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tst-amo.net.ua\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tst-amo.net.ua\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4694"}],"version-history":[{"count":5,"href":"https:\/\/tst-amo.net.ua\/blog\/index.php?rest_route=\/wp\/v2\/posts\/4694\/revisions"}],"predecessor-version":[{"id":4699,"href":"https:\/\/tst-amo.net.ua\/blog\/index.php?rest_route=\/wp\/v2\/posts\/4694\/revisions\/4699"}],"wp:attachment":[{"href":"https:\/\/tst-amo.net.ua\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4694"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tst-amo.net.ua\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4694"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tst-amo.net.ua\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4694"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}