<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">On 12/19/2013 02:36 PM, Karl Newman
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAOOwNtL0vr3-gyAu6ovEc+6DPv1bBkvT3b_iLJ7ohBUFn_bUkw@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div class="gmail_extra">
          <div class="gmail_quote">On Thu, Dec 19, 2013 at 10:50 AM,
            Rich West <span dir="ltr">&lt;<a moz-do-not-send="true"
                href="mailto:Rich.West@wesmo.com" target="_blank">Rich.West@wesmo.com</a>&gt;</span>
            wrote:<br>
            <blockquote class="gmail_quote" style="margin:0 0 0
              .8ex;border-left:1px #ccc solid;padding-left:1ex">On
              12/19/2013 12:52 PM, Matthias Thyroff wrote:<br>
              &gt; On 19.12.2013 18:01, Jon N wrote:<br>
              &gt;&gt; On Thu, Dec 19, 2013 at 11:56 AM, Jon N &lt;<a
                moz-do-not-send="true"
                href="mailto:jdnandroid@gmail.com">jdnandroid@gmail.com</a>&gt;
              wrote:<br>
              &gt;&gt;&gt; Hi,<br>
              &gt;&gt;&gt;<br>
              &gt;&gt;&gt; I am planning on moving my MythTV
              frontend/backend (it's the only<br>
              &gt;&gt;&gt; backend I have) to a new machine. &nbsp;I have
              been reading backend<br>
              &gt;&gt;&gt; migration page on the wiki on Mythtv.org, but
              still have at least one<br>
              &gt;&gt;&gt; question about passwords.<br>
              &gt;&gt;&gt;<br>
              &gt;&gt;&gt; I set up Mythtv so long ago I don't remember
              much about it, but I do<br>
              &gt;&gt;&gt; seem to remember there is a password
              associated with it, I think it'<br>
              &gt;&gt; ...oops, somehow I managed to send that before it
              was done. &nbsp;Picking<br>
              &gt;&gt; up where I left off...<br>
              &gt;&gt;<br>
              &gt;&gt; was for access to the mysql database. &nbsp;Is this a
              factor in moving<br>
              &gt;&gt; things to the new computer? &nbsp;I don't see it
              mentioned on the database<br>
              &gt;&gt; migration page, but I admit moving this makes me
              a little nervous (I<br>
              &gt;&gt; am not what I would call a power user), so I
              &nbsp;would just like to<br>
              &gt;&gt; verify before I start.<br>
              &gt;&gt;<br>
              &gt;&gt; BTW, if anyone knows of an alternate guide to
              doing this please pass<br>
              &gt;&gt; it along. &nbsp;I often find having more than one
              perspective on doing<br>
              &gt;&gt; something helps.<br>
              &gt;&gt;<br>
              &gt;&gt; Thanks,<br>
              &gt;&gt; Jon<br>
              &gt;&gt; _______________________________________________<br>
              &gt;&gt; mythtv-users mailing list<br>
              &gt;&gt; <a moz-do-not-send="true"
                href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a><br>
              &gt;&gt; <a moz-do-not-send="true"
                href="http://www.mythtv.org/mailman/listinfo/mythtv-users"
                target="_blank">http://www.mythtv.org/mailman/listinfo/mythtv-users</a><br>
              &gt; Hello Jon,<br>
              &gt;<br>
              &gt; I have moved my backend many times already from one
              machine to the<br>
              &gt; next one... starting on a PII, Athlon, Athlon X2, and
              now I am on an<br>
              &gt; ivy bridge celeron, I think, always complete with the
              underlaying<br>
              &gt; linux installation, either just taking the hard disk
              to the new<br>
              &gt; computer or copying the whole system to to a new disk
              (there are<br>
              &gt; instructions on the internet to do that, you might
              have to boot from a<br>
              &gt; CD to reconfigure grub). This saved me from
              reconfiguring, not only<br>
              &gt; myth, but also the web server, the mail system, the
              users, the cloud,<br>
              &gt; the pbx (at that time)...<br>
              &gt;<br>
              &gt; This is also why I am still running 32bit on 64bit
              hardware, but I do<br>
              &gt; not see the need to change to 64bit at all (maybe a
              tiny little<br>
              &gt; technology itch, but I can live in peace with that.)<br>
              &gt;<br>
              &gt; That is one of the great things about linux: Changing
              the platform<br>
              &gt; does not mean automatically that you have to
              reinstall. It is quite<br>
              &gt; cool to see the old installation booting the first
              time on new hardware.<br>
              &gt;<br>
              &gt; It sometimes needs some tweaking, removing old
              network adaptors,<br>
              &gt; tweaking powersaving, minor things that you have to
              tweak manually<br>
              &gt; anyway.<br>
              &gt;<br>
              &gt; And when everything is running, you still should go
              and recover your<br>
              &gt; passwords, maybe.<br>
              &gt;<br>
              &gt; Good luck and fun for your holidays project!<br>
              &gt;<br>
              &gt; Matthias<br>
              <br>
              I've copied the entire /root/.mythtv directory and the<br>
              entire /var/lib/mysql directory over (perhaps not the best
              practice, but<br>
              it has worked well) to the remote host.</blockquote>
            <div><br>
              Don't do that. The fact that it worked just means you've
              been lucky.<br>
            </div>
          </div>
        </div>
      </div>
    </blockquote>
    <br>
    Not lucky at all.&nbsp; When you are in the process of moving a system,
    definitely make sure you DO NOT have mysqld running.&nbsp; In all cases
    of migrations, I have mythbackend off, mysql off.&nbsp; Attempting to
    move a database when it is running.. well, that's just silly talk.
    :)<br>
    <br>
    <blockquote
