Uploaded image for project: 'Support'
  1. Support
  2. SUPPORT-205

mysql upgrade completely broken

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: OpenDNSSEC 2.0
    • Fix Version/s: None
    • Component/s: Configuration, Distribution
    • Labels:
      None
    • Environment:

      FreeBSD 11, trying to upgrade opendnssec 1.4.12 to 2.0.3

      There are more than one problem here, I'll report the packaging ones on freebsd's BTS. (missing schema.mysql in the port, $SCHEMA in convert_mysql doesn't exist)

      Description

      the mysql_convert.sql script cannot work with MariaDB 10 (nor in any mysql), for (at least) two reasons:

      1. line 677: strftime() doesn't exist on mysql: ERROR 1305 (42000) at line 664: FUNCTION opendnssec2.strftime does not exist, it can be replaced by UNIX_TIMESTAMP():
        {{- WHERE CAST(strftime("%s", REMOTE.dnsseckeys.active) + policy.signaturesValidityDefault as INTEGER) < strftime("%s", "now"));
        + WHERE CAST(UNIX_TIMESTAMP(REMOTE.dnsseckeys.active) + policy.signaturesValidityDefault as INTEGER) < UNIX_TIMESTAMP());}}
      2. line 664: ERROR 1093 (HY000) at line 664: Table 'keyState' is specified twice, both as a target for 'UPDATE' and as a separate source for data - DBA power needed hereā€¦

        Attachments

          Activity

            People

            Assignee:
            yuri Yuri Schaeffer
            Reporter:
            dgeo Geoffroy Desvernay
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: