[mythtv-commits] [MythTV/mythtv] 6d43d6: Database: choose mysql_native_password

billmeek noreply at github.com
Tue Feb 11 00:04:19 UTC 2020


  Branch: refs/heads/master
  Home:   https://github.com/MythTV/mythtv
  Commit: 6d43d669d07ae0ea46b78ac74c569c525ddce533
      https://github.com/MythTV/mythtv/commit/6d43d669d07ae0ea46b78ac74c569c525ddce533
  Author: Bill Meek <billmeek at mythtv.org>
  Date:   2020-02-10 (Mon, 10 Feb 2020)

  Changed paths:
    M mythtv/database/mc.sql

  Log Message:
  -----------
  Database: choose mysql_native_password

In mysql version 8.x (*buntu 20.04), mythweb fails because
the PHP mysqli connector doesn't support the new default
caching_sha2_authentication. Existing DB users work OK,
but newly created ones won't.

Somewhat ugly solution as MySQL 5.x/8.x and MariaDB CREATE USER
syntax is slightly different. Use ALTER USER after creation.

See: https://mysqlserverteam.com/upgrading-to-mysql-8-0-default-authentication-plugin-considerations/
     https://mariadb.com/kb/en/create-user/#identified-viawith-authentication_plugin

Tested on MariaDB 10.3 and mysql 5.7 and 8.0.

Closes #13576




More information about the mythtv-commits mailing list