[mythtv-commits] Ticket #5070: Database schema upgrade error from 1216 to 1217.

MythTV mythtv at cvs.mythtv.org
Sun Mar 30 20:15:52 UTC 2008


#5070: Database schema upgrade error from 1216 to 1217.
--------------------------------+-------------------------------------------
 Reporter:  nlabadie at gmail.com  |        Owner:  ijr 
     Type:  defect              |       Status:  new 
 Priority:  major               |    Milestone:  0.22
Component:  mythtv              |      Version:  head
 Severity:  medium              |   Resolution:      
  Mlocked:  0                   |  
--------------------------------+-------------------------------------------
Changes (by danielk):

 * cc: danielk at cuymedia.net (added)


Comment:

 Janne, I'm seeing the same problem. But I think my maybe mysql is also
 pretty old for MythTV.

 {{{
 mythtv at cuy ~ $ mythbackend
 2008-03-30 16:06:27.017 Using runtime prefix = /usr/local, libdir =
 /usr/local/lib
 2008-03-30 16:06:27.018 Empty LocalHostName.
 2008-03-30 16:06:27.018 Using localhost value of cuy
 2008-03-30 16:06:27.031 New DB connection, total: 1
 2008-03-30 16:06:27.036 Connected to database 'mythconverg' at host:
 localhost
 2008-03-30 16:06:27.037 Closing DB connection named 'DBManager0'
 2008-03-30 16:06:27.037 Connected to database 'mythconverg' at host:
 localhost
 2008-03-30 16:06:27.038 New DB connection, total: 2
 2008-03-30 16:06:27.038 Connected to database 'mythconverg' at host:
 localhost
 2008-03-30 16:06:27.040 Current Schema Version: 1216
 2008-03-30 16:06:27.043 New DB connection, total: 3
 2008-03-30 16:06:27.043 Connected to database 'mythconverg' at host:
 localhost
 2008-03-30 16:06:27.045 Backing up database to file:
 /video/testing/mythconverg-1216-20080330160627.sql
 2008-03-30 16:06:29.959 Compressing database backup file.
 2008-03-30 16:06:35.090 Database Backup filename:
 /video/testing/mythconverg-1216-20080330160627.sql.gz
 2008-03-30 16:06:35.090 Database Backup complete.

 Warning: MythTV wants to upgrade your database schema, from 1216 to 1219.

 If your system becomes unstable, a database backup is located in
 /video/testing/mythconverg-1216-20080330160627.sql.gz


 Shall I upgrade this database? [yes]
 2008-03-30 16:06:39.415 Newest Schema Version : 1219
 2008-03-30 16:06:39.416 Upgrading to schema version 1217
 2008-03-30 16:06:41.946 DB Error (Performing database upgrade):
 Query was: ALTER TABLE oldprogram  DEFAULT CHARACTER SET default,  MODIFY
 oldtitle varchar(128) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL default
 '';
 Error was: Driver error was [2/1062]:
 QMYSQL: Unable to execute query
 Database error was:
 Duplicate entry 'As' for key 1

 new version: 1217
 2008-03-30 16:06:41.946 Database Schema upgrade FAILED, unlocking.
 2008-03-30 16:06:41.946 Couldn't upgrade database to new schema
 QSqlDatabasePrivate::removeDatabase: connection 'DBManager0' is still in
 use, all queries will cease to work.
 QSqlDatabasePrivate::removeDatabase: connection 'DBManager1' is still in
 use, all queries will cease to work.
 QSqlDatabasePrivate::removeDatabase: connection 'DBManager2' is still in
 use, all queries will cease to work.
 mythtv at cuy ~ $ mysql -u mythtv -pmythtv mythconverg
 Reading table information for completion of table and column names
 You can turn off this feature to get a quicker startup with -A

 Welcome to the MySQL monitor.  Commands end with ; or \g.
 Your MySQL connection id is 14
 Server version: 5.0.44 Gentoo Linux mysql-5.0.44-r1

 Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

 mysql> SELECT HEX(oldtitle) from oldprogram WHERE oldtitle LIKE "As";
 Empty set (0.00 sec)

 mysql>
 }}}

-- 
Ticket URL: <http://svn.mythtv.org/trac/ticket/5070#comment:10>
MythTV <http://www.mythtv.org/>
MythTV


More information about the mythtv-commits mailing list