<div dir="ltr">Thanks it is now fixed</div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Apr 28, 2016 at 6:44 PM, Michael T. Dean <span dir="ltr"><<a href="mailto:mtdean@thirdcontact.com" target="_blank">mtdean@thirdcontact.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 04/28/2016 02:02 PM, Oz Dror wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi<br>
<br>
I have upgraded my Ubuntu 15.10 to 16.04<br>
In this process mythtv was upgraded from 0.27 to 0.28<br>
<br>
The database was upgraded from 1317 to 1344.<br>
<br>
When running mythfrontend<br>
<br>
I get the warning:<br>
Mythtv wants to upgrade your database,<br>
for the Music schema, from 1023 to 1024.<br>
<br>
When I try to upgrade I get the message:<br>
There are also other clients using this database. They should be shut down first.<br>
<br>
I actually have no other clients. So I am not able to do this minor upgrade.<br>
<br>
I also get this error in the terminal:<br>
<br>
2016-04-28 10:40:22.908033 N  Upgrading to MythMusic schema version 1024<br>
2016-04-28 10:40:22.908293 E  DB Error (Performing database upgrade):<br>
Query was: DROP INDEX station ON music_radios;<br>
Error was: Driver error was [2/1146]:<br>
QMYSQL: Unable to execute query<br>
Database error was:<br>
Table 'mythconverg.music_radios' doesn't exist<br>
new version: 1024<br>
<br>
<br>
The music schema never upgrades, because when I restart mytyhfrontend I get the same warning.<br>
<br>
When looking at the mysql (mariadb)  database I do not have mythconverg.music_radios.<br>
<br>
Any help will be appreciated.<br>
</blockquote>
<br></span>
Your database is corrupt.  Since the music data is easily re-creatable (unlike TV data, where the database is the primary storage for the data, the music data is generally in the files), the easiest thing is to start your music schema again from scratch. Ideally, shut down your MythTV system (at minimum, I highly recommend shutting down all mythfrontend processes on all hosts, but if you'd like to be extra careful, shut down all the mythbackends, etc, too).  Then, back up your database ( <a href="https://www.mythtv.org/wiki/Database_Backup_and_Restore" rel="noreferrer" target="_blank">https://www.mythtv.org/wiki/Database_Backup_and_Restore</a> --but if it fails, you'll have to do the following to make it succeed, in which case, you may want to just copy the binary data files, or just continue without a backup).  Finally, at the shell (as any non-root user), issue the command:<br>
<br>
cat << "EOF" | mysql -umythtv -p mythconverg<br>
DROP TABLE IF EXISTS musicmetadata;<br>
DROP TABLE IF EXISTS musicplaylist;<br>
DROP TABLE IF EXISTS smartplaylistcategory;<br>
DROP TABLE IF EXISTS smartplaylist;<br>
DROP TABLE IF EXISTS smartplaylistitem;<br>
DROP TABLE IF EXISTS music_albums;<br>
DROP TABLE IF EXISTS music_artists;<br>
DROP TABLE IF EXISTS music_genres;<br>
DROP TABLE IF EXISTS music_playlists;<br>
DROP TABLE IF EXISTS music_songs;<br>
DROP TABLE IF EXISTS music_stats;<br>
DROP TABLE IF EXISTS music_directories;<br>
DROP TABLE IF EXISTS music_albumart;<br>
DROP TABLE IF EXISTS music_radios;<br>
DROP TABLE IF EXISTS music_streams;<br>
DROP TABLE IF EXISTS music_smartplaylists;<br>
DROP TABLE IF EXISTS music_smartplaylist_items;<br>
DROP TABLE IF EXISTS music_smartplaylist_categories;<br>
DELETE FROM settings WHERE value = 'MusicDBSchemaVer';<br>
EOF<br>
<br>
when you copy and paste, my recommendation is to exclude the EOF line and type EOF (all caps eee-oh-eff, as in end-of-file--with nothing before or after on the line) and hit enter.  If you copy the EOF line and the e-mail client adds in any extra characters (including tabs or spaces or even non-visible characters), it will prevent the command from being submitted properly.<br>
<br>
Then, restart mythfrontend and it should create the music database schema for you.  Then, you can go back into MythMusic to repopulate it/rescan your music.<br>
<br>
Mike<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><br></div>