[mythtv-commits] Ticket #13577: fixes/31 mythfrontend interworking with mythbackend on Xubuntu 20.04 Daily build
MythTV
noreply at mythtv.org
Sun Feb 21 17:11:48 UTC 2021
#13577: fixes/31 mythfrontend interworking with mythbackend on Xubuntu 20.04 Daily
build
----------------------------------+---------------------------
Reporter: Mike Bibbings | Owner: Bill Meek
Type: Bug Report - General | Status: closed
Priority: minor | Milestone: 31.1
Component: MythTV - General | Version: v31-fixes
Severity: medium | Resolution: Fixed
Keywords: | Ticket locked: 0
----------------------------------+---------------------------
Changes (by Bill Meek):
* status: accepted => closed
* resolution: => Fixed
Comment:
Manually closing this:
Plugins/dbcheck: Replace CHARACTER SET 'default' with 'utf8'
Fix required for MySQL v8 because using 'default' CHARACTER
SET results in a "You have an error in your SQL syntax"
message.
There are two issues to solve.
1. New systems that will execute the DBSchemaVer changes
for the mytharchive, mythgame, mythmusic & mythweather
plugin tables.
2. Existing systems that have up to date DBSchemaVer for
the above but need a new version to use the unambiguous
character set. So
Note that the 'old' DBSchemaVers were changed in 2/2020 to:
ArchiveDBSchemaVer
GameDBSchemaVer
MusicDBSchemaVer
WeatherDBSchemaVer
Tested with: MySQL 5.7.30 and 8.0.20, MariaDB 10.3.22 and
10.4.13.
Using utf8 is only going to be a temporary solution because
MySQL v8 issues this warning when doing the ALTER TABLEs in
the fix:
Warning | 3719 | 'utf8' is currently an alias for the
character set UTF8MB3, but will be an alias for UTF8MB4
in a future release. Please consider using UTF8MB4 in
order to be unambiguous.
Modified version of:
https://forum.mythtv.org/viewtopic.php?p=17769#p17769
To see current character sets:
SELECT DEFAULT_CHARACTER_SET_NAME FROM information_schema.SCHEMATA
WHERE SCHEMA_NAME='mythconverg';
SELECT TABLE_SCHEMA,TABLE_NAME,TABLE_COLLATION FROM
INFORMATION_SCHEMA.`TABLES`
WHERE TABLE_SCHEMA='mythconverg';
SELECT TABLE_SCHEMA,TABLE_NAME,COLUMN_NAME,CHARACTER_SET_NAME
FROM INFORMATION_SCHEMA.`COLUMNS`
WHERE TABLE_SCHEMA='mythconverg' AND CHARACTER_SET_NAME !=
'utf8';
master: aa683ba5b99815a1197c3380de6c3d992d4f651e
v31: 167c8d56e20167a5cc39f1ab8b301313a562b929
Closes #trac-13577
--
Ticket URL: <https://code.mythtv.org/trac/ticket/13577#comment:12>
MythTV <http://www.mythtv.org>
MythTV Media Center
More information about the mythtv-commits
mailing list