<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Mar 29, 2020 at 10:44 AM James Abernathy <<a href="mailto:jfabernathy@gmail.com">jfabernathy@gmail.com</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"><div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Mar 29, 2020 at 9:29 AM Stephen Worthington <<a href="mailto:stephen_agent@jsw.gen.nz" target="_blank">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 Sun, 29 Mar 2020 07:21:17 -0400, you wrote:<br>
<br>
>So I know mythtv uses MySQL which has supposedly transitioned to mariadb <br>
>over time, but it's basically the same mysql commands. I think???<br>
><br>
>So to compare what I have on 2 systems I found some puzzling results, at <br>
>least to me.<br>
><br>
>_System 1_ is Xubuntu 18.04.4 installed recently and mythtv v31 <br>
>installed today.<br>
><br>
>It has mysql-client-5.7, mysql-client-core-5.7, mysql-server-5.7, <br>
>mysql-server-core-5.7 installed.<br>
><br>
>if has no packages by the name mariadb, or maria installed.<br>
><br>
>_System 2_ is an Ubuntu 18.04 Server which started on mythtv 29, moved <br>
>to 30, and not 31.<br>
><br>
>It does NOT have mysql-client-5.7, mysql-client-core-5.7, <br>
>mysql-server-5.7, mysql-server-core-5.7 installed.<br>
><br>
>It has mysql-common installed.<br>
><br>
>It has mariadb-client-10.0, mariadb-client-core-10.0, <br>
>mariadb-server-10.0, mariadb-server-core-10.0, and mariadb-common installed.<br>
><br>
>Not sure why I see the difference and wonder if this is the reason some <br>
>of the database scripts that run during mythtv updates fail for syntax <br>
>reasons??<br>
><br>
>Jim A<br>
<br>
Unless something has changed recently, Ubuntu installs MySQL by<br>
default, so when you install MythTV, it sees MySQL present and is<br>
happy. If you install MythTV on a Ubuntu system with neither MySQL<br>
nor MariaDB installed, the MythTV packages specify MySQL first, so<br>
MySQL gets installed. So the only way you get MythTV running with<br>
MariaDB on Ubuntu is if you have manually chosen to either install<br>
MariaDB before you installed MythTV (recommended), or have later<br>
installed MariaDB which will automatically uninstall MySQL. If you do<br>
the latter, you normally get a message that the database versions are<br>
out of step and MariaDB is unable to convert the mythconverg database.<br>
So you have to reinstall MySQL, do a backup of mythconverg, install<br>
MariaDB again, create a new mythconverg database and set up its access<br>
credentials, then restore your backed up copy of mythconverg. A very<br>
tedious process I have done more than once, hence why I recommend<br>
installing MariaDB before installing MythTV if at all possible.<br>
<br>
When MariaDB is installed, mysql-common remains installed as there are<br>
other packages that require it. It only really creates a three config<br>
files under /etc/mysql plus documentation files and /usr/share/lintian<br>
files, so it is not a worry.<br><br></blockquote><div>My first thought is to wait for Bill to come up with a solution for updating a system with the mariadb version that Ubuntu 18.04 uses. I plan on staying on Ubuntu 18.04 LTS until 2023 unless the Covid-19 kills me first. </div><div><br></div><div>BTW, I can't remember how mariadb got installed because none of my install instructions have that written down. </div><div><br></div><div>However, I'm a guy who likes to stay on standard software so I don't get caught by normal assumptions. All my mythtv databases, backups and recordings, etc are on a set of 2 RAID mirrors, i.e. 4 drives. I've read that If you create a new Xubuntu 18.04 install and it will see the 2 RAID mirrors and know how to use them. I'd just have to add the mounts in /etc/fstab. Then I could restore the backed up mythconverg and go from there.</div><div><br></div><div>Obviously, I have both RAIDs backed up to external e-SATA drive so if the shit hits the fan I can rebuild. I even have a clonezilla image of my boot drive /dev/sda.</div><div><br></div><div>Thoughts on doing this to get back to standard??</div><div>Jim A</div></div></div></blockquote><div><br></div><div>I just went through this exercise. As part of my social distancing, I just migrated my MythTV backend from a physical EL6 machine to an Ubuntu 18 LTS VM on Unraid. The EL6 machine was running MariaDB, yet when I built the Ubuntu machine, as Stephen stated, the package manager dragged in MySQL 5.7 I think, rather than MariaDB 10, which is what I was expecting to see. Anyway, when I tried to import the mythconverg dump file from the old machine, it failed on the points Bill made.<br></div><div><br></div><div>To get around this, did the following on the new VM: 1) uninstall mythtv, 2) uninstall mysql, 3) install mariadb, then 4) reinstall mythtv. <br></div><div><br></div><div>Relatively easy process. After that, the mythconverg dump file was successfully imported and all is well with the world.</div><div><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><div> </div></div></div>
_______________________________________________<br>
mythtv-users mailing list<br>
<a href="mailto:mythtv-users@mythtv.org" target="_blank">mythtv-users@mythtv.org</a><br>
<a href="http://lists.mythtv.org/mailman/listinfo/mythtv-users" rel="noreferrer" target="_blank">http://lists.mythtv.org/mailman/listinfo/mythtv-users</a><br>
<a href="http://wiki.mythtv.org/Mailing_List_etiquette" rel="noreferrer" target="_blank">http://wiki.mythtv.org/Mailing_List_etiquette</a><br>
MythTV Forums: <a href="https://forum.mythtv.org" rel="noreferrer" target="_blank">https://forum.mythtv.org</a><br>
</blockquote></div></div>