{"id":2021,"date":"2015-02-23T12:42:12","date_gmt":"2015-02-23T12:42:12","guid":{"rendered":"http:\/\/kedar.nitty-witty.com\/?p=2021"},"modified":"2024-02-16T11:04:30","modified_gmt":"2024-02-16T11:04:30","slug":"restore-dropped-mysql-database-from-binary-logs","status":"publish","type":"post","link":"https:\/\/kedar.nitty-witty.com\/blog\/restore-dropped-mysql-database-from-binary-logs","title":{"rendered":"How to Restore \/ point in time recovery using binary logs MySQL"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">In this post I will share a recovery scenario of a MySQL database restore from the binary logs. This post is also a good example of how we can achieve point in time recovery using binary logs.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Recently someone accidentally dropped an important MySQL database and the backup was not present!<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">As we know the the binary log contains DMLs to table data and that&#8217;s where our hope lies. Luckily the binary log retention period (expire_logs_days) was set to 30 days and the CREATE DATABASE was still present in the binary logs.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Thus this restore of the dropped MySQL database can be done from extracting respective DMLs point-in-time. Here we will play the binary logs against a temporary MySQL instance and extract the required database.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Let&#8217;s begin the recovery of database.<br><\/p>\n\n\n\n<!--more Continue Reading...-->\n\n\n\n<h3 class=\"wp-block-heading\">Create a temporary MySQL instance<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">&#8211; We will quickly bring up a temporary MySQL instance to start the restore from binary log.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># Prepare data-directory\nmkdir \/var\/lib\/mysql3307\n\n# Setup mysql user &amp; group permission \nchown -R mysql:mysql \/var\/lib\/mysql3307\n\n# Prepare the configuration\ncp \/etc\/my.cnf \/etc\/my3307.cnf\n\n# Initialize MySQL data directory and create system tables\nmysql_install_db --user=mysql --basedir=\/usr --datadir=\/var\/lib\/mysql3307 --defaults-file=\/etc\/my3307.cnf\n\n# Start MySQL instance\nmysqld_safe --defaults-file=\/etc\/my3307.cnf --user=mysql &amp;\n<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Converting Binary Logs to SQL<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">&#8211; We will need to convert the binary logs to SQL to be loaded The create database syntax was found in bin.000005 while drop was in bin.000008.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># To note here the MySQL version is 5.1.73 and default binlog format is STATEMENT.\nmysqlbinlog bin.000005 &gt; bin.000005.sql\nmysqlbinlog bin.000006 &gt; bin.000006.sql\nmysqlbinlog bin.000007 &gt; bin.000007.sql\nmysqlbinlog bin.000008 &gt; bin.000008.sql\n<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">&#8211; Removed lines from &#8220;DROP DATABASE&#8221; command onwards from bin.000008.sql and prepared for load.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Loading SQL Files to Temporary MySQL Instance<\/h3>\n\n\n\n<pre class=\"wp-block-preformatted\">mysql -uroot --socket=\/var\/lib\/mysql\/mysql3307.sock --force &lt; bin.000005.sql 1&gt; 5.sql.log 2&gt;&amp;1\nmysql -uroot --socket=\/var\/lib\/mysql\/mysql3307.sock --force &lt; bin.000006.sql 1&gt; 6.sql.log 2&gt;&amp;1\nmysql -uroot --socket=\/var\/lib\/mysql\/mysql3307.sock --force &lt; bin.000007.sql 1&gt; 7.sql.log 2&gt;&amp;1\nmysql -uroot --socket=\/var\/lib\/mysql\/mysql3307.sock --force &lt; bin.000008.sql 1&gt; 8.sql.log 2&gt;&amp;1\n<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Here &#8211;force will make sure the sql execution will continue to load despite of any errors.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Connected and verified the database required is available and is in acceptable condition.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Backup required database to restore<\/h3>\n\n\n\n<pre class=\"wp-block-preformatted\">mysqldump -uroot -p --socket=\/var\/lib\/mysql\/mysql3307.sock --databases dropped-database | gzip &gt; dump.sql.gz\n<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Restoring the Database to the Main MySQL Instance<\/h3>\n\n\n\n<pre class=\"wp-block-preformatted\">zcat dump.sql.gz | mysql -uroot -p \n<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">&nbsp;<\/h3>\n\n\n\n<h3 class=\"wp-block-heading\">Database restore in case of backups available<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">&#8211; In case we have a logical backup available with us, a mysqldump, we can restore a single database by extracting it from the full MySQL dump.<br>We can extract the single database from the mysql dump using <a href=\"http:\/\/kedar.nitty-witty.com\/mydumpsplitter-extract-tables-from-mysql-dump-shell-script\" target=\"_blank\" rel=\"noopener\"><b>mysql-dump-splitter<\/b><\/a> as follows:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">.\/mydumpsplitter.sh fulldump-filename.sql -d database-to-restore\n<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">&#8211; For the case of physical backup say xtrabackup, we will have to do complete restore and extract the required database.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Accidental database drops can cause chaos, but armed with the power of MySQL binary logs, recovery is achievable. This step-by-step guide illuminates the process of point-in-time restoration, ensuring that lost data finds its way back to your main MySQL instance. With logical and physical backup insights, you&#8217;re now equipped to tackle database recovery challenges effectively.<\/p>\n","protected":false},"excerpt":{"rendered":"In this post I will share a recovery scenario of a MySQL database restore from the binary logs. This post is also a good example of how we can achieve&hellip;\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[8,377],"tags":[400,398,952,403,402,953],"class_list":["post-2021","post","type-post","status-publish","format-standard","category-mysql","category-mysql-articles","tag-accidantal-drop","tag-mysql-database-restore","tag-mysql-point-in-time-recovery","tag-mysql-recovery","tag-mysql-restore","tag-restore-point-in-time-mysql"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.10 - aioseo.com -->\n\t<meta name=\"description\" content=\"Recovery scenario of restore a mysql database from binary logs in case of accidental database drop using temporary mysql instance.\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Kedar\"\/>\n\t<meta name=\"google-site-verification\" content=\"_Bu1h5r0PxIC0D2jBVdmYN45RTeG9ogcX85XLkbG1qA\" \/>\n\t<meta name=\"msvalidate.01\" content=\"116B62074CBCA1BA99B8CCE09CCF2FB8\" \/>\n\t<meta name=\"keywords\" content=\"mysql database restore,accidantal drop,restore,binary log,mysql restore,mysql,mysql point in time recovery,mysql recovery,restore point in time mysql\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/kedar.nitty-witty.com\/blog\/restore-dropped-mysql-database-from-binary-logs\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.10\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Change Is Inevitable | Kedar Vaijanapurkar&#039;s Blog for MySQL, technology and various subjects\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Restore \/ point int time Recovery dropped MySQL database from binary logs | Change Is Inevitable\" \/>\n\t\t<meta property=\"og:description\" content=\"Recovery scenario of restore a mysql database from binary logs in case of accidental database drop using temporary mysql instance.\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/kedar.nitty-witty.com\/blog\/restore-dropped-mysql-database-from-binary-logs\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2015-02-23T12:42:12+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2024-02-16T11:04:30+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Restore \/ point int time Recovery dropped MySQL database from binary logs | Change Is Inevitable\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Recovery scenario of restore a mysql database from binary logs in case of accidental database drop using temporary mysql instance.\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/restore-dropped-mysql-database-from-binary-logs#article\",\"name\":\"Restore \\\/ point int time Recovery dropped MySQL database from binary logs | Change Is Inevitable\",\"headline\":\"How to Restore \\\/ point in time recovery using binary logs MySQL\",\"author\":{\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/author\\\/admin#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/#person\"},\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/restore-dropped-mysql-database-from-binary-logs#articleImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/be1f7021485c325d92cc4c5d961accb9c1af72b1b11281a790f7f4f066ef10d3?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Kedar\"},\"datePublished\":\"2015-02-23T12:42:12+00:00\",\"dateModified\":\"2024-02-16T11:04:30+00:00\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/restore-dropped-mysql-database-from-binary-logs#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/restore-dropped-mysql-database-from-binary-logs#webpage\"},\"articleSection\":\"MySQL, MySQL-Articles, Accidantal Drop, MySQL Database restore, mysql point in time recovery, mysql recovery, MySQL restore, restore point in time mysql\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/restore-dropped-mysql-database-from-binary-logs#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/category\\\/mysql#listItem\",\"name\":\"MySQL\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/category\\\/mysql#listItem\",\"position\":2,\"name\":\"MySQL\",\"item\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/category\\\/mysql\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/category\\\/mysql\\\/mysql-articles#listItem\",\"name\":\"MySQL-Articles\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/category\\\/mysql\\\/mysql-articles#listItem\",\"position\":3,\"name\":\"MySQL-Articles\",\"item\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/category\\\/mysql\\\/mysql-articles\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/restore-dropped-mysql-database-from-binary-logs#listItem\",\"name\":\"How to Restore \\\/ point in time recovery using binary logs MySQL\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/category\\\/mysql#listItem\",\"name\":\"MySQL\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/restore-dropped-mysql-database-from-binary-logs#listItem\",\"position\":4,\"name\":\"How to Restore \\\/ point in time recovery using binary logs MySQL\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/category\\\/mysql\\\/mysql-articles#listItem\",\"name\":\"MySQL-Articles\"}}]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/#person\",\"name\":\"Kedar\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/restore-dropped-mysql-database-from-binary-logs#personImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/be1f7021485c325d92cc4c5d961accb9c1af72b1b11281a790f7f4f066ef10d3?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Kedar\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/author\\\/admin#author\",\"url\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/author\\\/admin\",\"name\":\"Kedar\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/restore-dropped-mysql-database-from-binary-logs#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/be1f7021485c325d92cc4c5d961accb9c1af72b1b11281a790f7f4f066ef10d3?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Kedar\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/restore-dropped-mysql-database-from-binary-logs#webpage\",\"url\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/restore-dropped-mysql-database-from-binary-logs\",\"name\":\"Restore \\\/ point int time Recovery dropped MySQL database from binary logs | Change Is Inevitable\",\"description\":\"Recovery scenario of restore a mysql database from binary logs in case of accidental database drop using temporary mysql instance.\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/restore-dropped-mysql-database-from-binary-logs#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/author\\\/admin#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/author\\\/admin#author\"},\"datePublished\":\"2015-02-23T12:42:12+00:00\",\"dateModified\":\"2024-02-16T11:04:30+00:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/\",\"name\":\"..::CHANGE is INEVITABLE::..\",\"description\":\"Kedar Vaijanapurkar's Blog for MySQL, technology and various subjects\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/#person\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Restore \/ point int time Recovery dropped MySQL database from binary logs | Change Is Inevitable","description":"Recovery scenario of restore a mysql database from binary logs in case of accidental database drop using temporary mysql instance.","canonical_url":"https:\/\/kedar.nitty-witty.com\/blog\/restore-dropped-mysql-database-from-binary-logs","robots":"max-image-preview:large","keywords":"mysql database restore,accidantal drop,restore,binary log,mysql restore,mysql,mysql point in time recovery,mysql recovery,restore point in time mysql","webmasterTools":{"google-site-verification":"_Bu1h5r0PxIC0D2jBVdmYN45RTeG9ogcX85XLkbG1qA","msvalidate.01":"116B62074CBCA1BA99B8CCE09CCF2FB8","miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/kedar.nitty-witty.com\/blog\/restore-dropped-mysql-database-from-binary-logs#article","name":"Restore \/ point int time Recovery dropped MySQL database from binary logs | Change Is Inevitable","headline":"How to Restore \/ point in time recovery using binary logs MySQL","author":{"@id":"https:\/\/kedar.nitty-witty.com\/blog\/author\/admin#author"},"publisher":{"@id":"https:\/\/kedar.nitty-witty.com\/blog\/#person"},"image":{"@type":"ImageObject","@id":"https:\/\/kedar.nitty-witty.com\/blog\/restore-dropped-mysql-database-from-binary-logs#articleImage","url":"https:\/\/secure.gravatar.com\/avatar\/be1f7021485c325d92cc4c5d961accb9c1af72b1b11281a790f7f4f066ef10d3?s=96&d=mm&r=g","width":96,"height":96,"caption":"Kedar"},"datePublished":"2015-02-23T12:42:12+00:00","dateModified":"2024-02-16T11:04:30+00:00","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/kedar.nitty-witty.com\/blog\/restore-dropped-mysql-database-from-binary-logs#webpage"},"isPartOf":{"@id":"https:\/\/kedar.nitty-witty.com\/blog\/restore-dropped-mysql-database-from-binary-logs#webpage"},"articleSection":"MySQL, MySQL-Articles, Accidantal Drop, MySQL Database restore, mysql point in time recovery, mysql recovery, MySQL restore, restore point in time mysql"},{"@type":"BreadcrumbList","@id":"https:\/\/kedar.nitty-witty.com\/blog\/restore-dropped-mysql-database-from-binary-logs#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/kedar.nitty-witty.com\/blog#listItem","position":1,"name":"Home","item":"https:\/\/kedar.nitty-witty.com\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/kedar.nitty-witty.com\/blog\/category\/mysql#listItem","name":"MySQL"}},{"@type":"ListItem","@id":"https:\/\/kedar.nitty-witty.com\/blog\/category\/mysql#listItem","position":2,"name":"MySQL","item":"https:\/\/kedar.nitty-witty.com\/blog\/category\/mysql","nextItem":{"@type":"ListItem","@id":"https:\/\/kedar.nitty-witty.com\/blog\/category\/mysql\/mysql-articles#listItem","name":"MySQL-Articles"},"previousItem":{"@type":"ListItem","@id":"https:\/\/kedar.nitty-witty.com\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/kedar.nitty-witty.com\/blog\/category\/mysql\/mysql-articles#listItem","position":3,"name":"MySQL-Articles","item":"https:\/\/kedar.nitty-witty.com\/blog\/category\/mysql\/mysql-articles","nextItem":{"@type":"ListItem","@id":"https:\/\/kedar.nitty-witty.com\/blog\/restore-dropped-mysql-database-from-binary-logs#listItem","name":"How to Restore \/ point in time recovery using binary logs MySQL"},"previousItem":{"@type":"ListItem","@id":"https:\/\/kedar.nitty-witty.com\/blog\/category\/mysql#listItem","name":"MySQL"}},{"@type":"ListItem","@id":"https:\/\/kedar.nitty-witty.com\/blog\/restore-dropped-mysql-database-from-binary-logs#listItem","position":4,"name":"How to Restore \/ point in time recovery using binary logs MySQL","previousItem":{"@type":"ListItem","@id":"https:\/\/kedar.nitty-witty.com\/blog\/category\/mysql\/mysql-articles#listItem","name":"MySQL-Articles"}}]},{"@type":"Person","@id":"https:\/\/kedar.nitty-witty.com\/blog\/#person","name":"Kedar","image":{"@type":"ImageObject","@id":"https:\/\/kedar.nitty-witty.com\/blog\/restore-dropped-mysql-database-from-binary-logs#personImage","url":"https:\/\/secure.gravatar.com\/avatar\/be1f7021485c325d92cc4c5d961accb9c1af72b1b11281a790f7f4f066ef10d3?s=96&d=mm&r=g","width":96,"height":96,"caption":"Kedar"}},{"@type":"Person","@id":"https:\/\/kedar.nitty-witty.com\/blog\/author\/admin#author","url":"https:\/\/kedar.nitty-witty.com\/blog\/author\/admin","name":"Kedar","image":{"@type":"ImageObject","@id":"https:\/\/kedar.nitty-witty.com\/blog\/restore-dropped-mysql-database-from-binary-logs#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/be1f7021485c325d92cc4c5d961accb9c1af72b1b11281a790f7f4f066ef10d3?s=96&d=mm&r=g","width":96,"height":96,"caption":"Kedar"}},{"@type":"WebPage","@id":"https:\/\/kedar.nitty-witty.com\/blog\/restore-dropped-mysql-database-from-binary-logs#webpage","url":"https:\/\/kedar.nitty-witty.com\/blog\/restore-dropped-mysql-database-from-binary-logs","name":"Restore \/ point int time Recovery dropped MySQL database from binary logs | Change Is Inevitable","description":"Recovery scenario of restore a mysql database from binary logs in case of accidental database drop using temporary mysql instance.","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/kedar.nitty-witty.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/kedar.nitty-witty.com\/blog\/restore-dropped-mysql-database-from-binary-logs#breadcrumblist"},"author":{"@id":"https:\/\/kedar.nitty-witty.com\/blog\/author\/admin#author"},"creator":{"@id":"https:\/\/kedar.nitty-witty.com\/blog\/author\/admin#author"},"datePublished":"2015-02-23T12:42:12+00:00","dateModified":"2024-02-16T11:04:30+00:00"},{"@type":"WebSite","@id":"https:\/\/kedar.nitty-witty.com\/blog\/#website","url":"https:\/\/kedar.nitty-witty.com\/blog\/","name":"..::CHANGE is INEVITABLE::..","description":"Kedar Vaijanapurkar's Blog for MySQL, technology and various subjects","inLanguage":"en-US","publisher":{"@id":"https:\/\/kedar.nitty-witty.com\/blog\/#person"}}]},"og:locale":"en_US","og:site_name":"Change Is Inevitable | Kedar Vaijanapurkar's Blog for MySQL, technology and various subjects","og:type":"article","og:title":"Restore \/ point int time Recovery dropped MySQL database from binary logs | Change Is Inevitable","og:description":"Recovery scenario of restore a mysql database from binary logs in case of accidental database drop using temporary mysql instance.","og:url":"https:\/\/kedar.nitty-witty.com\/blog\/restore-dropped-mysql-database-from-binary-logs","article:published_time":"2015-02-23T12:42:12+00:00","article:modified_time":"2024-02-16T11:04:30+00:00","twitter:card":"summary","twitter:title":"Restore \/ point int time Recovery dropped MySQL database from binary logs | Change Is Inevitable","twitter:description":"Recovery scenario of restore a mysql database from binary logs in case of accidental database drop using temporary mysql instance."},"aioseo_meta_data":{"post_id":"2021","title":"Restore \/ point int time Recovery dropped MySQL database from binary logs | #site_title","description":"Recovery scenario of restore a mysql database from binary logs in case of accidental database drop using temporary mysql instance.","keywords":[{"label":"MySQL Database restore","value":"MySQL Database restore"},{"label":"Accidantal Drop","value":"Accidantal Drop"},{"label":"Restore","value":"Restore"},{"label":"binary log","value":"binary log"},{"label":"MySQL restore","value":"MySQL restore"},{"label":"MySQL","value":"MySQL"}],"keyphrases":{"focus":{"keyphrase":"Restore","score":90,"analysis":{"keyphraseInTitle":{"score":9,"maxScore":9,"error":0},"keyphraseInDescription":{"score":9,"maxScore":9,"error":0},"keyphraseLength":{"score":9,"maxScore":9,"error":0,"length":1},"keyphraseInURL":{"score":5,"maxScore":5,"error":0},"keyphraseInIntroduction":{"score":9,"maxScore":9,"error":0},"keyphraseInSubHeadings":{"score":3,"maxScore":9,"error":1},"keyphraseInImageAlt":[],"keywordDensity":{"type":"best","score":9,"maxScore":9,"error":0}}},"additional":[]},"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":null,"og_article_tags":[],"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"Article","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":"-1","robots_max_videopreview":"-1","robots_max_imagepreview":"large","priority":0,"frequency":"default","location":null,"local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2021-03-24 17:41:55","updated":"2025-08-16 19:14:53","seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/kedar.nitty-witty.com\/blog\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/kedar.nitty-witty.com\/blog\/category\/mysql\" title=\"MySQL\">MySQL<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/kedar.nitty-witty.com\/blog\/category\/mysql\/mysql-articles\" title=\"MySQL-Articles\">MySQL-Articles<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tHow to Restore \/ point in time recovery using binary logs MySQL\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/kedar.nitty-witty.com\/blog"},{"label":"MySQL","link":"https:\/\/kedar.nitty-witty.com\/blog\/category\/mysql"},{"label":"MySQL-Articles","link":"https:\/\/kedar.nitty-witty.com\/blog\/category\/mysql\/mysql-articles"},{"label":"How to Restore \/ point in time recovery using binary logs MySQL","link":"https:\/\/kedar.nitty-witty.com\/blog\/restore-dropped-mysql-database-from-binary-logs"}],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/kedar.nitty-witty.com\/blog\/wp-json\/wp\/v2\/posts\/2021","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kedar.nitty-witty.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kedar.nitty-witty.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kedar.nitty-witty.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kedar.nitty-witty.com\/blog\/wp-json\/wp\/v2\/comments?post=2021"}],"version-history":[{"count":17,"href":"https:\/\/kedar.nitty-witty.com\/blog\/wp-json\/wp\/v2\/posts\/2021\/revisions"}],"predecessor-version":[{"id":3015,"href":"https:\/\/kedar.nitty-witty.com\/blog\/wp-json\/wp\/v2\/posts\/2021\/revisions\/3015"}],"wp:attachment":[{"href":"https:\/\/kedar.nitty-witty.com\/blog\/wp-json\/wp\/v2\/media?parent=2021"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kedar.nitty-witty.com\/blog\/wp-json\/wp\/v2\/categories?post=2021"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kedar.nitty-witty.com\/blog\/wp-json\/wp\/v2\/tags?post=2021"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}