{"id":887,"date":"2009-12-22T10:41:29","date_gmt":"2009-12-22T15:41:29","guid":{"rendered":"http:\/\/www.summet.com\/blog\/?p=887"},"modified":"2010-07-08T20:19:26","modified_gmt":"2010-07-09T01:19:26","slug":"how-to-move-a-mythtv-database-from-one-machine-to-another","status":"publish","type":"post","link":"https:\/\/www.summet.com\/blog\/2009\/12\/22\/how-to-move-a-mythtv-database-from-one-machine-to-another\/","title":{"rendered":"How to move a mythtv database from one machine to another"},"content":{"rendered":"<p>Backup the database on your source machine. Newer versions of mythtv do this for you automatically. Check out the mythconverg_backup.pl script if you have to do it manually.<\/p>\n<p>Delete any existing database on your destination machine:<br \/>\n<code><br \/>\n    $ mysql -u root<br \/>\n    mysql> DROP DATABASE IF EXISTS mythconverg;<br \/>\n    mysql> quit<br \/>\n<\/code><\/p>\n<p>Re-create the empty database on your destination machine:<br \/>\n<code><br \/>\n$ mysql -u root < mc.sql\n<\/code> (You may need to use the -p option and enter your root password)<\/p>\n<p>You may also have to set up the mythtv user with the correct password:<br \/>\n<\/code><code><br \/>\n$ mysql -u root < mc.sql\nUPDATE user SET Password=PASSWORD('YOURPASSWORDHERE') WHERE user='mythtv';\nFLUSH PRIVILEGES;\n<\/code><\/p>\n<p>After this, run the mythconverg_restore.pl script:<br \/>\n<\/code><code><br \/>\nmythconverg_restore.pl --filename mythconverg-1214-20091010150513.sql.gz<br \/>\n<\/code><br \/>\nYou may have to specify hostname, database name and enter the password if you don&#8217;t have a mysql.txt file set up in my .mythtv directory. You may also have to specify the fully qualified path to the file if it&#8217;s not located in your default backup directory.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Backup the database on your source machine. Newer versions of mythtv do this for you automatically. Check out the mythconverg_backup.pl script if you have to do it manually. Delete any existing database on your destination machine: $ mysql -u root &hellip; <a href=\"https:\/\/www.summet.com\/blog\/2009\/12\/22\/how-to-move-a-mythtv-database-from-one-machine-to-another\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/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":[3,13,2],"tags":[14],"class_list":["post-887","post","type-post","status-publish","format-standard","hentry","category-linux","category-projects","category-technology","tag-mythtv"],"_links":{"self":[{"href":"https:\/\/www.summet.com\/blog\/wp-json\/wp\/v2\/posts\/887","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.summet.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.summet.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.summet.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.summet.com\/blog\/wp-json\/wp\/v2\/comments?post=887"}],"version-history":[{"count":0,"href":"https:\/\/www.summet.com\/blog\/wp-json\/wp\/v2\/posts\/887\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.summet.com\/blog\/wp-json\/wp\/v2\/media?parent=887"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.summet.com\/blog\/wp-json\/wp\/v2\/categories?post=887"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.summet.com\/blog\/wp-json\/wp\/v2\/tags?post=887"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}