cite="mid:CAOOwNtL0vr3-gyAu6ovEc+6DPv1bBkvT3b_iLJ7ohBUFn_bUkw@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div class="gmail_extra">
          <div class="gmail_quote">
            <div>&nbsp;</div>
            <blockquote class="gmail_quote" style="margin:0 0 0
              .8ex;border-left:1px #ccc solid;padding-left:1ex"> &nbsp;You
              could always do a mysqldump<br>
              mythconverg &gt; mythconverg.sql, copy the file over to
              the new host and<br>
              run mysql &lt; /root/mythconverg, <br>
            </blockquote>
            <div><br>
            </div>
            <div>Don't do that either. You should use the <a
                moz-do-not-send="true"
                href="http://mythconverg_backup.pl">mythconverg_backup.pl</a>
              and <a moz-do-not-send="true"
                href="http://mythconverg_restore.pl">mythconverg_restore.pl</a>
              scripts (in the /usr/share/mythtv directory in most
              distros) to ensure you get the correct command line
              switches to avoid a corrupted database.<br>
            </div>
          </div>
        </div>
      </div>
    </blockquote>
    <br>
    Sorry.. I sent that out too quickly.. I should have clarified that I
    always run "mysqldump --add-drop-table --complete-insert
    --extended-insert mythconverg" when backing up my databases nightly,
    and I've used that backup in the past to do restores locally and to
    test hosts (when testing a new revision).&nbsp; Looks like
    mythconverg_backup.pl is a cool wrapper around that (although it
    looks like the mythconverg_backup.pl command has a --no-create-db
    option, which doesn't give the warm-n-fuzzy, and it has
    --add-drop-table in there twice).<br>
    <br>
    The mythconverg_backup.pl and mythconverg_restore.pl scripts are a
    good way to go as well, especially if you don't have a lot of linux
    experience.&nbsp; Personally, I didn't know they existed (probably didn't
    when I first started with myth), so now I have something to
    investigate in order to modernize my backup process. :)&nbsp; Thanks!<br>
    <br>
    -Rich<br>
    <br>
  </body>
</html>