{"id":33,"date":"2018-10-19T05:51:18","date_gmt":"2018-10-19T05:51:18","guid":{"rendered":"http:\/\/tensigh.de\/?p=33"},"modified":"2021-01-11T19:11:57","modified_gmt":"2021-01-11T19:11:57","slug":"back-after-successful-migration-from-aws-rds-to-a-local-database","status":"publish","type":"post","link":"https:\/\/japanobserver.net\/index.php\/2018\/10\/19\/back-after-successful-migration-from-aws-rds-to-a-local-database\/","title":{"rendered":"Back after successful migration from AWS RDS to a local database"},"content":{"rendered":"<p>Okay, now that I&#8217;ve made a major change to this website, I&#8217;m back on and will keep this site up! I set this site up as part of my Amazon Web Services (AWS) training. A site like this uses a database to store its information, and mine was using Amazon&#8217;s wonderful RDS (relational database service) for my database.\u00a0 RDS has a number of great features; the database is always running, it&#8217;s scalable and Amazon does all of the maintenance.<\/p>\n<p>The catch? Cost. Even with the cheapest plan I was paying about $25 a month for the database alone. That&#8217;s just too much for a low volume website!<\/p>\n<p>So I came up with a plan: run the database on the same server. It&#8217;s not as cool or as flashy, but it will save money which is my ultimate goal. Plus I&#8217;ll have to migrate from RDS to a .sql file, how hard could it be, right?<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-38 aligncenter\" src=\"http:\/\/japanobserver.net\/wp-content\/uploads\/2018\/10\/hair.jpg\" alt=\"\" width=\"231\" height=\"215\" \/><\/p>\n<p>Looking up entries on the web, it turns out there are lots of tutorials on how to do just the opposite: migrate SQL to RDS. This required a lot of digging around. I was hoping for a nice, step-by-step, oral tradition via screenshot guide that would hold my hand through the process. Fortunately, I found something on docs.aws.amazon.com that really fit the bill. Turns out you can run <code>mysqldump<\/code>\u00a0on your RDS instance and it will do the job just as if you&#8217;re running it on a normal MySQL instance. Viva la cloud-ia!<\/p>\n<p>(Just do you don&#8217;t have to rip your hair out like Bender, here is the resource I found.)<\/p>\n<p>https:\/\/docs.aws.amazon.com\/AmazonRDS\/latest\/UserGuide\/MySQL.Procedural.Exporting.NonRDSRepl.html<\/p>\n<p>So I ran <code>mysqldump<\/code>\u00a0using my RDS instance ID, database root password and it worked like a charm!<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Okay, now that I&#8217;ve made a major change to this website, I&#8217;m back on and will keep this site up! I set this site up as part of my Amazon Web Services (AWS) training. A site like this uses a database to store its information, and mine was using Amazon&#8217;s wonderful RDS (relational database service) &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/japanobserver.net\/index.php\/2018\/10\/19\/back-after-successful-migration-from-aws-rds-to-a-local-database\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Back after successful migration from AWS RDS to a local database&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,5,6],"tags":[17],"class_list":["post-33","post","type-post","status-publish","format-standard","hentry","category-aws","category-database","category-migration","tag-aws"],"_links":{"self":[{"href":"https:\/\/japanobserver.net\/index.php\/wp-json\/wp\/v2\/posts\/33","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/japanobserver.net\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/japanobserver.net\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/japanobserver.net\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/japanobserver.net\/index.php\/wp-json\/wp\/v2\/comments?post=33"}],"version-history":[{"count":6,"href":"https:\/\/japanobserver.net\/index.php\/wp-json\/wp\/v2\/posts\/33\/revisions"}],"predecessor-version":[{"id":144,"href":"https:\/\/japanobserver.net\/index.php\/wp-json\/wp\/v2\/posts\/33\/revisions\/144"}],"wp:attachment":[{"href":"https:\/\/japanobserver.net\/index.php\/wp-json\/wp\/v2\/media?parent=33"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/japanobserver.net\/index.php\/wp-json\/wp\/v2\/categories?post=33"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/japanobserver.net\/index.php\/wp-json\/wp\/v2\/tags?post=33"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}