<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 8:57 PM 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 Sun, 29 Mar 2020 20:31:25 -0400, you wrote:<br>
<br>
>On Sun, Mar 29, 2020 at 10:44 AM James Abernathy <<a href="mailto:jfabernathy@gmail.com" target="_blank">jfabernathy@gmail.com</a>><br>
>wrote:<br>
><br>
>><br>
>><br>
>> On Sun, Mar 29, 2020 at 9:29 AM Stephen Worthington <<br>
>> <a href="mailto:stephen_agent@jsw.gen.nz" target="_blank">stephen_agent@jsw.gen.nz</a>> wrote:<br>
>><br>
>>> 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<br>
>>> 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>
>>> My first thought is to wait for Bill to come up with a solution for<br>
>> updating a system with the mariadb version that Ubuntu 18.04 uses. I plan<br>
>> on staying on Ubuntu 18.04 LTS until 2023 unless the Covid-19 kills me<br>
>> first.<br>
>><br>
>> BTW, I can't remember how mariadb got installed because none of my install<br>
>> instructions have that written down.<br>
>><br>
>> However, I'm a guy who likes to stay on standard software so I don't get<br>
>> caught by normal assumptions.  All my mythtv databases, backups and<br>
>> recordings, etc are on a set of 2 RAID mirrors, i.e. 4 drives. I've read<br>
>> that If you create a new Xubuntu 18.04 install and it will see the 2 RAID<br>
>> mirrors and know how to use them. I'd just have to add the mounts in<br>
>> /etc/fstab.  Then I could restore the backed up mythconverg and go from<br>
>> there.<br>
>><br>
>> Obviously, I have both RAIDs backed up to external e-SATA drive so if the<br>
>> shit hits the fan I can rebuild.  I even have a clonezilla image of my boot<br>
>> drive /dev/sda.<br>
>><br>
>> Thoughts on doing this to get back to standard??<br>
>> Jim A<br>
>><br>
><br>
>I just went through this exercise.  As part of my social distancing, I just<br>
>migrated my MythTV backend from a physical EL6 machine to an Ubuntu 18 LTS<br>
>VM on Unraid.  The EL6 machine was running MariaDB, yet when I built the<br>
>Ubuntu machine, as Stephen stated, the package manager dragged in MySQL 5.7<br>
>I think, rather than MariaDB 10, which is what I was expecting to see.<br>
>Anyway, when I tried to import the mythconverg dump file from the old<br>
>machine, it failed on the points Bill made.<br>
><br>
>To get around this, did the following on the new VM:  1) uninstall mythtv,<br>
>2) uninstall mysql, 3) install mariadb, then 4) reinstall mythtv.<br>
><br>
>Relatively easy process.  After that, the mythconverg dump file was<br>
>successfully imported and all is well with the world.<br>
<br>
Except if you actually want MariaDB, as I do. </blockquote><div><br></div><div>I wanted MariaDB too, not because I really cared, but because the SQL statements in my backup file would not run in MySQL.  The steps I outlined replaced MySQL with MariaDB.  <br></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"> When Oracle took over<br>
MySQL they switched it from using the readline library to editline, as<br>
readline prevented them from making the changes they wanted to the<br>
license so they could monetarise MySQL.  Which completely broke the<br>
way I use the command line history in the MySQL command line programs.<br>
Since I use the command line a lot, I switched to MariaDB which still<br>
uses the readline library.  The general trend in Linux distros now is<br>
to install MariaDB by default, as it is more open source friendly.<br>
Fedora and Fedora based distros did that years ago.  Ubuntu, for some<br>
reason, has not made that change.  Or maybe they have in versions ><br>
18.04 and I have not noticed because I have not tried them yet.<br>
<br>
I would really prefer that the MythTV packages caught up with this<br>
also and listed MariaDB first, so that if no database is already<br>
installed, MariaDB got installed.<br>
_______________________________________________<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>