Opened 17 years ago
Closed 17 years ago
#5051 closed defect (fixed)
Cannot create new database SVN Revsion 16814
Reported by: | harpax | Owned by: | Janne Grunau |
---|---|---|---|
Priority: | minor | Milestone: | 0.22 |
Component: | mythtv | Version: | head |
Severity: | medium | Keywords: | |
Cc: | Ticket locked: | no |
Description
MythTV changes the database character set from latin1 when it is created to UTF8 while upgrading the schema, then attempts to create a primary key > 1000 bytes (128+255) bytes * 3 (for UTF8) = 1149 bytes total. The schema upgrade always fails due to the length of the key.
Procedure to reproduce:
- Create the database with mysql -u root < mc.sql
- run mythtv-setup
Database character set before running mythtv-setup:
mysql> show variables like "character_set_database";
character_set_database latin1
Database character set after running mythtv-setup:
mysql> show variables like "character_set_database";
character_set_database utf8
Change History (3)
Note: See
TracTickets for help on using
tickets.
I wanted to include the output of mythtv-setup with the ticket, but trac keeps rejecting it as spam. It wouldn't even allow me to attach it as a text file.