<div dir="auto">The characters do look like utf-8 but there shouldn't be any utf-8 in the records I showed, should there? Seems like the valid ones only have [0-9a-zA-Z]</div><div class="gmail_extra"><br><div class="gmail_quote">On Jul 18, 2017 7:55 PM, "Michael T. Dean" <<a href="mailto:mtdean@thirdcontact.com">mtdean@thirdcontact.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 07/18/2017 06:01 PM, Mike Perkins wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On 18/07/17 20:56, Michael T. Dean wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On 07/18/2017 02:44 PM, DryHeat122 . wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I am trying to migrate an old (12.04) Mythbuntu mythconverg to a new (16.04) setup. I have two<br>
questions about this.<br>
<br>
First should I restore the database after installing the new mythbunto but before running<br>
mythtv-setup, or should I run setup first?<br>
</blockquote>
<br>
You need to restore the database before running *any* MythTV application--including mythtv-setup and<br>
mythbackend. Otherwise, they will populate the database schema, so you won't have the (required)<br>
empty database for the restore.<br>
<br>
<a href="https://www.mythtv.org/wiki/Database_Backup_and_Restore#Database_Restore" rel="noreferrer" target="_blank">https://www.mythtv.org/wiki/Da<wbr>tabase_Backup_and_Restore#Data<wbr>base_Restore</a><br>
<br>
If, for any reason, you have tables in your schema, you can always restore with<br>
<br>
--drop_database --create_database<br>
<br>
to get rid of (permanently delete--so make sure that's what you want to do) the existing<br>
database/schema/tables/data and create a new, empty database into which the restore will work.<br>
<br>
<a href="https://www.mythtv.org/wiki/Database_Backup_and_Restore#Replacing_an_existing_database" rel="noreferrer" target="_blank">https://www.mythtv.org/wiki/Da<wbr>tabase_Backup_and_Restore#Repl<wbr>acing_an_existing_database</a> <br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Second, though mysqlcheck found no problems with the old database, the backup file appears to have<br>
some corrupted data in the recordedseek table. There are two insert statements, one with what<br>
look like valid values, i.e., with the form<br>
<br>
(2025,'2016-08-01 14:00:00',126,5828752,9).<br>
<br>
But there is a second insert statement that is fine for hundreds of values then starts including<br>
non alphanumeric characters like:<br>
<br>
(3008,'2017-04-#1h;0:00:0 'l9144:90876305648,9),(3200-'2017-04-1<wbr>1$2 800:00',1 4�=7<4x0020;2 0�9)<br>
<br>
I'm sure this is not right and that mysql will choke on them. I'm wondering what are the<br>
consequences of deleting these invalid values, i.e. ending the insert statement at the last valid<br>
value. I think but am not sure that this table tracks commercial flagging so would I only lose<br>
commercial flagging for the associated programs?<br>
<br>
</blockquote>
<br>
Chances are if there's a problem with them, MySQL will complain and either the restore will proceed<br>
and ignore the bad records or the restore will fail. If it fails, you can then try editing the<br>
backup and then re-restore using the<br>
<br>
--drop_database --create_database<br>
<br>
arguments, as above.<br>
<br>
</blockquote>
If the database is that old, could this be because of the change of character set? I don't remember when that happened, but I do remember it caused trouble like this before.<br>
<br>
</blockquote>
<br>
On a quick look, it seems that Mythbuntu 12.04 had MythTV 0.25. If that's the case, the DB shouldn't have UTF8-in-latin1 since we converted to UTF8-in-UTF8 for version 0.22. I may be wrong about the version Mythbuntu had, though, so please someone correct me if I'm wrong.<br>
<br>
Mike<br>
______________________________<wbr>_________________<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/mailma<wbr>n/listinfo/mythtv-users</a><br>
<a href="http://wiki.mythtv.org/Mailing_List_etiquette" rel="noreferrer" target="_blank">http://wiki.mythtv.org/Mailing<wbr>_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>