<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Mar 30, 2020 at 10:15 AM Stephen Worthington <<a href="mailto:stephen_agent@jsw.gen.nz">stephen_agent@jsw.gen.nz</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Mon, 30 Mar 2020 08:46:00 -0400, you wrote:<br>
<br>
><br>
>On 3/30/20 8:14 AM, Stephen Worthington wrote:<br>
>><br>
>> No, there is no problem with restoring a backup. The backup files are<br>
>> SQL statements, so they will run on anything that will accept the SQL<br>
>> being used. The problem is when you try to change from MySQL to<br>
>> MariaDB and get MariaDB to just do a binary fix to convert the MySQL<br>
>> tables into MariaDB tables. It finds no path it can use to do that<br>
>> conversion due to a mismatch of MySQL version against MariaDB version.<br>
>> So it leaves the database in MySQL format and tells you it is unable<br>
>> to convert it. It seems to be a problem with the point versions. I<br>
>> suspect that if you were coming from MySQL 5.7.0 and converting to<br>
>> MariaDB 10.0.0, it would work. But from say MySQL 5.7.1 to say<br>
>> MariaDB 10.0.4, it does not work as no-one has created code for any<br>
>> binary format changes in both programs to match up between them. So<br>
>> it is a pain but not a show stopper problem - just do a backup, change<br>
>> to MariaDB and do a restore. But you do need to remember to do the<br>
>> backup before you change the database engine!<br>
><br>
>So from what you said does this work?<br>
><br>
>1. backup mythtv-database on working Ubuntu 18.04 system running mythtv <br>
>v31 using MariaDB 10.1.<br>
><br>
>2. build new Ubuntu 18.04 system<br>
><br>
>3. install mythtv v31, from ppa:mythbuntu/31 which installs MySQL 5.7.<br>
><br>
>4. restore mythtv-database from #1.<br>
><br>
>Not sure I'll change at this point, but if I have to completely rebuild <br>
>with new hardware I might try it.<br>
><br>
>Jim A<br>
<br>
Yes. I have never tried it that direction, but that is the way it<br>
works converting to MariaDB and there is no reason for it not to work<br>
the other way.<br><br></blockquote><div>Okay, just did an experiment and it worked with a few modifications so my new instructions would be:</div><div> 1. backup mythtv-database on working Ubuntu 18.04 system, hostname 'mythbuntu', running mythtv v31 using MariaDB 10.1.</div><div> 2. build new Ubuntu 18.04 system keeping hostname 'mythbuntu'</div><div> 3. install mythtv v31, from ppa:mythbuntu/31 which installs MySQL 5.7.<br></div><div> 4. setup xmltv and setup tv_grab_zz_sqlite so SD is the same as on previous system.</div><div> 5. Run mythtv-setup so the 'mythtv' user gets created logout/reboot.</div><div> 6. Run mythtv-setup and setup general database part, save and exit</div><div> 7. restore database from other system's backup.</div><div> 8. complete mythtv-setup for changes need for tuners, video sources, and input connections.</div><div> 9. sudo su mythtv and run mythfilldatabase</div><div><br></div><div>This all worked, but I could not restore database until mythtv-setup was run at least as described above. Keep hostname the same was critical as well.</div><div><br></div><div>Jim A</div><div><br></div></div></div>